OnDemand User Group

Support Forums => MP Server => Topic started by: Joe Wolken on September 14, 2017, 09:56:57 AM

Title: Using ARSDOC Get to Retrieve PDF files to a Single file
Post by: Joe Wolken 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
Title: Re: Using ARSDOC Get to Retrieve PDF files to a Single file
Post by: Nolan 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
Title: Re: Using ARSDOC Get to Retrieve PDF files to a Single file
Post by: Joe Wolken 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,
Title: Re: Using ARSDOC Get to Retrieve PDF files to a Single file
Post by: Justin Derrick 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.