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!
Merging PDFs |
Post Reply |
Author | |
Kaus Media
Beginner Joined: 31 Jul 06 Location: France Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 29 Sep 06 at 3:48AM |
Hi there,
I have a database with page records (1 page PDF) I need to merge. It seemed obvious it should work with something like: while Not EOF do begin intNewDocument := pdf.NewDocument; pdf.SelectDocument (intNewDocument); bs := CreateBlobStream(FieldByName('PDF'), bmRead); pdf.LoadFromStream(bs); //pdf.SaveToFile ('c:\test.pdf') <= File is not blank! pdf.SelectDocument(intMainDocument); pdf.MergeDocument(intNewDocument); bs.Free; Next; end; But it ain't!!! I have the proper number of pages, but all are blank! (An I don't have the source to see what's wrong :)) Can anyone help? Thank you :) |
|
KMD
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
Please try the search function (on the top, right side) on this page with "merg". There are a many postings and your solution will be already there ;-) Best regards, Ingo |
|
Kaus Media
Beginner Joined: 31 Jul 06 Location: France Status: Offline Points: 11 |
Post Options
Thanks(0)
|
Hi Ingo,
It's been the whole morning I am looking into the forums and tried a lot of thing, but nothing works as expected. The thing is that I need to merge a lot of pages together. Source files are fax pages in high resolution, one-page pdf source file (A drawn BMP image on the first page) that comes from a "pages" table. If I use MergeStreams, it works. But the thing is that it is exponentially slow because for each new page added it must copy in memory the whole source stream to the destination stream. If I try MergeDocuments, or CopyPageRanges, these two functions gives me blank pages (with a success return code!) I have checked for the permissions on the pdf files also. Everything is allowed on all the files. The only solution I have finally come up with and that is not exponentialy slow is to save every blob from the DB to disk and then use a MergeFileListFast... (Which is also time consuming since it must load every page from the database, save it to disk, reload it, and save it once again. Three times more disk access than necessary). I have read somewhere in the forums that QuickPDF does not properly support huge image files. Maybe this is the reaon... |
|
KMD
|
|
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