tag:blogger.com,1999:blog-7625777308693137417.post8900446785116198111..comments2023-05-22T23:23:51.134+10:00Comments on Luke's Thought Dump: PDF::API2 is UnderratedUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7625777308693137417.post-21482994430365097292012-09-24T12:57:30.727+10:002012-09-24T12:57:30.727+10:00Hmm... I haven't come across anything like tha...Hmm... I haven't come across anything like that before.<br /><br />The obvious places to start would be:<br /><br />1. Are you explicitly setting the coordinates and font size right before writing the text to the page? Is there anything between those operations that might change the state of the text object?<br /><br />2. Use a brand new text object. Does it still happen?<br /><br />3. Use Data::Dumper to dump the text object you're using. Beware though, you'll get a lot of output. Use this as a last resort. It doesn't always pay off.<br /><br />If you figure it out, feel free to post a solution here!<br /><br />Good luck!Lukehttps://www.blogger.com/profile/08104018469468709846noreply@blogger.comtag:blogger.com,1999:blog-7625777308693137417.post-64046584381880425902012-08-30T08:43:25.050+10:002012-08-30T08:43:25.050+10:00Hi Luke.. I came across this blog post because it&...Hi Luke.. I came across this blog post because it's pretty high in the google results when you are looking for help with API2.<br /><br />Have you had any problems using this module with PDFs of version 1.3 or earlier? I am having a hard time with this. My program receives a PDF document uploaded by a user, then opens it with API2 and stamps a few words at the top of the first page. However, for certain documents which happen to be PDF Version 1.3, but not ALL 1.3 PDFs, the words get stamped in TINY text (about 1/5th the normal size) and in the middle of the page instead of the top.<br /><br />Do you have any idea why this would be happening? As you mentioned in your post, there is a serious lack of documentation or resources regarding this module, so I am just reaching out to anyone with experience. Thanks very much.Sam Walkerhttps://www.blogger.com/profile/16543782762027902420noreply@blogger.com