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 - Subseting fonts
  FAQ FAQ  Forum Search   Register Register  Login Login

Subseting fonts

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


Joined: 22 Sep 14
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote BenLaz Quote  Post ReplyReply Direct Link To This Post Topic: Subseting fonts
    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 ?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 26 Sep 14 at 12:46PM
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

Back to Top
BenLaz View Drop Down
Beginner
Beginner


Joined: 22 Sep 14
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote BenLaz Quote  Post ReplyReply Direct Link To This Post Posted: 03 Oct 14 at 8:07AM
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 ?
Back to Top
mLipok View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 Apr 14
Location: Poland, Zabrze
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote mLipok Quote  Post ReplyReply Direct Link To This Post Posted: 16 Oct 14 at 6:10PM
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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 18 Oct 14 at 2:10AM
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
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