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!
mergefiles, size not correct |
Post Reply |
Author | |
mazluta
Beginner Joined: 21 Jun 12 Location: Israel Status: Offline Points: 17 |
Post Options
Thanks(0)
Posted: 07 Dec 18 at 8:43PM |
ii use this code to merge 2 file
1 with 2 pages secend with 1 page PDFLibrary := TQuickPDF.Create; Try UnlockResult := PDFLibrary.UnlockKey(edtLicenseKey); if UnlockResult <> 1 then Exit; Rslt := PDFLibrary.MergeFiles(InputFile_1,InputFile_2,DstFileName); Result := (Rslt = 1); Finally FreeAndNil(PDFLibrary); End; the last page mearge dose not seem as A4 size page... i tryed add //PDFLibrary.SetOrigin(1); //PDFLibrary.SetMeasurementUnits(1); //PDFLibrary.SetPageSize('A4'); // 0 = No compression // 1 = Flate compression //PDFLibrary.CompressImages(1); any combenition, no help. how can i force QuickPDF to set the merge file as the size of the source one?
|
|
mazluta
Beginner Joined: 21 Jun 12 Location: Israel Status: Offline Points: 17 |
Post Options
Thanks(0)
|
Ok, the problem not in the merge :)
the first file is set to 34" (in) insted of 8.5~ (A4). is there a way to set the secend merged file to be with the same size of the firsr file?
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi,
a single SetPageSize('A4') doesn't change an existing pdf-file to be from now on A4. Yes. There is a way but it's not as easy as you think it is ;-) You have to create a new A4 pdf... reading the old stuff to be changed... caputure it to the new A4 pdf... The code from PeterL could feed your needs (he had a problem with it but this isn't a problem for you): http://www.quickpdf.org/forum/change-papersize-on-existing-pdf_topic3284.html |
|
Cheers,
Ingo |
|
mazluta
Beginner Joined: 21 Jun 12 Location: Israel Status: Offline Points: 17 |
Post Options
Thanks(0)
|
Thanks.
i will check his code
|
|
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