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!
[SOLVED]Force changes |
Post Reply |
Author | |
bitusonline
Beginner Joined: 15 Jul 16 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 25 Jul 16 at 3:49PM |
Hi friends, Is there any function to force the update of the changes? Problem: I need to merge two pages on one. I use CapturePage and DrawCapturedPage to this. This works only if i save an then load file again. I suppose the changes should be applied before using CapturePage/DrawCapturedPage. Example: This dont Works: 1 - NewDocument (Create blank New_PDF) 2 - LoadFromFile(PDF_1) and CopyPageRanges to New_PDF(page1) 3 - LoadFromFile(PDF_2) and CopyPageRanges to New_PDF (page 2) 4 - SelectDocument(New_PDF) 5 - NormalizePage(1); 5 - CapturePage(Page2) form New_PDF and DrawCapturedPage in New_PDF(page1) 6 - SaveToFile(New_PDF) This Works: 1 - NewDocument (Create blank New_PDF) 2 - LoadFromFile(PDF_1) and CopyPageRanges to New_PDF (page1) 3 - LoadFromFile(PDF_2) and CopyPageRanges to New_PDF (page2) 4 - SaveToFile/Stream(New_PDF) 5 - LoaFromFile/Stream(New_PDF) 6 - CapturePage(page2) form New_PDF and DrawCapturedPage in New_PDF (page1) 7 - SaveToFile(New_PDF) EDIT: I found my mistake. I assumed that SetOrigin and SetMeasurementUnits was global, however must be set for each document... Then, New Document are using different metrics. Setting this after NewDocument creation solved the problem. Edited by bitusonline - 25 Jul 16 at 5:21PM |
|
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