Re: [iText-questions] Adding text to existing PDF is not working for all PDF documents

2011-07-27 Thread Mathias Weiser
Thank you very much for that information! Unfortunately I get that PDF from another application I can't change, but as long as I know that the dimensions are a abit weird I can handle that in my code :-) Thanks again for your quick and valuable help! >On 27/07/2011 17:21, 1T3XT BVBA wrote: >> T

Re: [iText-questions] Adding text to existing PDF is not working for all PDF documents

2011-07-27 Thread 1T3XT BVBA
On 27/07/2011 17:21, 1T3XT BVBA wrote: > The lower left corner of the page in NotWorking.pdf has coordinate > 0,0; the upper right corner 595.3, -841.9. > In other words: the right corner is to the left of the left corner? > How is that possible? Sorry: I meant to say: The upper-right corner is

Re: [iText-questions] Adding text to existing PDF is not working for all PDF documents

2011-07-27 Thread 1T3XT BVBA
On 27/07/2011 17:04, Mathias Weiser wrote: > Attached are 2 PDF documents, both empty, for one the code is working, for > the other not. The lower left corner of the page in Working.pdf has coordinate 0,0; the upper right corner 612,792. If you add something at coordinate 400,400, it's visible.

[iText-questions] Adding text to existing PDF is not working for all PDF documents

2011-07-27 Thread Mathias Weiser
Hi everybody, I have a problem adding text to an existing PDF document. The code looks like: public class PdfTest {     public static void main(String[] args) throws Exception     {         PdfReader reader = new PdfReader("Empty.pdf");         PdfStamper stamper = new PdfStamper(reader, new Fil