Re: [iText-questions] PDF overlay
Does either of you have a code snippet showing the use of a PdfReader to use this technique to write on top of the existing page(s)? Does this technique work where the original PDF is multipage? Thanks, Matt --- Wilhelm *Rafial* Fitzpatrick [EMAIL PROTECTED] wrote: At 2:29 PM -0500 5/2/02, Ben Sinclair wrote: This may not be the easiest way, but this is what I do... I use PdfContentByte.setTextMatrix() to locate at a specific point on the page and add text. Very similar to what I'm doing except I use PdfContentByte.moveText() to get the position I want. I determine the points by opening the PDF in Photoshop at 72dpi, then multiplying the x and y location of my cursor by 72 to get points in the PDF. How scientific! I measure with a ruler, guess, and refine manually ;) -- __ Wilhelm Fitzpatrick | When we speak of free http://www.3roses.com/ | software we are referring [EMAIL PROTECTED] | to freedom not price. ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] PDF overlay
Okay, I think I'm starting to understand... (remember I've never used advanced iText before). I get my Document and PdfWriter as usual. then: PdfReader reader = new PdfReader(my.pdf); PdfContentByte cb = writer.getImportedPage(reader, 1); cb.moveTo(fldX, fldY); cb.showText(fldVal); doc.close(); Sorry for asking before looking in the code. I finally tried looking in the tutorial for something but couldn't find it... -Matt --- Matt Benson [EMAIL PROTECTED] wrote: Does either of you have a code snippet showing the use of a PdfReader to use this technique to write on top of the existing page(s)? Does this technique work where the original PDF is multipage? Thanks, Matt --- Wilhelm *Rafial* Fitzpatrick [EMAIL PROTECTED] wrote: At 2:29 PM -0500 5/2/02, Ben Sinclair wrote: This may not be the easiest way, but this is what I do... I use PdfContentByte.setTextMatrix() to locate at a specific point on the page and add text. Very similar to what I'm doing except I use PdfContentByte.moveText() to get the position I want. I determine the points by opening the PDF in Photoshop at 72dpi, then multiplying the x and y location of my cursor by 72 to get points in the PDF. How scientific! I measure with a ruler, guess, and refine manually ;) -- __ Wilhelm Fitzpatrick | When we speak of free http://www.3roses.com/ | software we are referring [EMAIL PROTECTED] | to freedom not price. ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] PDF overlay
No, you don't understand. The PdfImportedPage returned from writer.getImportedPage(reader, 1) is to be used as a template and IT IS NOT TO BE WRITTEN TO. Consider it a read-only template. Did you really saw any of the examples? Best Regards, Paulo Soares -Original Message- From: Matt Benson [SMTP:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 15:49 To: Matt Benson; [EMAIL PROTECTED] Subject: Re: [iText-questions] PDF overlay Okay, I think I'm starting to understand... (remember I've never used advanced iText before). I get my Document and PdfWriter as usual. then: PdfReader reader = new PdfReader(my.pdf); PdfContentByte cb = writer.getImportedPage(reader, 1); cb.moveTo(fldX, fldY); cb.showText(fldVal); doc.close(); Sorry for asking before looking in the code. I finally tried looking in the tutorial for something but couldn't find it... -Matt --- Matt Benson [EMAIL PROTECTED] wrote: Does either of you have a code snippet showing the use of a PdfReader to use this technique to write on top of the existing page(s)? Does this technique work where the original PDF is multipage? Thanks, Matt --- Wilhelm *Rafial* Fitzpatrick [EMAIL PROTECTED] wrote: At 2:29 PM -0500 5/2/02, Ben Sinclair wrote: This may not be the easiest way, but this is what I do... I use PdfContentByte.setTextMatrix() to locate at a specific point on the page and add text. Very similar to what I'm doing except I use PdfContentByte.moveText() to get the position I want. I determine the points by opening the PDF in Photoshop at 72dpi, then multiplying the x and y location of my cursor by 72 to get points in the PDF. How scientific! I measure with a ruler, guess, and refine manually ;) -- __ Wilhelm Fitzpatrick | When we speak of free http://www.3roses.com/ | software we are referring [EMAIL PROTECTED] | to freedom not price. ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] PDF overlay
Nope, remember, I couldn't find them. :) Bruno pointed me in the right direction. I am going to try to start with Chapter01 example 12 and create a generic form fill-out class. Thanks, Matt --- Paulo Soares [EMAIL PROTECTED] wrote: No, you don't understand. The PdfImportedPage returned from writer.getImportedPage(reader, 1) is to be used as a template and IT IS NOT TO BE WRITTEN TO. Consider it a read-only template. Did you really saw any of the examples? Best Regards, Paulo Soares -Original Message- From: Matt Benson [SMTP:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 15:49 To: Matt Benson; [EMAIL PROTECTED] Subject:Re: [iText-questions] PDF overlay Okay, I think I'm starting to understand... (remember I've never used advanced iText before). I get my Document and PdfWriter as usual. then: PdfReader reader = new PdfReader(my.pdf); PdfContentByte cb = writer.getImportedPage(reader, 1); cb.moveTo(fldX, fldY); cb.showText(fldVal); doc.close(); Sorry for asking before looking in the code. I finally tried looking in the tutorial for something but couldn't find it... -Matt --- Matt Benson [EMAIL PROTECTED] wrote: Does either of you have a code snippet showing the use of a PdfReader to use this technique to write on top of the existing page(s)? Does this technique work where the original PDF is multipage? Thanks, Matt --- Wilhelm *Rafial* Fitzpatrick [EMAIL PROTECTED] wrote: At 2:29 PM -0500 5/2/02, Ben Sinclair wrote: This may not be the easiest way, but this is what I do... I use PdfContentByte.setTextMatrix() to locate at a specific point on the page and add text. Very similar to what I'm doing except I use PdfContentByte.moveText() to get the position I want. I determine the points by opening the PDF in Photoshop at 72dpi, then multiplying the x and y location of my cursor by 72 to get points in the PDF. How scientific! I measure with a ruler, guess, and refine manually ;) -- __ Wilhelm Fitzpatrick | When we speak of free http://www.3roses.com/ | software we are referring [EMAIL PROTECTED] | to freedom not price. ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] PDF overlay
This question is about PDF in general: If you want to take an existing PDF which is a printed form (not a PDF form) and overlay precisely-positioned text, is there a way to do something like this with ghostScript or a combination of utilities? Otherwise, what would be the easiest approach to doing this? Thanks, Matt __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] PDF overlay
This may not be the easiest way, but this is what I do... I use PdfContentByte.setTextMatrix() to locate at a specific point on the page and add text. I determine the points by opening the PDF in Photoshop at 72dpi, then multiplying the x and y location of my cursor by 72 to get points in the PDF. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Matt Benson [EMAIL PROTECTED] This question is about PDF in general: If you want to take an existing PDF which is a printed form (not a PDF form) and overlay precisely-positioned text, is there a way to do something like this with ghostScript or a combination of utilities? Otherwise, what would be the easiest approach to doing this? ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions