PDF Manipulation & Editing
Merge, split, rotate, and password-protect PDFs. Assemble submission packages from filled forms and supporting documents without leaving Instafill.ai.
Overview
After filling forms with Instafill.ai, the output often needs to be assembled before it can be submitted. A USCIS packet requires a filled I-130, a filled I-864, and a set of civil document scans in a specific order - all as one file. A mortgage submission requires a filled 1003 merged with a signed disclosure package, password-protected before upload to the lender portal. A batch of 200 filled permit applications needs to be combined into one flat PDF for bulk printing.
PDF manipulation handles these final-stage operations: merge, split, rotate, reorder pages, extract page ranges, apply password protection, and reduce file size. All of these run inside Instafill.ai - there is no need to download files, open a separate PDF editor, and re-upload.
The same layer also handles the rendering that produces filled PDFs in the first place. Field values are drawn onto an overlay canvas at an auto-calculated font size, then composited onto the form background with rotation-aware coordinate mapping. For pages scanned at 90 or 270 degrees (a common issue with government forms), rotation correction ensures field values land in the right location. Whiteout regions can blank specific pre-printed areas before the overlay is applied.
For flat PDF export specifically - including the merge-into-flat-PDF option available after batch processing - see the Output Format Export page for the full workflow.
Key Capabilities
- Merge: Combine multiple PDFs into a single document. Merge a filled form with supporting attachments, or consolidate a completed batch into one flat PDF for submission
- Split: Divide a multi-page PDF by page number or page range. Useful for separating sections of a combined application packet
- Page reorder and extraction: Change the order of pages within a document or extract specific pages into a new PDF
- Page rotation: Correct orientation for individual pages or entire documents
- Password protection: AES-128 and AES-256 encryption with owner and user passwords. Set permission flags (print-only, no-copy, no-edit) for controlled document delivery
- File size optimization: Reduce PDF file size via Adobe PDF Services for submission targets with upload size limits
- Rotation-aware fill rendering: Field values are placed correctly on pages stored at any rotation (0, 90, 180, or 270 degrees) - a common issue with scanned government forms
- Whiteout regions: Blank specific pre-printed areas on a form background before the filled values are applied
- Radio group rendering: Radio button selections are resolved by group membership so mutually exclusive options render correctly
How It Works
Merge and split
To merge PDFs in Instafill.ai, select the files you want to combine and use the Merge option. You can set the page order, choose specific page ranges from each source file, and download the resulting document. The AcroForm field structure from each source file is preserved in the merged output unless you choose to flatten.
Note on field name conflicts when merging: If two source PDFs contain form fields with identical names, the second document's field takes precedence in the merged AcroForm dictionary, which can overwrite the first document's value. The safest approach is to flatten filled values into the page content layer before merging - so no live field annotations remain to conflict.
To split a PDF, specify the page boundaries where you want the document divided. Fixed-count splits (every N pages) and specific page range extractions are supported.
Password protection
Password protection is applied after filling and any merging is complete. Select AES-128 or AES-256 encryption, set owner and user passwords, and configure permission flags. Common configurations:
- Print-only: recipient can print but cannot copy text or edit fields
- No-copy: text cannot be selected or extracted programmatically
- No-edit: no modifications permitted after delivery
Rotation correction for filled forms
PDF pages can be stored with a rotation value in their metadata - a common side effect of scanning portrait-orientation forms on a copier set to landscape. Without rotation correction, fill values written to a field's reported coordinates land in the wrong location on the visual page. Instafill.ai reads the page rotation entry and applies the corresponding coordinate transformation before placing any field content, so fills render correctly regardless of how the source PDF encodes orientation.
Whiteout
Where pre-printed content on a form background must be replaced or hidden - a version number that should not appear on the output, or a label that overlaps the fill area - solid white rectangles can be applied to specific coordinates on the overlay canvas before the fill layer is composited. This blanks the targeted area without modifying the original PDF file.
File size optimization
Adobe PDF Services handles file size reduction where required. Optimization is most effective on scanned-image PDFs with uncompressed raster content. For documents where upload size is a constraint, a compression preset can be applied during export. PDF/A conversion is also available for archival-format submissions.
Use Cases
USCIS immigration packets: Immigration attorneys fill benefit forms (I-130, I-485, I-864, G-1145) using profiles, then merge the filled PDFs with passport copies, birth certificates, and prior approval notices into a single ordered packet matching the USCIS checklist.
Mortgage document packages: Lenders fill Fannie Mae 1003 applications and disclosure forms, merge them with a signed disclosure package, apply AES-256 password protection, and upload the resulting file to the lender portal - without any intermediate desktop PDF editor step.
Healthcare payer submissions: Providers combine a filled CMS-1500 claim with an explanation-of-benefits document and referral letter into a single payer submission package.
Batch permit applications: After running a batch fill job for hundreds of permit applications, operators select all completed rows, merge them into a single flat PDF, and submit the combined file for bulk processing. For a real example, see how Kona Ice automated 250+ permit applications annually.
Legal court filings: Legal teams merge filled pleadings, cover sheets, and exhibit scans into a single filing package. Whiteout is applied to blank court-specific header fields before the overlay adds case-specific values.
Scanned government forms: Many federal and state forms arrive as scanned PDFs with non-standard page rotation. Rotation correction ensures filled values land on the correct field location rather than offset to a wrong position on the page.
Benefits
- No separate PDF editor required: merge, split, rotate, password-protect, and optimize all happen inside Instafill.ai - no Acrobat subscription or desktop tool needed
- Rotation-aware rendering: fills land in the right place even on scanned PDFs where the page is stored rotated - a common failure point with standard PDF tools
- Non-destructive overlay: the original AcroForm background is not modified; the fill layer is composited separately, preserving the field structure for any downstream processing that needs it
- Whiteout precision: specific pre-printed regions can be blanked without affecting surrounding content
- Enterprise encryption: AES-256 with permission flags satisfies document security requirements common in legal, healthcare, and financial submission workflows
- Seamless after batch: merge all rows from a completed batch job into one flat PDF for consolidated delivery, without leaving the platform
Security & Privacy
Overlay rendering and merge operations run in memory without persisting intermediate canvas objects to disk. Fill values and whiteout regions are applied within the processing request and are not logged at the content level. Password-protected output PDFs have their encryption keys derived from the requesting user's input and are not stored server-side. All data is workspace-scoped and protected by JWT authentication middleware across all service layers. All manipulation operations are written to the audit log with user ID, workspace ID, document ID, operation type, and timestamp.
Common Questions
Does merging PDFs preserve form fields?
The merge process preserves AcroForm widget annotations by default. Field names, types, and current values are retained in the merged output. If two source PDFs contain fields with identical names, the second document's field takes precedence in the merged AcroForm dictionary, which can overwrite the first document's value. To avoid this, flatten filled values into the page layer before merging - a flat PDF has no live field annotations and merges cleanly regardless of field name overlaps.
Can I split a PDF based on content rather than fixed page counts?
Split operations support both fixed-count page splitting (every N pages) and specific page range extraction. If you have more complex splitting requirements, contact support to discuss your use case.
How much can PDF file size be reduced?
Optimization is handled by Adobe PDF Services and depends on the source content. Scanned-image PDFs with uncompressed raster content compress significantly. PDFs already optimized by their authoring tool see smaller reductions. If you have specific upload size requirements for a submission target, contact support to discuss the appropriate optimization setting for your use case.
Can PDF manipulation operations run on multiple files at once?
Merge, split, rotate, and related operations can be applied across multiple files. For filling-and-merging workflows at high volume - such as merging all rows from a batch job - the batch merge endpoint handles the full set of completed rows. See Batch Processing for how batch fill and merge work together.
How does rotation correction work for scanned forms?
PDF pages store a rotation value in their metadata (0, 90, 180, or 270 degrees). When scanning a portrait-orientation form on a landscape-set copier, the resulting page is stored rotated. Without correction, field coordinates reported in the visual space map to the wrong location in the PDF coordinate system. Before placing any content, Instafill.ai reads the page rotation entry and applies the corresponding coordinate transformation so fills land correctly regardless of how the source PDF encodes orientation.
Can I apply whiteout to a form before filling it?
Yes. Whiteout regions are applied to specific coordinates on the overlay canvas before the fill layer is composited. This means the white rectangle covers the targeted area and the fill value sits on top of it - so the pre-printed content underneath is hidden in the output.