Combine [survey notes] and the [GIS export layers] into a single reference PDF, include a contents page, and send the …
Install Adobe Acrobat Pro and ensure JavaScript for Acrobat is enabled in Preferences.
CautionPDF Portfolio creation and manipulation via scripting is only supported in Acrobat Pro, not in Reader.
Open Acrobat and create a new blank PDF Portfolio manually to serve as a template.
Open the JavaScript console in Acrobat by pressing Ctrl+J (Windows) or Cmd+J (Mac).
Use the app.openDoc() and doc.importDataObject() JavaScript methods to programmatically add files to the Portfolio.
NoteAcrobat JavaScript can add attachments, which are the underlying structure of Portfolio files.
To extract files from a Portfolio, use the doc.dataObjects property and exportDataObject() method in JavaScript.
Save the manipulated Portfolio using the doc.saveAs() method.
Test the Portfolio in Acrobat to ensure all files are correctly embedded and accessible.
Best practiceSome blog sources recommend scripting the attachment process in small batches to avoid memory issues with large Portfolios.
You can use Acrobat's JavaScript console to automate adding or extracting files in a PDF Portfolio.
This runs in the Acrobat app - there is no separate API for this task.
To create a PDF Portfolio with the Adobe PDF Services API, you send a request to the correct API endpoint with your files and authentication details. The API will return a new PDF Portfolio containing all your files. You can write this in languages like JavaScript, Python, or Java.
Merging PDFs combines all pages into one long document, while a PDF Portfolio keeps each file separate inside a single PDF container. Use a Portfolio when you want to keep original files and types, like PDFs, images, and spreadsheets, together but not mixed.
Yes, you can add many file types, such as Word documents, Excel sheets, images, and more, to a PDF Portfolio using the API. Each file stays in its original format inside the Portfolio.
You need to get API credentials from Adobe, like a client ID and secret. Your code uses these to prove your app is allowed to use the API, usually by sending them in the request headers.
A PDF Portfolio lets you send many files together while keeping their original formats and names. This is helpful if you want to include different file types or keep files separate for easy access.