![]() ![]() Throws: - If either the inputFiles array or outputFile is null. outputFile - Output destination of the generated PDF document. The output will be generated in the order of this array. Parameters: inputFiles - PDF documents' File array. This method uses less file I/O in O/S level. Please use this constructor if you can make File instance for inputs and File instance for output. Public PDFDocMerger(java.io.File inputFiles, See Also: PDFDocMerger(File inputFiles, File outputFile) Throws: - If either the InputStream array or OutputStream is null. outputStream - Output destination of the generated PDF document. Parameters: inputStreams - PDF documents' InputStream array. ![]() Public PDFDocMerger(java.io.InputStream inputStreams,Īccepts the array of multiple documents' InputStream and OutputStream. Public static final boolean RCS_ID_RECORDED Public static final RCS_ID See Also: Constant Field Values Methods inherited from class Įquals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Sets the page index in which the watermark is specified. SetTextWatermarkFont( fontName, int fontSize) SetTextWatermarkColor(float red, float green, float blue) Sets WaterMark text with default attributes. SetTextWatermark( watermarkText, float startX, float startY) Sets WaterMark text with specific behavior. Sets an initial number from which the page numbering starts from and the page index from which you want to start the page numbering. SetPageNumberValue(int initialValue, int startPageIndex) Sets an initial number from which the page numbering starts. Sets the font information on the page numbering. SetPageNumberFontInfo( adobeType1FontName, float fontSize) Sets the coordination information on the page numbering. SetPageNumberCoordinates(float posX, float posY) Sets locale information for text WaterMark. SetImageWatermark(java.io.InputStream imageStream, float rectangleCoords) Sets properties such as security and temporary directory information. ![]() SetBackground(java.io.InputStream inStream) Merges multiple PDF documents into one single PDF document. PDFDocMerger(java.io.InputStream inputStreams, java.io.OutputStream outputStream)Īccepts the array of multiple documents' InputStream and OutputStream. PDFDocMerger(java.io.File inputFiles, java.io.File outputFile)Īccepts the array of multiple documents' File instance and Output File instance. (optional)įor example, if you would like to put the page nubmers in the bottom center of the merged document with the size 10 of Helvetica font, the page number starts from 2, the page numbering starts from the second page, the code is as follows. setPageNumberValue(): Sets the numbering rules.setPageNumberFontInfo(): Sets the font information of the page numbers.setPageNumberCoordinates(): Sets the absolute position of the page number in the document.In this case, you don't have to create a background PDF document. You can also put page numbering in the merged document by calling a set of APIs. For example, if you put 2 in the field, the page numbers starts from 2 like 2, 3, 4. The field name should be You can also set the default value of the start page number in the field. You can include a PDF form field as a placeholder for the page numbers. You can use a background PDF document to put page numbering in the merged PDF document. One is to use a background PDF document, the other is to use APIs. This class also provides the page numbering functionality that allows you to put page numbering against the merged document. Please re-initialize PDFDocMerger and call mergePDFDocs(). If you try to call the method twice, then it throws "NullPointerException". Please note that you cannot call mergePDFDocs() twice in this version. PDFDocMerger pdfMerger = new PDFDocMerger(inStreams, outStream) Output destination of the merged PDF document. Here is a basic example on how to use it. This class merges multiple PDF documents into one single document. SUMMARY: NESTED | FIELD | CONSTR | METHOD PDFDocMerger (Oracle BI Publisher Java API Reference) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |