Print Page | Close Window

ClonesPages - Subsequent SelectPage calls

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=3012
Printed Date: 02 May 24 at 3:37PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: ClonesPages - Subsequent SelectPage calls
Posted By: juanf
Subject: ClonesPages - Subsequent SelectPage calls
Date Posted: 15 Nov 14 at 4:09PM
Hi,

When I use the ClonePages to clone all pages from pdf and repeated x number of times to a file, 
then save the file, when I load this file and call a selectpage function to apply a 1D barcode, the subquent relatively cloned copy page get this barcode as well,  so when i apply a new barcode value to the relative cloned page, this is stacked on top of the barcode inherited from the first "copy-original"

Is there a way to fix this? other than adding a white fill drawbox?

Thanks

 



Replies:
Posted By: AndrewC
Date Posted: 19 Nov 14 at 10:32AM
Juam,

You will need to call QP.NewContentStream() I suspect after calling QP.SelectPage() but before drawing the barcode.

ClonePages means that all pages share the same duplicate ContentStream for drawing.  Adding a 2nd unique content stream to each page with just a unique barcode will give you the result you need.

Andrew.


Posted By: juanf
Date Posted: 19 Nov 14 at 11:24AM
Thanks Andrew



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