Quantcast
Viewing all articles
Browse latest Browse all 166

Error in reading the file

Known Issues Articles

 

Known Issue# 9074: Error in reading the file

Topic/Category: Imagemagik

Ephesoft version(s) Affected:3034 sp1

Issue: error on the multipage PDF generation. When using color.

Example Stack Trace:

3034 SP1 2014-04-10 11:47:10,428 INFO  pool-1-thread-1 com.ephesoft.dcma.imagemagick.MultiPageTiffPdfCreator – Processing complete at Thu Apr 10 11:47:10 CDT 2014

3034 SP1 2014-04-10 11:47:10,475 ERROR pool-1-thread-1 com.ephesoft.dcma.util.PDFUtil – Error in reading the file:C:\Ephesoft\SharedFolders\ephesoft-system-folder\BI170\BI170_documentDOC72.pdf Rebuild failed: trailer not found.; Original message: PDF startxref not found.

com.itextpdf.text.exceptions.InvalidPdfException: Rebuild failed: trailer not found.; Original message: PDF startxref not found.

at com.itextpdf.text.pdf.PdfReader.readPdfPartial(PdfReader.java:662)

at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:178)

at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:347)

at com.ephesoft.dcma.util.PDFUtil.getPDFPageCount(PDFUtil.java:37)

at com.ephesoft.dcma.imagemagick.MultiPageTiffPdfCreator.validatingDocumentVsPdfPage(MultiPageTiffPdfCreator.java:831)

at com.ephesoft.dcma.imagemagick.MultiPageTiffPdfCreator.createMultiPageTiffAndPDF(MultiPageTiffPdfCreator.java:808)

at com.ephesoft.dcma.imagemagick.MultiPageTiffPdfCreator.createMultiPageFiles(MultiPageTiffPdfCreator.java:326)

at com.ephesoft.dcma.imagemagick.service.ImageProcessServiceImpl.createMultiPageFiles(ImageProcessServiceImpl.java:162)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)

at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

 

 

Solution:

Workaround

Instructions

    1. “IM Convert Output Image Parameters” in “Import MultiPage Files Plugin” in “Folder Import” were set to “-resize 2550^> -compress group4 –density 300”.

    Here, resize parameter will work only for images whose size is greater than 2550 and it will resize the image to standard page sizes. Density parameter alters the DPI of the image.

    (Please refer screenshot below)

     

    Image may be NSFW.
    Clik here to view.
    image001

     

     

    1. “imagemagick.itext_image_convert_parameters” in “imagemagick.properties” was set to the following value instead of (imagemagick.itext_image_convert_parameters=-type optimize

    -resize 2486×3900^> -compress LZW -resample 200 ):

    imagemagick.itext_image_convert_parameters=-type optimize

     

    1. “RepairResolution” tag in “FPR.RSP” file in the native as well as in the concerned Batch Class was set to “true”.

 

 

< Back| Known Issues Main Page | Next Known Issue #? >

 

 

 


Viewing all articles
Browse latest Browse all 166

Trending Articles