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 > General Discussion
  New Posts New Posts RSS Feed - Re-render
  FAQ FAQ  Forum Search   Register Register  Login Login

Re-render

 Post Reply Post Reply
Author
Message
mdgodfrey View Drop Down
Team Player
Team Player


Joined: 09 Jul 13
Location: Utah
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdgodfrey Quote  Post ReplyReply Direct Link To This Post Topic: Re-render
    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?
Back to Top
erico View Drop Down
Senior Member
Senior Member
Avatar

Joined: 24 Sep 14
Location: Minnesota USA
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote erico Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jun 15 at 8:38PM
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
Back to Top
mdgodfrey View Drop Down
Team Player
Team Player


Joined: 09 Jul 13
Location: Utah
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdgodfrey Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jun 15 at 10:21PM
I very much appreciate the response.
I will give that a try.
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