Click here to get back home

Documentation for PDF::API2

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Documentation for PDF::API2 Shawn Corey 08-16-2004
Posted by Shawn Corey on August 16, 2004, 11:48 am
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Posted by wfsp on August 17, 2004, 8:42 am
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
Images and PDF::API2 January 10, 2006, 7:56 pm
Thoughts on speeding up PDF::API2 September 11, 2008, 8:11 pm
justify text and PDF::API2 module February 17, 2005, 2:26 am
How to create Unicode PDF bookmarks using PDF::API2? January 24, 2006, 6:51 pm
contacting Alfred Reibenschuh, creator of (CPAN) PDF-API2 ? May 31, 2007, 8:18 am
POD documentation February 15, 2005, 11:03 pm
XML::Xerces Documentation/Tutorial July 28, 2004, 5:09 pm
Complex datastructure documentation? November 18, 2004, 7:52 pm
newbie question about documentation January 18, 2005, 4:56 pm
Python documentation problem June 18, 2005, 1:49 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap