Author Topic: Kofax Export of PDF Files Not Viewable in PDF Viewer  (Read 82 times)

Joe Wolken

  • Jr. Member
  • **
  • Posts: 65
  • CMOD iSeries Consultant
    • View Profile
    • OAS Corp.
Kofax Export of PDF Files Not Viewable in PDF Viewer
« on: October 04, 2019, 08:48:38 AM »
I have a Kofax Capture system configured with the old Kofax Export to OnDemand v.5 export script. I have Kofax PDF Generator configured to convert the scanned documents to PDF.
I have OnDemand App Group and App configured to accept PDF files.
The Export module successfully exports the combination of .ARD, .IND, and .OUT files to the OnDemand server for loading.
The files successfully index to OnDemand.

The issue is on display from OnDemand Client. The files launch in my Adobe PDF Viewer on the PC but they give an ERROR saying that the files are damaged.

I have attached one set of files with this issue, .ARD, .IND and .OUT file.  Remove the .TXT added to the end of each needed for attachment.

The Export module combines the PDF files from the Kofax Batch to a single .OUT file.  The OnDemand Load program is dividing the .OUT file back into multiple files based on the OFFSET and LENGTH specified for each document in the .IND file.

Has anyone bumped into this scenario? Does anyone have any idea what I could try differently or have a work around.
Installation, Upgrade, Migration, Administration, Integration, Customization, Training, and more!

Call: 512-402-1123
email: wolkenj@oascorp.com 
Click: http://www.OASCorp.com

Joe Wolken

  • Jr. Member
  • **
  • Posts: 65
  • CMOD iSeries Consultant
    • View Profile
    • OAS Corp.
Re: Kofax Export of PDF Files Not Viewable in PDF Viewer
« Reply #1 on: October 04, 2019, 09:37:17 AM »
Additional testing to try to isolate the issue: I created Exported a single document batch to my local PC hard disk. 
Export created the .OUT file and .IND file on my local disk.
I renamed the file extension to .PDF and tried to open the file.
My Adobe viewer gives the same error that the file is damaged.

I changed my Batch Class to remove the PDF Generator and export the TIF instead. When I do the same rename of .OUT to .TIF the TIF file displays correctly in my TIF viewer.

It appears that the cause may be the Export module creation of the .OUT file specific to the handling of PDF files.

Installation, Upgrade, Migration, Administration, Integration, Customization, Training, and more!

Call: 512-402-1123
email: wolkenj@oascorp.com 
Click: http://www.OASCorp.com

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 1751
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Kofax Export of PDF Files Not Viewable in PDF Viewer
« Reply #2 on: October 05, 2019, 06:49:46 AM »
It's not producing PDFs.  Your output file is a TIFF.  (Or you uploaded the wrong one.)

-JD.
#Install, #Educate, #Repair, #Upgrade, #Migrate, #Enhance, #Optimize.

IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SA #Performance #Security #Audits #Customizing #Availability #HA #DR #Training

Joe Wolken

  • Jr. Member
  • **
  • Posts: 65
  • CMOD iSeries Consultant
    • View Profile
    • OAS Corp.
Re: Kofax Export of PDF Files Not Viewable in PDF Viewer
« Reply #3 on: October 05, 2019, 07:40:10 AM »
Justin,

Thanks for catching this.  I also realized this late yesterday and was returning here to post this update.

I made the wrong assumption that if I disable the Export Image check box from the old Kofax Export to OnDemand module that it would output the PDF.  Obviously, it still outputs the TIF.
Installation, Upgrade, Migration, Administration, Integration, Customization, Training, and more!

Call: 512-402-1123
email: wolkenj@oascorp.com 
Click: http://www.OASCorp.com

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 1751
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Kofax Export of PDF Files Not Viewable in PDF Viewer
« Reply #4 on: October 06, 2019, 05:48:53 PM »
No problem.  We often just need a new pair of eyeballs to see what's happening in front of us.  :)  I'd been fighting with a bug in some code for two hours, and figured it out while walking home for dinner.  :D

Take care. 

-JD.
#Install, #Educate, #Repair, #Upgrade, #Migrate, #Enhance, #Optimize.

IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SA #Performance #Security #Audits #Customizing #Availability #HA #DR #Training