Unable to convert supported file formats to PDF documents and vice-versa

Unable to convert Microsoft Word files to PDF documents on Microsoft Windows Server 2016

Issue

When a user tries to convert a Microsoft Word file to PDF document from AEM Forms on JEE Admin UI, the below error occurs, and the conversion fails:

The system cannot open the input file. Please submit your file again or contact your system administration.

Resolution

The issue can occur when the UAC control is not completely disabled. Perform the following steps to disable UAC control from the Windows registry. The following steps explain how to modify the registry to disable UAC control. serious problems might occur if you modify the registry incorrectly. Therefore, back up the registry before you modify it.

  1. Open Windows Explorer and navigate to the C:\Windows\SysWOW64\config\systemprofile folder. Create a folder named Desktop.

  2. Click Start, click Run, type regedit in the Open box, and then click OK. The Registry Editor opens. 

  3. Navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.

  4. Open the EnableLUA key, change the Value data to 0, and click OK.

  5. Open Adobe Acrobat and install the latest patches.  The issue is resolved. You can now start the conversion. 

    If the issue persists, ensure that you are using have installed latest patches and fixes for Microsoft Office and Adobe Acrobat DC. Also, perform all the pre and post installation configurations for the PDF Generator service, ensure all the required environment variables are set, and startup dialog boxes for all the client softwares are disabled.

     

PDF Generator fails to convert Microsoft Office 2016 files on Microsoft Windows Server 2016

Issue

PDF Generator fails to open Microsoft Office 2016 files on Microsoft Server 2016, the below error occurs, and the conversion fails:

ALC-PDG-015-003-The system cannot open the input file. Please submit your file again or contact your system administrator. 

Resolution

The issue can occur when the Desktop folder does not exist in Windows system profile. Perform the following steps to resolve the issue:

  1. Open Microsoft Windows Explorer.

  2. Verify the folder C:\Windows\SysWOW64\config\systemprofile\Deskop folder exists. If the folder does not exist, create it.

  3. Grant full control to the user configured to use PDF on the following folders:

    • \Windows\SysWOW64\config\systemprofile\Deskop folder
    • <crx-quickstart-home>\temp
  4. Use PDF Generator to convert Microsoft Office 2016 files.  

Unable to convert large .tiff or .tif files to PDF documents

Issue

PDF Generator fails to convert .tiff or .tif files of large size, larger than 1 GB, to PDF Documents. You encounter error messages similar to the below:

ALC-PDG-001-000-Invocation error.: ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.

Caused by: ALC-PDG-11028-000: com.adobe.livecycle.generatepdf.client.ConversionException:

ALC-PDG-011-028-Error occurred while converting the input image file to PDF. Java heap space

Resolution

You can increase the maximum page limit to resolve the issue. To set the maximum page limit:

Set maximum page limit on AEM Forms on JEE

  1. Login to AEM Forms on JEE Admin UI. The default URL is http://<server>:<port>/adminui

  2. Navigate to Services > Application and Services > Service Management > Configure GeneratePDF Service.

  3. Lower the value of the ImageToPDF max pages in memory for tiff conversion option. A lower value helps load less number of pages to memory before saving the pages to disk. It helps resolve the issue.

  4. Run the conversion again.

Set maximum page limit on AEM Forms on OSGi

  1. Login to AEM Forms on OSGi instance.

  2. Navigate to Tools > Forms > Configure PDF Generator.

  3. Set value of the ImageToPDF Max Pages in Memory for Tiff Conversion option to 500 or more and click Submit.

  4. Run the conversion again. 

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy