Got it working with this code (which assumes the object was already
instantiated):
* _screen.oQuickPDF.ClearFileList("MyList")*
lcPath = ADDBS(ALLTRIM(_screen.cRepository)) + "temp\"
IF NOT DIRECTORY(lcPath) THEN
MKDIR (lcPath)
ENDIF
SELECT tmpSelected
SCAN
SCATTER NAME loFile
lcFile = ADDBS(lcPath)+FORCEEXT("File_" +
ALLTRIM(STR(tmpSelected.iFileLinkID)) + "_" +
ALLTRIM(STR(tmpSelected.iDocLinkID)) + "_" + TTOC(DATETIME(),1) +
SYS(2015),'PDF')
*_screen.oQuickpdf.ExtractFilePagesEx(ADDBS(ALLTRIM(loFile.cPath))+ALLTRIM(loFile.cfilename),'',lcFile,ALLTRIM(loFile.cRange),3)*
*_screen.oQuickPDF.AddToFileList("MyList",lcFile)*
ENDSCAN
* now put the page outputs from the temp files all into the final PDF
lcFile = lcPath + "MyOutput.pdf"
*_screen.oQuickPDF.MergeFileListFast("MyList",lcFile)*
LaunchFile(lcFile)
USE IN SELECT('tmpSelected')
On 8/1/2019 4:19 PM, MB Software Solutions, LLC wrote:
Customer has a single PDF ("document") with several pages in it (let's
say 12 pages). The document is made up of several scanned files, each
a different file type or "component."
Customer wants to extract certain pages from this single PDF into
later email to other parties. They cannot mail the entire document
because some content isn't intended for recipients (like invoices) but
they want to be able to send other selected "component" parts and that
file attached to the email deliverable would be a SINGLE file.
Example:
MyPDF.PDF
Page 1: Invoice ("A")
Page 2-3: Bill of lading ("B")
Page 4-6: Fuel slips ("C"
Page 7-10: Something else ("D")
Page 11-12: Yada yada yada ("E")
Eventually, components B, C, and E will be emailed to somebody.
Given this scenario, what do you recommend?
tia,
--Mike
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message:
https://leafe.com/archives/byMID/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.