PDFToolBox API is a part of VeryPDF Cloud API Platform, PDF Merger Cloud API is a sub function of PDFToolBox API, it is provide Cloud API functions to merge two or more files into one PDF file, or extract some pages from some PDF files and merge them into a new PDF file,
https://www.verypdf.com/online/cloud-api/index.html
PDF Merger Cloud API does Merge several PDF files into one PDF file. The following URL will merge and combine three PDF files into one single PDF file,
In this URL, it is include three online PDF files,
A
infile1
http://online.verypdf.com/examples/cloud-api/verypdf.pdf
B
infile2
http://online.verypdf.com/examples/cloud-api/multipage.pdf
C
infile3
http://online.verypdf.com/examples/cloud-api/verypdf2.pdf
D
infile4
......
E
infile5
......
F
infile6
......
...
......
......
...
......
......
The first PDF file is 'A', second PDF file is 'B', third PDF file is 'C', 4rd PDF file is 'D', 5rd PDF file is 'E', and so on. So you need use cat=A&B&C to merge three PDF files into one PDF file.
If you wish merge two PDF files into one PDF file, please use following URL,
cat [<page ranges>]
Assembles (catenates) pages from input PDFs to create a new PDF. Use cat to merge PDF pages or to split PDF pages from documents. You can also use it to rotate PDF pages. Page
order in the new PDF is specified by the order of the given page ranges. Page ranges are described like this:
<input PDF handle>[<begin page number>[-<end page number>[<qualifier>]]][<page rotation>]
Where the handle identifies one of the input PDF files, and the beginning and ending page numbers are one-based references to pages in the PDF file. The qualifier can be even or
odd, and the page rotation can be north, south, east, west, left, right, or down.
If a PDF handle is given but no pages are specified, then the entire PDF is used. If no pages are specified for any of the input PDFs, then the input PDFs' bookmarks are also merged and included in the output.
The even qualifier causes PDFToolbox API to use only the even-numbered PDF pages, so 1-6even yields pages 2, 4 and 6 in that order. 6-1even yields pages 6, 4 and 2 in that order.
The odd qualifier works similarly to the even.
The page rotation setting can cause PDFToolbox API to rotate pages and documents. Each option sets the page rotation as follows (in degrees):
north: 0,
east: 90,
south: 180,
west: 270,
left: -90,
right: +90,
down: +180,
left, right, and down make relative adjustments to a page's rotation.
If no arguments are passed to cat, then PDFToolbox API combines all input PDFs in the order they were given to create the output.
NOTES:
- <end page number> may be less than <begin page number>.
- The keyword end may be used to reference the final page of a document instead of a page number.
- The handle may be used alone to represent the entire PDF document, e.g., B1-end is the same as B.
- You can reference page numbers in reverse order by prefixing them with the letter r.
For example, page r1 is the last page of the document, r2 is the next-to-last page of the document, and rend is the first page of the document. You can use this prefix in ranges, too, for example r3-r1 is the last three pages of a PDF.
Page Range Examples without Handles:
- 1-endeast - rotate entire document 90 degrees
- 5 11 20 - take single pages from input PDF
- 5-25oddwest - take odd pages in range, rotate 90 degrees
- 6-1 - reverse pages in range from input PDF
Page Range Examples Using Handles:
Say A=in1.pdf B=in2.pdf, then:
- A1-21 - take range from in1.pdf
- Bend-1odd - take all odd pages from in2.pdf in reverse order
- A72 - take a single page from in1.pdf
- A1-21 Beven A72 - assemble pages from both in1.pdf and in2.pdf
- Awest - rotate entire in1.pdf document 90 degrees
- B - use all of in2.pdf
- A2-30evenleft - take the even pages from the range, remove 90 degrees from each page's rotation
- A A - catenate in1.pdf with in1.pdf
- Aevenwest Aoddeast - apply rotations to even pages, odd pages from in1.pdf
- Awest Bwest Bdown - catenate rotated documents
Extract page range from A and B, and merge extracted pages into one PDF file,
Following URL will extract page 1-2 from an online PDF file and save to a new PDF file,
Extract page #2 from a PDF file and save to a new PDF file,
Extract page range from a PDF file, and merge extracted pages into one PDF file,
Remove page 13 from a PDF file and create a new PDF file,
Repair a PDF's corrupted XREF table and stream lengths, if possible,
burst, burst a PDF Document into Single Pages. Splits a single input PDF document into individual pages. To name the output PDF files, you can supply a printf-styled format string via the outfile section. For example, if you want pages named: page_01.pdf, page_02.pdf, etc., pass outfile=page_%2502d.pdf to PDFToolBox API. Encryption can be applied to the output by appending output options such as owner_pw, e.g.:
Burst a multipage PDF file to single page PDF files, one page per PDF file,
Burst a single PDF document into encrypted pages. Allow low-quality printing,
rotate [<page ranges>] : Rotate PDF Documents or Pages
Takes a single input PDF and rotates just the specified pages. All other pages remain unchanged. The page order remains unchanged. Specify the pages to rotate using the same notation as you would with cat, except you omit the pages that you aren't rotating:
[<begin page number>[-<end page number>[<qualifier>]]][<page rotation>]
The qualifier can be even or odd, and the page rotation can be north, south, east, west, left, right, or down.
Each option sets the page rotation as follows (in degrees):
north: 0,
east: 90,
south: 180,
west: 270,
left: -90,
right: +90,
down: +180,
left, right, and down make relative adjustments to a page's rotation.
The given order of the pages doesn't change the page order in the output.
Example, Rotate the first PDF page to 90 degrees clockwise,
Rotate an entire PDF document to 180 degrees,
Decrypt a PDF and output decrypted PDF file to a new PDF file,
Write a report on PDF document metadata and bookmarks to report.txt,
Encrypt or Decrypt PDF files
[security_encrypt_40bit | security_encrypt_128bit]
If an output PDF user or owner password is given, output PDF encryption strength defaults to 128 bits. This can be overridden by specifying encrypt_40bit.
[security_allow <permissions>]
Permissions are applied to the output PDF only if an encryption strength is specified or an owner or user password is given. If permissions are not specified, they default to 'none,' which means all of the following features are disabled.
The permissions section may include one or more of the following features:
- security_Printing: Top Quality Printing
- security_DegradedPrinting: Lower Quality Printing
- security_ModifyContents: Also allows security_Assembly
- security_Assembly
- security_CopyContents: Also allows security_ScreenReaders
- security_ScreenReaders
- security_ModifyAnnotations: Also allows security_FillIn
- security_FillIn
- security_AllFeatures: Allows the user to perform all of the above, and top
quality printing.
[security_owner_pw <owner password>]
[security_user_pw <user password>]
If an encryption strength is given but no passwords are supplied, then the owner and user passwords remain empty, which means that the resulting PDF may be opened and its security parameters altered by anybody.
Encrypt an Online PDF file with owner password 456 and open password 123,
Encrypt a PDF using 128-bit strength (the default), withhold all permissions (the default)
Encrypt an Online PDF file with open password 123 and owner password 456,
Encrypt a PDF file and allow printing feature,
http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXX&app=pdftoolbox2&infile=http://online.verypdf.com/examples/cloud-api/multipage.pdf&outfile=out.pdf&security_user_pw=123&security_owner_pw=456
&security_allow&security_printing
Apply 40-bit encryption to output, revoking all permissions (the default). Set the owner password to '123456',
Uncompress PDF page streams for editing the PDF in a text editor,
Similar function of PDF Splitter Cloud API:
More articles for VeryPDF Cloud API Platform,
https://www.verypdf.com/wordpress/category/verypdf-cloud-api
If you need any other functions which are not included in VeryPDF Cloud API Platform, please feel free to let us know,