Print Page | Close Window

PDF Clone Pages issue

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1880
Printed Date: 22 Nov 24 at 7:58PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: PDF Clone Pages issue
Posted By: yalsch
Subject: PDF Clone Pages issue
Date Posted: 08 Jul 11 at 7:33PM

I am working on a VB6 application and I have successfully cloned the number of pages I need using the 1st and only page in the existing PDF file as the master page. If I save the file at that point, the correct number of pages is in the new PDF file. However if I add a text string to the 1st page and only the first page (at least that is what I am trying to do), after I save the file and then reopen the file in Acrobat, the string I inserted is on all pages. I thought the clone page only copied the requested # of pages.

If I place the text on the cloned pages only, then they appear correctly. However then I have one extra page in the PDF file (the first). By the way, I can not delete that first page, or the background image of page 1 is removed from all the cloned pages and all I have in my file afterwards are the correct # of pages but only the text string - none of the information from the original Page 1.
 
Confused



Replies:
Posted By: Rowan
Date Posted: 10 Jul 11 at 9:31AM
It sounds like the cloned pages are using shared content streams which are referenced from the first page. After you have done the cloning try calling the RemoveSharedLayers function to remove any shared content streams. This is sometimes necessary when using the ClonePages or CapturePage functions.


Posted By: yalsch
Date Posted: 11 Jul 11 at 7:39PM
Hi Rowan,
 
Thanks for that tip. It worked perfectly,
 
Yale
 
Smile



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk