How to do insert an empty page to a document
To achieve this workflow, the primary API you will need is the PDF Merger. It allows you to insert a page at the beginning or end of a document. If you need to insert a page in the middle of the document, you will require the PDF Splitter API. In case you don't have an empty page available, you can use either the pdf/edit/add API or the PDF Edit Add Helper tool.
Inserting an Empty Page at the Start or End of a PDF Document:
If you already have an empty PDF page, please follow the steps below. Otherwise, you can quickly generate an empty PDF page by visiting the website https://app.pdf.co/pdf-edit-add-helper. Simply click on the empty canvas, save the file, and click "Generate PDF and Preview".
- Start by determining where you want to place the empty page in your document.
- Use the PDF Merger to merge the pages.
- To insert the empty page at the beginning, include the source file link of the empty page followed by a comma, and then add the link to the main PDF document.
- If you prefer to place the empty page at the end, include the source file link of the main PDF followed by a comma, and then add the link to the empty page.
- Execute the request, and you will receive a new PDF file with the inserted empty page.
Inserting an Empty Page between Two or More Pages in a PDF Document:
If you already have an empty PDF page, please follow the steps below. If you need to generate an empty page, you can use the website https://app.pdf.co/pdf-edit-add-helper. Click on the empty canvas, save the file, and click "Generate PDF and Preview".
- Start by determining where you want to insert the empty page in your document.
- Use the PDF Splitter to split the PDF document at the desired location for the empty page.
- For example, if you have a 2-page PDF and want to insert the empty page in the middle, set the
pages
parameter value to1,2
. - This will generate two PDF outputs: the first containing page 1 and the second containing page 2.
- Using the PDF Merger, add the source file links in the
url
parameter in the following order: 1st PDF output link, empty page file link, 2nd PDF output link, separated by commas. - Execute the request, and you will receive a new PDF file with three pages.
Applies to: