Click here to get back home

How to create Unicode PDF bookmarks using 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
How to create Unicode PDF bookmarks using PDF::API2? Bruce Horrocks 01-24-2006
Get Chitika Premium
Posted by Bruce Horrocks on January 24, 2006, 6:51 pm
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
Documentation for PDF::API2 August 16, 2004, 11:48 am
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
contacting Alfred Reibenschuh, creator of (CPAN) PDF-API2 ? May 31, 2007, 8:18 am
unicode: é=>e, á=>a February 23, 2005, 12:23 pm
unicode July 5, 2006, 8:25 am
LWP and Unicode October 2, 2006, 4:59 am
unicode <-> hex February 18, 2008, 6:07 am
output becomes unicode September 3, 2004, 4:02 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap