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 > I need help - I can help
  New Posts New Posts RSS Feed - ExtractPageRanges
  FAQ FAQ  Forum Search   Register Register  Login Login

ExtractPageRanges

 Post Reply Post Reply
Author
Message
swourin View Drop Down
Beginner
Beginner


Joined: 23 Nov 09
Location: Brazil
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote swourin Quote  Post ReplyReply Direct Link To This Post Topic: ExtractPageRanges
    Posted: 23 Nov 09 at 10:34AM
Hi folks, I'm considering buying QuickPDF for a very simple feature that I need, the ability to copy some pages from one document to a new (empty) one. I tried the ExtractPageRanges method but the font information is lost, how can I accomplish that without loosing font (name, size, style...)?

Thanks in advance.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 23 Nov 09 at 11:32AM
Hi!

Perhaps you should try "ClonePages" ...
Another point: If something lost after page transformation you should use "CombineLayers" before 'cause the page properties can be on several layers.

Cheers and welcome here, Ingo


Edited by Ingo - 23 Nov 09 at 11:33AM
Back to Top
swourin View Drop Down
Beginner
Beginner


Joined: 23 Nov 09
Location: Brazil
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote swourin Quote  Post ReplyReply Direct Link To This Post Posted: 23 Nov 09 at 4:14PM
Hi Ingo, thanks for your reply.

I just didn't get how can I use ClonePages in my particular case. I need to split one document of several pages in various one page documents. How can I use ClonePages for doing this? I looked on the help and it shows that ClonePages can be used just for cloning pages inside the same document, a little bit different of what I want to accomplish. Any help will be welcome. Thanks in advance.

Regards, Anderson.

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 23 Nov 09 at 4:45PM
Hi!

The question is... where are the font-information?
In your extracted page or anywhere else?
So first check which are the used fonts and add them to your extracted page(s) later?
Only ideas - not a solution ;-)

Cheers, Ingo
Back to Top
DELBEKE View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert
Avatar

Joined: 31 Oct 05
Location: France
Status: Offline
Points: 151
Post Options Post Options   Thanks (0) Thanks(0)   Quote DELBEKE Quote  Post ReplyReply Direct Link To This Post Posted: 23 Nov 09 at 5:19PM
Hi Swourin
 
Can you upload a pdf sample some where or send it directly to me at Jean-Luc(At)Delbeke(Dot)fr.
And the list of pages you want to export in a new pdf
 
Thanks
Back to Top
swourin View Drop Down
Beginner
Beginner


Joined: 23 Nov 09
Location: Brazil
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote swourin Quote  Post ReplyReply Direct Link To This Post Posted: 23 Nov 09 at 5:51PM
Hi Ingo,

I used FindFonts to enumerate all the fonts used in the source document, here is the list:
URWBookmanL-DemiBoldItal  Type: Type1
NimbusRomNo9L-Regu  Type: Type1
NimbusRomNo9L-Regu  Type: Type1
URWBookmanL-Ligh  Type: Type1
URWBookmanL-Ligh  Type: Type1
URWBookmanL-LighItal  Type: Type1
URWBookmanL-LighItal  Type: Type1
NimbusRomNo9L-Medi  Type: Type1
NimbusRomNo9L-Medi  Type: Type1
URWBookmanL-DemiBold  Type: Type1
URWBookmanL-DemiBold  Type: Type1
Symbol  Type: Standard

When I do the same thing in the target document FindFonts returns zero. The question is how can I add these fonts to the target document with the information available on the source PDF.

Back to Top
DELBEKE View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert
Avatar

Joined: 31 Oct 05
Location: France
Status: Offline
Points: 151
Post Options Post Options   Thanks (0) Thanks(0)   Quote DELBEKE Quote  Post ReplyReply Direct Link To This Post Posted: 23 Nov 09 at 6:43PM

Hi Swourin

 
Try with something like this
 
  Dim Doc As New QuickPDFAX0717.PDFLibrary
  Dim lret As Long
  Doc.UnlockKey "My Key"
  lret = Doc.ExtractFilePages("C:\PdfVisu\PdfTest\Document.pdf", "c:\test.pdf", "2")
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 23 Nov 09 at 6:45PM
These fonts are not the from QP supported standard fonts.
If they are really embedded then you should get them. If there are only font references in the document you should have these fonts on your machine, too.
If you want to embedd these fonts you can use AddTrueTypeFont or AddTrueTypeFontFromFile.
BTW: The new QuickPDF library demo contains font-samples, too.

Cheers, Ingo
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