Highlighted

A Strange CFPDF issue in CF11

New Here ,
Nov 03, 2014

Copy link to clipboard

Copied

When we trying extract the content from PDF containing images getting strange error in the CF11 for cfpdf tag. But its working fine for PDF with out images (i.e. plain PDF with only content)

But both are working good in CF9.

Sample Code :

<cftry>

     <cfpdf action = "extracttext" source = "sample.pdf" destination="sample.doc" overwrite="yes">

     <cfdocument

              format="pdf"  srcfile="sample.doc" filename="sample1.pdf" overwrite="yes">

      </cfdocument>

     <cfcatch type="any">

            <cfoutput>Error Occured : #cfcatch#</cfoutput>

     </cfcatch>

</cftry>

Sample code is working fine in ColdFusion 9 for PDF containing images and with out images. But below error occurred when we try to extract the content from PDF conatining images

Error Occured : java.lang.IllegalArgumentException: Invalid bfchar pattern in ToUnicodeCmap

Thanks a lot in adavance

Views

499

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

A Strange CFPDF issue in CF11

New Here ,
Nov 03, 2014

Copy link to clipboard

Copied

When we trying extract the content from PDF containing images getting strange error in the CF11 for cfpdf tag. But its working fine for PDF with out images (i.e. plain PDF with only content)

But both are working good in CF9.

Sample Code :

<cftry>

     <cfpdf action = "extracttext" source = "sample.pdf" destination="sample.doc" overwrite="yes">

     <cfdocument

              format="pdf"  srcfile="sample.doc" filename="sample1.pdf" overwrite="yes">

      </cfdocument>

     <cfcatch type="any">

            <cfoutput>Error Occured : #cfcatch#</cfoutput>

     </cfcatch>

</cftry>

Sample code is working fine in ColdFusion 9 for PDF containing images and with out images. But below error occurred when we try to extract the content from PDF conatining images

Error Occured : java.lang.IllegalArgumentException: Invalid bfchar pattern in ToUnicodeCmap

Thanks a lot in adavance

Views

500

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 03, 2014 0
jdriley LATEST
New Here ,
Dec 30, 2014

Copy link to clipboard

Copied

I'm having same exact issue. It's a show stopper for me on upgrading to CF 11.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 30, 2014 0