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!
Subseting fonts |
Post Reply |
Author | |
BenLaz
Beginner Joined: 22 Sep 14 Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 22 Sep 14 at 1:29PM |
Hello,
We have "big pdf" that can be reduced seriously by external applications by subsetting fonts. Today, we would like to do this operation ourselves, and we have no idea on how to do it with Debenu. Does someone have an idea ? |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Ben,
already created pdf-files couldn't be compressed by QuickPDF on the fly. You have to split the pdf into single pages, objects, ... and resample them to a new pdf using functions like CompressImages: You should Keep in mind that Images have many Bytes and often there are jpg-images included which are already (as jpeg) compressed. So working on the images reducing the dpi will reduce much. Defining/including font-properties and often used Images only once in the file can reduce, too. Cheers, Ingo |
|
Cheers,
Ingo |
|
BenLaz
Beginner Joined: 22 Sep 14 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
Thank you for your answer.
However, after analising the PDF (which doesn't have image), we found that the way to reduce it is subset the font. Is there a way to subset the font ? |
|
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
BenLaz
Did you try this: http://www.debenu.com/docs/pdf_library_reference/ReplaceFonts.php |
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Ben,
There are many different font types and then many different ways a font can be defined within a PDF so there is no sure way to update / trim a font without know all the parameters. Here are some of the things that need to be accounted for Encodings CMaps Differences GIDToCID maps ToUnicode (not so urgent) The you need to determine the fonttype - Type1, Type3 etc.. Then you would need to extract the font descriptor and decode it to remove unused characters but make sure that you get the correct characters based on the encodings above. We would need to see the PDF file to determine what was required to get it working correctly without making the text unreadable. Andrew
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store