Author Topic: Using ARSDOC Get to Retrieve PDF files to a Single file  (Read 2612 times)

Joe Wolken

  • Full Member
  • ***
  • Posts: 113
  • CMOD iSeries Consultant
    • View Profile
    • OAS Corp.
Using ARSDOC Get to Retrieve PDF files to a Single file
« on: September 14, 2017, 09:56:57 AM »
I am working on an AIX v.9.0 system.  I have lots of PDF files in a Folder.  I have a Named Query to retrieve a subset.  I want to retrieve all of the PDF files to my server. Ideally, I'd like all of the single page PDF files concatenated into 1 large PDF file.  Is this possible?  I am using the following command:

./arsdoc get –v –c –f RSC_SCI_OLPNCTNDTL –h cmod –u CMOD –p /opt/IBM/ondemand/V9.0/config/ars.stash –q STORE103 -o /STORE103

The command performs the query successfully, but generates an error retrieving or building the file.  Do I have my parms wrong?  Any suggestions or sample code would be appreciated.

Thanks,
Joe
#Installation #Upgrade #Migration #Administration #Integration #Customization #Training, and more!

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

Nolan

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: Using ARSDOC Get to Retrieve PDF files to a Single file
« Reply #1 on: September 14, 2017, 10:21:21 AM »
What error are you getting?  Looking at your command I would change it to

./arsdoc get –v –f RSC_SCI_OLPNCTNDTL –h cmod –u CMOD –p /opt/IBM/ondemand/V9.0/config/ars.stash –q STORE103 -o STORE103 -c
J.

#zOS #AIX #Windows #Multiplatforms
#DB2 #TSM #ODF #zODF #ODWEK
#CapacityPlanning #AFP #ReportDistribution
#Finance #ICN

Joe Wolken

  • Full Member
  • ***
  • Posts: 113
  • CMOD iSeries Consultant
    • View Profile
    • OAS Corp.
Re: Using ARSDOC Get to Retrieve PDF files to a Single file
« Reply #2 on: September 14, 2017, 11:31:55 AM »
Thanks for the ideas. 

The following command successfully creates 1 file, but the file will not open in the Adobe Acrobat saying it is corrupt and cannot be repaired.  When I open the file in a text editor it appears generally to be a PDF formatted document.

./arsdoc get –v –f RSC_SCI_OLPNCTNDTL –h cmod –u CMOD –p /opt/IBM/ondemand/V9.0/config/ars.stash –q STORE103 –d /home/cmod -o /store103.pdf  –c

If I remove the –c parm so the files are not concatenated, then I get many individual files in the directory. Each one will successfully open in Adobe Acrobat.

Is there a bug with the –c parm when working with PDF files?  Or am I missing something?

Again, I'm still on 9.0.0.3.  This may have an effect?

Thanks,
#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: 2230
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Using ARSDOC Get to Retrieve PDF files to a Single file
« Reply #3 on: September 14, 2017, 05:08:01 PM »
What you're seeing is the correct behavior.  CMOD's arsdoc get -c parameter concatenates the documents together as individual PDF files.  Opening it confuses Acrobat, because there's multiple PDF *files* inside a single file, rather than multiple *pages* in a single PDF file.

This is simply for convenience when you're reloading these documents with the IBM CMOD arsload utility.  OnDemand doesn't have the ability to concatenate the individual pages in all of the PDF files into a single PDF.  (FYI, it also doesn't do this with AFP files -- they're all separate AFP documents.)

You can use Acrobat Professional, or a variety of open source tools to consolidate the pages from many PDFs into a single PDF file.

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

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