Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4347558
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:19:20+00:00 2026-05-21T12:19:20+00:00

Now my web app using class tcpdf to convert all pdf file (in English)

  • 0

Now my web app using class tcpdf to convert all pdf file (in English) and file size is around 500K.

But when I change the font style to my local language (Free-serif) then file size is over 1M
(Pictures, tables does not change).

If I switch back to normal font, file size is small but non-English text become unreadable.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T12:19:21+00:00Added an answer on May 21, 2026 at 12:19 pm

    You really should read the TCPDF fonts documentation. What happens is that the font you specified is embedded within the PDF. This will make sure that people that don’t have that font on their computer will still be able to see the document as you intended (ie. with the correct font).

    You can change the default behaviour using the $subset parameter of AddFont/SetFont.

    The relevant info from the TCPDF source :

    @param $subset (mixed) if true embed only a subset of the font (stores 
    only the information related to the used characters); if false embedd full 
    font; if 'default' uses the default value set using setFontSubsetting(). 
    This option is valid only for TrueTypeUnicode fonts. If you want to enable 
    users to change the document, set this parameter to false. If you subset 
    the font, the person who receives your PDF would need to have your same 
    font in order to make changes to your PDF. The file size of the PDF would 
    also be smaller because you are embedding only part of a font.
    

    So if you don’t want your PDF to become larger : stick to the standard (core) PDF fonts as specified in the docs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using log4net to log my web app's progress, using Log4PostSharp to AOP-injectify all
We recently built a web app using Prototype, making a fair amount of use
I am working on a web app using C# and asp.net I have been
I'm working on a class-based php web app. I have some places where objects
I'm developing a web-app and I'm using Spring framework. Thing is, i never properly
I am currently working on a simple web application through Google App engine using
I'm trying to add a remember me feature to my web app to let
Suppose I have the following class: class Camera { public Camera( double exposure, double
In an N-Tier app you're supposed to have a business logic layer and a
I know this must be an age-old, tired question, but I cant seem to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.