My publishing department uses Adobe tools like InDesign to create multi-page
PDF files.  Some, but not all of the documents have a full-page disclaimer
as the last page.

When I use iText to concatenate the files together into a bundle of
documents, the disclaimer appears multiple times in the middle of the
bundle.  I want to skip the disclaimer pages in the middle, and only show
the disclaimer page at the end of the bundle.

I need the publishing department to "tag" their disclaimer pages in Adobe
tools, in a way that I can detect with iText, so I can skip those pages as I
build the bundle.  In other words, I want to wrap some conditional around
the last line in this loop:

            for (int p = 1; p <= n; p++) {
                final PdfImportedPage page = writer.getImportedPage(reader,
p);
                writer.addPage(page);  // unless it's a disclaimer page
            }

What is the best way to do this?  Or is there a better way to "tag" special
pages in InDesign that will be recognized by iText?




--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Detecting-special-pages-that-were-tagged-in-InDesign-tp4657281.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to