A quick question about merging several pdf files to one pdf file

51 views
Skip to first unread message

Khan Software Ltd

unread,
Apr 12, 2018, 1:07:01 PM4/12/18
to frx...@googlegroups.com

H Marata

 

Hope all is well.

 

My customers are asking me to merge several pdf files into one file for sending their accounts once a month.

I already create and end of month statement pdf file and several invoice pdf files.

 

For example, customer  AA may have aa.pdf (statement) and inv001.pdf, inv002.pdf, inv003.pdf and inv004.pdf.

Is there an easy way to merge inv001.pdf+inv002.pdf+inv003.pdf+inv004.pdf into AA.pdf and email just one file ?

 

Your help will be appreciated.

 

Kind Regards

Shafid Khan

Khan Software Ltd

+64 3 528-8585

New Zealand

 

Marat Chariev

unread,
Apr 12, 2018, 1:36:02 PM4/12/18
to FRX2Any
Hi Khan
Yes, it's possible. See \FRX2Any\Samples\PDF OutPut\Merging two PDF documents together 2\mergingtwopdfdocumentstogether2.prg
for example.

Regards
Marat Chariev
Message has been deleted

Marat Chariev

unread,
Apr 13, 2018, 1:20:53 PM4/13/18
to FRX2Any
Hi Khan
Which version of FRX2Any you use? Probably yours does not have such functionality.

Regards
Marat Chariev


On Thursday, April 12, 2018 at 1:07:01 PM UTC-4, Shafid Khan wrote:

Khan Software Ltd

unread,
Apr 16, 2018, 10:19:04 AM4/16/18
to frx...@googlegroups.com

Hi Marat

 

The frx2any.app date is 12th of Nov 2015. I don’t know how to find out the version.

( think it could be version 14.08.00)

 

I managed to get the program working but can only add one invoice to the statement. How can I add more than

One invoice.pdf to the statement.pdf

 

***** My sample code

lcPDFFileToMergeTo ="c:\khan\pdf\supl\supl.pdf"

                lcPDFFileToMerge ="c:\khan\pdf\supl\inv16941.pdf"

               

                lcFRX2AnyLibrary = 'FRX2Any'

                SET CLASSLIB TO FRX2Any IN FRX2Any.APP ALIAS FRX2Any

 

                loFile = CREATEOBJECT('FRX2Any.PDFFile')

 

                IF TYPE('loFile') = 'O'

               

                                oFile.UNLOCK('xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxx’)

 

                                loFile.MergeDocument(lcPDFFileToMergeTo, lcPDFFileToMerge)

                               

                                                               

                                loFile.RELEASE()

                endif

***

 

Kind Regards

Shafid Khan

Khan Software Ltd

03 528-8585

--
You received this message because you are subscribed to the Google Groups "FRX2Any" group.
To unsubscribe from this group and stop receiving emails from it, send an email to frx2any+u...@googlegroups.com.
To post to this group, send email to frx...@googlegroups.com.
Visit this group at https://groups.google.com/group/frx2any.
For more options, visit https://groups.google.com/d/optout.

Marat Chariev

unread,
Apr 18, 2018, 10:04:45 AM4/18/18
to FRX2Any
Try to call this procedure in a loop

Regards
Marat Chariev

On Thursday, April 12, 2018 at 1:07:01 PM UTC-4, Shafid Khan wrote:

Khan Software Ltd

unread,
Apr 18, 2018, 4:40:06 PM4/18/18
to frx...@googlegroups.com

Thanks Marat.

 

Regards

Shafid Khan

Khan Software Ltd

03 528-8585

 

From: frx...@googlegroups.com [mailto:frx...@googlegroups.com] On Behalf Of Marat Chariev
Sent: Thursday, April 19, 2018 2:05 AM
To: FRX2Any
Subject: Re: A quick question about merging several pdf files to one pdf file

 

Try to call this procedure in a loop

--

Reply all
Reply to author
Forward
0 new messages