Use PDF Rasterizer
- Topics:
- Developer Tools,Renditions
CREATED FOR:
- Developer
- Admin
When you upload large, content-intensive PDF or AI files to Adobe Experience Manager Assets, the default library may not generate an accurate output. Adobe’s PDF Rasterizer library can generate a more reliable and accurate output when compared to the output from a default library. Adobe recommends using the PDF Rasterizer library for the following scenarios:
Adobe recommends using the PDF Rasterizer library for the following:
- Heavy, content intensive AI files or PDF files.
- AI files and PDF files with thumbnails that are not generated by default.
- AI files with Pantone Matching System (PMS) colors.
Thumbnails and previews generated using PDF Rasterizer are better in quality compared to out-of-the-box output and, therefore, provide consistent viewing experience across devices. The Adobe PDF Rasterizer library does not support any color space conversion. It always outputs to RGB irrespective of the color space of the source file.
-
Install the PDF Rasterizer package on your Adobe Experience Manager deployment from Software Distribution.
NOTE
The PDF Rasterizer library is available for Windows and Linux only. -
Access the Assets workflow console at
https://[aem_server]:[port]/workflow
. Open DAM Update Asset workflow. -
To prevent the thumbnail and web rendition generation for PDF files and AI files using the default methods, follow these steps:
- Open the Thumbnail Process step, and add
application/pdf
orapplication/postscript
in the Skip Mime Types field under the Thumbnails tab as necessary.
- In the Web Enabled Image tab, add
application/pdf
orapplication/postscript
under Skip List depending upon your requirements.
- Open the Thumbnail Process step, and add
-
Open the Rasterize PDF/AI Image Preview Rendition step, and remove the MIME type for which you want to skip the default generation of preview image renditions. For example, remove the MIME type
application/pdf
,application/postscript
, orapplication/illustrator
from the MIME Types list. -
Drag the PDF Rasterizer Handler step from the side panel to below the Process Thumbnails step.
-
Configure the following arguments for the PDF Rasterizer Handler step:
- MIME types:
application/pdf
orapplication/postscript
- Commands:
PDFRasterizer -d -s 1280 -t PNG -i ${file}
- Add Thumbnail sizes: 319:319, 140:100, 48:48. Add custom thumbnail configuration, if necessary.
The command line arguments for the
PDFRasterizer
command can include the following:-
-d
: Flag to enable smooth rendering of text, vector artwork, and images. Creates better quality images. However, including this parameter causes the command to run slowly and increase the size of images. -
-s
: Maximum image dimension (height or width). This is converted to DPI for each page. If pages are of different size, each page can potentially scale by different amount. The default is actual page size. -
-t
: Output image type. Valid types are JPEG, PNG, GIF, and BMP. The default value is JPEG. -
-i
: Path for input PDF. It is a mandatory parameter. -
-h
: Help
- MIME types:
-
To delete intermediate renditions, select Delete Generated Rendition.
-
To let PDF Rasterizer generate web renditions, select Generate Web Rendition.
-
Specify the settings in the Web Enabled Image tab.
-
Save the workflow.
-
To enable PDF Rasterizer to process PDF pages with PDF libraries, open the DAM Process Subasset model from the Workflow console.
-
From the side panel, drag the PDF Rasterizer Handler step under the Create Web-Enabled Image Rendition step.
-
Configure the following arguments for the PDF Rasterizer Handler step:
- MIME types:
application/pdf
orapplication/postscript
- Commands:
PDFRasterizer -d -s 1280 -t PNG -i ${file}
- Add thumbnail sizes:
319:319
,140:100
,48:48
. Add custom thumbnail configuration as required.
The command line arguments for the
PDFRasterizer
command can include the following:-
-d
: Flag to enable smooth rendering of text, vector artwork, and images. Creates better quality images. However, including this parameter causes the command to run slowly and increase the size of images. -
-s
: Maximum image dimension (height or width). This is converted to DPI for each page. If pages are of different size, each page can potentially scale by different amount. The default is actual page size. -
-t
: Output image type. Valid types are JPEG, PNG, GIF, and BMP. The default value is JPEG. -
-i
: Path for input PDF. It is a mandatory parameter. -
-h
: Help
- MIME types:
-
To delete intermediate renditions, select Delete Generated Rendition.
-
To let PDF Rasterizer generate web renditions, select Generate Web Rendition.
-
Specify the settings in the Web Enabled Image tab.
-
Save the workflow.
-
Upload a PDF file or an AI file to Experience Manager Assets. PDF Rasterizer generates the thumbnails and web renditions for the file.
Experience Manager
- Assets user guide
- AEM 6.4 Assets release notes
- About DAM
- User experience improvements
- Best practices for assets
- Use AEM Assets
- Dynamic Media
- Dynamic Media newsletter archive by Experience League
- Setting up Dynamic Media
- Working with Dynamic Media
- Configuring Dynamic Media - Scene7 mode
- Configuring Dynamic Media - Hybrid mode
- Troubleshooting Dynamic Media - Scene7 mode
- Managing Dynamic Media assets
- Best practices for optimizing the quality of your images
- Managing Dynamic Media Viewer Presets
- Applying Dynamic Media Viewer Presets
- Managing Dynamic Media Image Presets
- Applying Dynamic Media Image Presets
- Dynamic Media Video Profiles
- Dynamic Media Image Profiles
- Smart Imaging
- Smart Imaging with client-side Device Pixel Ratio
- Video
- HTTP2 delivery of content
- Delivering Dynamic Media assets
- Activating hotlink protection in Dynamic Media
- Dynamic Media limitations
- Image Sets
- Mixed Media Sets
- Spin Sets
- Panoramic Images
- Video
- Interactive Images
- Interactive Videos
- Carousel Banners
- Using Quickviews to create custom pop-ups
- Delivering optimized images for a responsive site
- Previewing Dynamic Media assets
- Adding Dynamic Media assets to pages
- Adding Dynamic Media Classic components to pages
- Embedding the Dynamic Video or Image viewer on a web page
- Linking URLs to your web application
- Using Rulesets to transform URLs
- Publishing Dynamic Media assets
- Invalidating your CDN cached content
- Installing Feature Pack 18912 for bulk asset migration
- Working with Selectors
- Extend Assets
- Administer Assets
- Assets supported formats
- Search facets
- Managing Metadata for assets
- XMP writeback to renditions
- Asset link sharing
- Asset reports
- Enhanced Smart Tags
- Profiles for processing metadata, images, and videos
- Cascading metadata
- Create and configure Asset Editor pages
- Assets sizing guide
- Metadata Schemata Reference
- Best practices for translating assets efficiently
- Assets performance tuning guide
- How to edit or add metadata
- Assets migration guide
- XMP metadata
- Assets network considerations
- AEM Assets vs. AEM MediaLibrary
- Using PDF rasterizer
- Configuring asset upload restrictions
- AEM and Creative Cloud integration best practices
- Configure Adobe Asset Link
- Integrating AEM Assets with InDesign server
- Metadata profiles
- Digital Rights Management in Assets
- Using demo package for Assets Insights
- Assets Offloading Best Practices
- Assets file format best practices
- Assets Monitoring Best Practices
- Camera Raw Support
- Detecting MIME Type of Assets Using Apache Tika
- Imaging Transcoding Library
- Support for IPTC Metadata
- Metadata Schemas
- Multi-tenancy for Collections, Snippets, and Snippet Templates
- Watermarking
- Bulk Metadata Import and Export
- Asset Templates
- AEM to Creative Cloud Folder Sharing Best Practices
- Folder Metadata Schema
- Managing Smart Tags
- Brand Portal
- Content Fragments
- Working with Content Fragments
- Managing Content Fragments
- Content Fragment Models
- Variations - Authoring Fragment Content
- Content Fragment Associated Content
- Metadata - Fragment Properties
- Content Fragments - Delete Considerations
- Content Fragments - Markdown
- Creating translation projects for Content Fragments
- Manage Assets
- Managing Assets with the Touch-Optimized UI
- Managing multiple assets and collections
- Asset selector
- Managing Collections
- Check in and check out files in Assets
- Configure asset tagging using the Smart Content Service
- Enabling duplicate detection
- Enhanced sorting of assets in AEM
- Organize digital assets
- Managing video assets
- Creating Translation Projects
- Preparing Assets for Translation
- Download assets from AEM
- Asynchronous Operations
- Lightbox
- Enabling Assets Insights through DTM
- Configuring Assets Insights
- Applying translation cloud services to folders
- Using Page Tracker and Embed code in web pages
- Managing Compound Assets
- Related Assets
- Assets Insights
- Searching Video Assets
- Private folder sharing
- Smart Content Service Training Guidelines
- Video renditions
- Integration with other solutions