And I gather these PDFs are already produced - so that you can't go
back and ask that the author produce them in a different method, right?
If so, then you are going to need to write some code that pre-
processes these PDFs to LOCATE the "background image" and then
associate it with a PDF layer. Once you've done that - then you
can write the code that will turn on/off that layer at print time.
Leonard
On Jul 2, 2007, at 10:20 AM, Carl H. Sayres wrote:
well... I need to do this programmatically (on lots of documents,
server side).
The original documents will have an image in the background layer.
Versions of each document will be sent from the server to either
laser printers where the entire document will be printed (including
the background) or to dox matrix printers to print on multi-part
pre-printed forms. In the second case, I need to either remove the
image from the document before printing or flip the 'background
printing' bit. This will all be automated, so the printing options
need to be completely specified in the document itself.
Can iText locate and delete a background layer from a PDF? Or can I
manipulate the printing status of an existing layer?
Another option I thought of could be to create an entirely new PDF
using the form field locations and properties from the original
document. This will be tricky, as there are lots of formatting
options that have been put into the original (font sizes, colors,
etc...) that would need to be copied. This isn't my favorite way to
go, but is my backup if nothing else works.
Thanks,
Carl
Bruno Lowagie (iText) wrote:
Carl H. Sayres wrote:
I want to be able to produce a version of this
document where the image doesn't print.
I think the best solution would be to create the template
that way. Add the image to an OCG that doesn't print in
Acrobat.
br,
Bruno
---------------------------------------------------------------------
----
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
----------------------------------------------------------------------
---
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/