RE: RE: Text Paragraph - sledge hammer averted

"Tim Turner" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.pdfapi2
Message-ID <20070713205422.LPRT2895.ibm63aec.bellsouth.net@SONYXP2003>
 
OK I fixed it.  The problem was either that the paragraph call has changed
somewhere between version machine #1 and latest version or the old version
was just lax in enforcement... My paragraph calls did not include a
specified available height.  This still works to this day just fine on
another machine, but adding the extra input fixed it.

For those searching the group archives in the future, study this sample
carefully:

 $txt->font($font,$fontsize);
    $txt->lead($lead);
    $txt->translate($x,$y);
    $overflow = $txt->paragraph( 'long paragraph here ...',
                                 $width,
                                 $y+$lead-$bottom_margin );

Thanks to everyone who tried to help... I do appreciate it.

-TT


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mr. Shawn H.
Corey
Sent: Friday, July 13, 2007 3:19 PM
To: [email protected]
Subject: Re: [perl-text-pdf-modules] RE: Text Paragraph and ttfont - what
modules required

Tim Turner wrote:
> 
> Yes I've tried with Corefont Helvetica on both machines.
> Old machine #1 everything works perfect.
> 
> Move same code to New Machine #2 and anything added with 
> text->paragraph does not show up in the PDF.
> The PDF is returned with no errors or corruption but white space where 
> the paragraphs of text should be.
> 
> We're using the latest 0.61 release of API2 on the new machine.
> This is driving me crazy and I have to get this into production by Monday.
> Any help appreciated.........
> 

Well, I'm just as stumped as you are. Have you tried a diff on the PDF
files? It might tell you something.

--
Just my 0.00000002 million dollars worth, Shawn

"For the things we have to learn before we can do them, we learn by doing
them."
Aristotle
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.