Re: [iText-questions] Adding a JPG to a page causes errors

2008-06-17 Thread Leonard Rosenthol
On Jun 17, 2008, at 7:54 AM, Bruno Lowagie wrote: > It's better to keep pure 'graphics state' operations > separated from 'text state' operations. I should check > in the PDF Reference which graphics state operators > are allowed between a BT/ET sequence and which aren't; > but in any case: it's sa

Re: [iText-questions] Adding a JPG to a page causes errors

2008-06-17 Thread Bruno Lowagie
Robert Spielmann wrote: > So, surrounding the image code with begin-/endText() is a bad idea? It's better to keep pure 'graphics state' operations separated from 'text state' operations. I should check in the PDF Reference which graphics state operators are allowed between a BT/ET sequence and whi

Re: [iText-questions] Adding a JPG to a page causes errors

2008-06-17 Thread Robert Spielmann
16:19 > An: Post all your questions about iText here > Betreff: Re: [iText-questions] Adding a JPG to a page causes errors > > Robert Spielmann wrote: > > Hi all, > > > > I'm adding a JPG to a page using the stamper like this: > > > > // Load the ar

Re: [iText-questions] Adding a JPG to a page causes errors

2008-06-17 Thread Bruno Lowagie
Robert Spielmann wrote: > Hi all, > > I'm adding a JPG to a page using the stamper like this: > > // Load the arrow > Image pfeil = Image.getInstance("templates/Pfeil_schwarz_oben.jpg"); > > // Scale the arrow (the template PDF has 300 dpi) > pfeil.scalePercent(((float)pfeil.getDpiX()/300)*100);

Re: [iText-questions] Adding a JPG to a page causes errors

2008-06-17 Thread Alexis Pigeon
Hi Robert, On 17/06/2008, Robert Spielmann <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm adding a JPG to a page using the stamper like this: [snip] > What should I do? Might I have made some kind of mistake adding the image > this way? Could you send the faulty file to the list? Cheers, alex

Re: [iText-questions] Adding a JPG to a page causes errors

2008-06-17 Thread Paulo Soares
What's the over.endText() doing there? Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Robert Spielmann > Sent: Tuesday, June 17, 2008 3:12 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-qu

[iText-questions] Adding a JPG to a page causes errors

2008-06-17 Thread Robert Spielmann
Hi all, I'm adding a JPG to a page using the stamper like this: // Load the arrow Image pfeil = Image.getInstance("templates/Pfeil_schwarz_oben.jpg"); // Scale the arrow (the template PDF has 300 dpi) pfeil.scalePercent(((float)pfeil.getDpiX()/300)*100); pfeil.setAbsolutePosition(calculated coo