Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
AddToFileList not working.... |
Post Reply |
Author | |
agent86
Beginner Joined: 06 Feb 10 Location: SF Bay Area Status: Offline Points: 10 |
Post Options
Thanks(0)
Posted: 06 Feb 10 at 6:23PM |
Delphi 7 When I merge files using the following procedure I get 1 blank page. The resulting document has the correct name but no contents. I've searched in vain for what I'm doing wrong. I've looked at the Delphi demos and can't see what I'm doing wrong. I've already searched the forum but there is no sample code to show how to successfully use AddToFileList and MergeFileList. I'm still evaluating Quick PDF but this is one of my last hurdles before I buy. procedure TAutoPrintMainFormForm.MergeEmailPDFsQPDF ; QPDF.ClearFileList(sFileName) ; // add pdfs to list for merging // make folder if it does not exist groupfolder := EmailPDFProcessFolderDBEdit.Text + '\' + // does folder already exist? if not create if not ( DirectoryExists ( groupfolder ) ) then MergedPDFName := groupfolder + '\' + QPDF.MergeFileList( sFileName, MergedPDFName ) ; QPDF.SaveToFile(MergedPDFName) ; finally |
|
Wheeley
Senior Member Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
Post Options
Thanks(0)
|
You are overwriting your merged file with a blank page. Remove the line QPDF.SaveToFile(MergedPDFName). Also don't forget to clear the file list before you do the free.
Wheeley |
|
agent86
Beginner Joined: 06 Feb 10 Location: SF Bay Area Status: Offline Points: 10 |
Post Options
Thanks(0)
|
Thanks! That took care of it. Now I only have to deal with what happens when there is only 1 file in the folder.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store