PDF Print Production Node.js Overview
The PDF Print Production NodeJS package prepares PDFs for professional printing with precise control over page geometry, color, and output compliance. Enforce standard or custom trim sizes using multiple measurement units, define bleed on all sides, and generate bleed content using mirror image or pixel repeat modes. Add production marks such as trim marks, registration marks, tint bars, and optional slug text for job identification. Manage color spaces including RGB, sRGB, CMYK, and Gray, and embed industry-standard PDF Output Intents such as FOGRA, GRACoL, SWOP, and Japan Color for print consistency. Custom ICC profiles are supported when required. Optimize output by downsampling images, setting target resolution, and selecting precise page ranges, making the tool ideal for automated, print-ready PDF workflows at scale.
Precise Trim and Bleed Control
Enforce standard or custom trim sizes, define bleed, and generate bleed content using mirror image or pixel repeat modes.
Production Marks and Slugs
Add trim marks, registration marks, tint bars, and optional slug text to meet professional print house and prepress requirements.
Color Management and Output Intents
Convert and embed color spaces including RGB, sRGB, CMYK, and Gray, and set industry-standard or custom ICC OutputIntent profiles.
Print-Ready PDF Compliance
Prepare PDFs suitable for professional printing workflows, including output intent embedding and controlled rasterization.
Customizable Parameters
Fine-tune your automation with these powerful conversion options
File
File Supported formats: .pdfFile to be converted. Value can be URL or file content.
Password
StringSets the password to open protected PDF.
TrimSize
Collection Default: defaultPage size to enforce on every page. Default keeps each page’s current size; Custom activates TrimWidth / TrimHeight.
TrimWidth
IntegerWidth of Trim Box in millimeters (mm) when TrimSize is set to Custom.
TrimHeight
IntegerWidth of Trim Box in millimeters (mm) when TrimSize is set to Custom.
BleedTop
Integer Default: 3Thickness of bleed added above the Trim Box (top edge). Specify a single numeric value in millimeters (mm) to extend the page beyond the trim area at the top for full-bleed printing.
Range: 0 .. 30BleedRight
Integer Default: 3Thickness of bleed added to the right of the Trim Box (right edge). Specify a single numeric value in millimeters (mm) to extend the page beyond the trim area on the right for full-bleed printing.
Range: 0 .. 30BleedBottom
Integer Default: 3Thickness of bleed added below the bottom of the Trim Box (bottom edge). Specify a single numeric value in millimeters (mm) to extend the page beyond the trim area at the bottom for full-bleed printing.
Range: 0 .. 30BleedLeft
Integer Default: 3Thickness of bleed added to the left of the Trim Box (left edge). Specify a single numeric value in millimeters (mm) to extend the page beyond the trim area on the left for full-bleed printing.
Range: 0 .. 30BleedMode
Collection Default: noneDefines how additional bleed content is generated when bleed is requested. Choose Mirror to mirror page content outward into the bleed area for a realistic full-bleed preview, Stretch to extend edge pixels into the bleed, or None to disable bleed fabrication.
TrimMarks
Bool Default: FalseAdds crop marks outside the Bleed Box.
RegistrationMarks
Bool Default: FalseAdds registration targets centred ≥3mm outside Bleed Box on each edge.
Slug
StringText placed on the bottom of the Media Box (e.g., printed file name, order number, customer information, etc.).
TintBars
Bool Default: FalseAdds grayscale and color control bars at the top of the page, positioned outside the Trim Box.
ColorSpace
Collection Default: defaultSet PDF color space. The Default option leaves the color space as is.
OutputIntent
Collection Default: noneEmbeds ICC profile as PDF OutputIntent. Choosing Custom requires OutputIntentIccFile to be provided.
OutputIntentIccFile
File Supported formats: .iccEmbeds ICC profile as PDF OutputIntent. Required when OutputIntent is set to custom.
EmbedFonts
Bool Default: TrueEmbed fonts in PDF.
SubsetFonts
Bool Default: TrueInclude in the output PDF document only the font characters that are used in the original document.
DownsampleImages
Bool Default: FalseReduces images above resolution to save file size.
Resolution
Integer Default: 300Target resolution (PPI) used for rasterization tasks such as bleed fabrication and image downsampling.
Range: 10 .. 800PageRange
String Default: 1-lastSet page range to convert. The parameter understands digits and keywords such as even, odd, and last (for example: 1,2,5-last). Regardless of the range specified, a maximum of 100 pages will be processed per conversion.
StoreFile
Bool Default: FalseWhen the StoreFile parameter is set to True, your converted file is written to ConvertAPI’s encrypted, temporary storage and made available via a time-limited secure download URL, valid for up to 3 hours. After this period, the file is permanently deleted.
When StoreFile is set to False, conversion happens entirely in-memory. The raw file bytes are streamed back in the API response without touching disk or external storage, ensuring maximum security and zero persistence so that only you can access the content.
Step-by-Step Guide
Easy PDF Print Production integration programmatically using our simple npm package for Node.js
1. ConvertAPI Node.js library install
ConvertAPI provides a Node.js library that allows you to perform a PDF Print Production conversion with just a few lines of code.
First, install our convertapi library from npm:
npm install convertapi --save
2. Authenticate your Node.js library
You can obtain your API Token by signing up for a free account. Once you sign up, you'll receive 250 free conversions instantly! Grab your API Token from the account dashboard, and authenticate the ConvertAPI Node.js library like this:
var convertapi = require('convertapi')('api_token');
Or using ES modules:
const convertapi = new ConvertAPI('api_token');
3. PDF Print Production using Node.js in no time!
Once you have your authentication in place, simply copy-paste this pdf to print conversion code snippet into your Node.js project:
Integrate within minutes
Easy PDF Print Production automation using our simple Node.js SDK
Compatible With all NodeJS Frameworks & Tools
Businesses trust us
Highest rated File Conversion API on major B2B software listing platforms: Capterra, G2, and Trustpilot.
"ConvertAPI has been a game-changer for our document automation workflows. Their conversion accuracy and API reliability are unmatched in the industry for over 7 years."
"ConvertAPI is a reliable, cost-effective solution with a proven track record of stability. It has grown significantly in maturity, adopting enterprise-grade practices over the years."
"We've integrated ConvertAPI across our entire document processing platform. The performance is exceptional and the support team is always responsive. Highly recommended!"
Enterprise-Grade Security
We ensure that all document processing is handled securely in the cloud, adhering to industry-leading standards like ISO 27001, GDPR, and HIPAA. To enhance security even further, we can ensure that no files or data are stored on our servers and never leave your country.
Learn more about security