Print Page | Close Window

Concatenate Files

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=916
Printed Date: 17 May 24 at 6:06AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Concatenate Files
Posted By: zaksoft
Subject: Concatenate Files
Date Posted: 01 Jul 08 at 11:44AM
Is there any way to concatenate 2 PDF files into one ?
I've seen DACapturePage(), but DADrawCapturatepage works only within the same file..
 
TIA
 
P.S. working in C++ unsing COM Object...


-------------
Davide



Replies:
Posted By: Michel_K17
Date Posted: 01 Jul 08 at 9:28PM
Yes you can. Use the following functions:
  • MergeFileList
  • MergeFileListFast
  • MergeFiles
Cheers!




-------------
Michel


Posted By: zaksoft
Date Posted: 02 Jul 08 at 3:45AM
Thank you, sorry for the silly question, I was searching for concatenate, I thought that merge was related to 'blending' together pages...
 
Is there a 'direct way' to superimpose a page over a PDF or do I have to load the layout and draw it over single page ?
 
Thanxs again.
 
P.S. any news about COM library ?


-------------
Davide


Posted By: zaksoft
Date Posted: 10 Jul 08 at 2:40AM
I've implemented MergeFiles ( V. 5.22 COM under VS2005 SP1) but I cant understand where is the problem. Giving the code (FileExist is a function to test document availability):
 

ASSERT( FileExist( "D:\\CSI\\Studio\\documenti\\libromatricola\\bollato\\010\\000\\0100000256.bak"));

ASSERT( FileExist( "D:\\CSI\\Studio\\documenti\\libromatricola\\bollato\\010\\000\\0100000257.bak"));

CQuickPdf pdf;

VERIFY( pdf.MergeFile( "D:\\CSI\\Studio\\documenti\\libromatricola\\bollato\\010\\000\\0100000256.bak",

"D:\\CSI\\Studio\\documenti\\libromatricola\\bollato\\010\\000\\0100000257.bak",

"D:\\CSI\\Studio\\libromatricola\\test.pdf"));

The function return TRUE, the resulting file has two pages, but the second is a copy of the first... of course the concent of doc 256.pdf and 257.pdf is different. I've hardcoded all strings to be sure that source docs are really different..
Any idea of how to spot the problem ?
TIA


-------------
Davide


Posted By: zaksoft
Date Posted: 10 Jul 08 at 3:50AM
I've probably found where the problem comes from... both document have filelds (with Courier new font - maybe it's important), if the fields are flattened after being compiled the function works.. So can be related to editable fields.
 
Hope this help.


-------------
Davide



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk