If you want to extract a few pages from your PDF, you only need to enter the page numbers and define a filename pattern for the generated documents. You can select the rotation angle from the dedicated drop-down menu. Page rotation is also supported by this app, and you get to choose if it should affect all pages, or only the odd or even ones. When it comes to merging multiple documents, you can specify if you are interested in retaining the original bookmarks, generating the table of contents or flattening interactive forms.Ī special function is called Alternate Mix, and it offers you the possibility to merge two or more PDFs, combining pages alternatively in natural or reverse order. PDF Split and Merge Basic Edition also allows you to split your document by size or by bookmarks, as long as they match a specific regular expression. You can start with splitting a chosen PDF file according to the criteria that best suit your needs: split after every page, after certain page numbers or by every 'n' pages. Regardless of the action you want to start with, you can either manually browse to the documents' location or drag and drop them onto the designated area. Highly intuitive GUIĪll the functions supported by the utility are clearly displayed within its main window so you can easily find the operation you want to perform with a single glance. Just get and store the input file paths in a String array, then pass it to the mergeFiles method as one parameter, and then save the returned object as a new PDF file.Whenever you need to modify the pages of a PDF file, it is best to choose an application that supports more than a single operation, and such a solution is called PDF Split and Merge Basic Edition (also known as PDFsam Basic Edition). To accomplish this task, Spire offers another easy-to-use method named mergeFiles. saveToFile ( outputDirectory + "output-2.pdf" ) saveToFile ( outputDirectory + "output-1.pdf" ) newDoc_2. getCount ()- 1 ) //save the new PDF documents newDoc_1. insertPageRange ( sourceDoc, 1, sourceDoc. insertPage ( sourceDoc, 0 ) //insert the rest pages from source file to the second new PDF document newDoc_2. loadFromFile ( inputFile ) //create two extra PdfDocument objects PdfDocument newDoc_1 = new PdfDocument () PdfDocument newDoc_2 = new PdfDocument () //insert the first page from source file to the new PDF document newDoc_1. specify input file path and output directory String inputFile = "C:/Users/Administrator/Desktop/test.pdf" String outputDirectory = "C:/Users/Administrator/Desktop/Output/" //create a PdfDocument instance PdfDocument sourceDoc = new PdfDocument () //load a source PDF file sourceDoc. Simply load the source PDF file to a PdfDocument object, and then call split method to do the division. ![]() Spire offers a quite straightforward mothed – split, to divide a multi-page PDF document into multiple single page based PDF documents. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |