Print Page | Close Window

CopyPageRanges creates copies of Fonts each time

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=1292
Printed Date: 17 Jan 26 at 9:14PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: CopyPageRanges creates copies of Fonts each time
Posted By: chandy21
Subject: CopyPageRanges creates copies of Fonts each time
Date Posted: 13 Dec 09 at 4:27AM

Hi,

    I am using CopyPageRanges several times in a Document, and each time it creates copies of the Fonts in the Destination document, and depending on the number of times I call CopyPageRanges, sometimes a lot because of large documents, I get many copies of the Fonts.

    I have copied all the fonts to the destination document at the beginning of the operation, is there a way to use these fonts?


Thanks in advance,

Ando.




Replies:
Posted By: Ingo
Date Posted: 13 Dec 09 at 6:33PM
Hi Ando!

The function works like designed and i think it's okay.
If you want to copy a page you should be sure that the textcontent can be displayed well - so the font should be copied, too.
Perhaps in your case the ClonePage-function is better.
There isn't a function to remove an embedded font.

Cheers, Ingo


Posted By: chandy21
Date Posted: 13 Dec 09 at 10:14PM

Thanks for the speedy reply Ingo!


That makes sense, you want to be sure the correct Fonts are available. The problem I have with ClonePages is that I am creating a new Document.

I may be cloning every second or third page in some instances, which could mean lots of copies of the Fonts in some docs with large page numbers.

What I can do to get around this is to keep a list of all pages to Copy, and do it all at once in one go at the end like "1,4,6-9,18-20,.....", then re-order the pages as necessary.


Cheers,

Thanks for the suggestion,

Ando.



Posted By: chandy21
Date Posted: 13 Jan 10 at 1:13PM

Related to this, it appears the CopyPageRanges function is copying EVERY image EVERY time. If I am using CopyPageRanges to just copy Page 3 to a new Document from a source document with 10 pages, I seem to get all the images from all 10 pages.

If I do this operation 20 times in a document, I appear to get 20 copies of EVERY image in the document.

First, can anyone confirm this is what is happening, and second, is there a way around this? I would imagine the function can tell what image/s are on the page/s it is taking across and only take them.

Thanks in advance,

Ando.



Posted By: Ingo
Date Posted: 13 Jan 10 at 2:12PM
Hi!

Have a look at the first four functions and the description:
http://www.quickpdflibrary.com/help/quickpdf/PageManipulation.php

Cheers, Ingo


Posted By: chandy21
Date Posted: 14 Jan 10 at 5:15AM

Thanks Ingo. Only CopyPageRanges appears to copy from one document to another?? Is that correct? Is not quite clear from the documentation.

Thanks,

Ando



Posted By: Ingo
Date Posted: 14 Jan 10 at 6:14AM
Hi!

I've read it like you ... ;-)
So perhaps you should think over the complete procedure of your pdf-creation?
Perhaps using the compress-functionality can help?

Cheers, Ingo




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