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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - [SOLVED]Force changes
  FAQ FAQ  Forum Search   Register Register  Login Login

[SOLVED]Force changes

 Post Reply Post Reply
Author
Message
bitusonline View Drop Down
Beginner
Beginner


Joined: 15 Jul 16
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote bitusonline Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED]Force changes
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store