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!
![]() |
Re-render |
Post Reply ![]() |
Author | |
mdgodfrey ![]() Team Player ![]() Joined: 09 Jul 13 Location: Utah Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() Posted: 19 Jun 15 at 5:37PM |
I currently am working on a 2 page document.
First time I create it everything is as expected. The problem starts when I want to re-render to update it. My process is the same for each render: Delete All Pages (1 to PageCount) Select Page 1 (always exists according to the documentation) Add Page elements New Page Select Page 2 Add Page Elements. On the second time through page 2 is overwriting page 1, but it is also on page 2 as well. I can't figure out what I am missing. I have just discovered that if I do NewPage after deleting all pages then it works as expected, except that I end up with a page 3. So all is well if I then delete page 3. Seems inconsistent to me. What should I be doing?
|
|
![]() |
|
erico ![]() Senior Member ![]() ![]() Joined: 24 Sep 14 Location: Minnesota USA Status: Offline Points: 51 |
![]() ![]() ![]() ![]() ![]() |
PDF are picky about ContentStreams. We have encountered problems with pages overprinting each other as well, although under different circumstances. PDF allows you to create a content stream object and reuse it on more than one page. This can become problematic if you are not careful. You may need to be using ContentStreamSafe() and/or NewContentStream() to ensure the pages remain separate.
|
|
Eric O
|
|
![]() |
|
mdgodfrey ![]() Team Player ![]() Joined: 09 Jul 13 Location: Utah Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
I very much appreciate the response.
I will give that a try.
|
|
![]() |
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