Package com.pd4ml.pdf.merge
Class PdfMergeSource
- java.lang.Object
-
- com.pd4ml.pdf.merge.PdfMergeSource
-
public final class PdfMergeSource extends java.lang.ObjectOne source PDF added to aPdfMerger, and the page range selected from it. Returned byPdfMerger.addSource(byte[]); callselectPages(java.lang.String)on it directly.Thread-safety: safe to hand off to another thread (e.g. the thread that called
addSource(...)passing this instance to a different thread that then callsselectPages(...)) -- the page selection is published via avolatilefield, so a latermergeToBytes()call on any thread sees it correctly.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfMergeSourceselectPages(java.lang.String pageRange)Selects which pages of this source to include in the merged output, and in what order -- e.g.
-
-
-
Method Detail
-
selectPages
public PdfMergeSource selectPages(java.lang.String pageRange) throws PdfMergeException
Selects which pages of this source to include in the merged output, and in what order -- e.g."2-5,8,10-12"(1-based, matching how page ranges are normally described to a human). May be called again to replace a previous selection.- Throws:
PdfMergeException
-
-