Skip to content
Discussion options

You must be logged in to vote

Method Document.ez_save already has the defaults garbage=3 and deflate=True.
With TextWriter class, all fonts are file-based and hence embedded into the file.
As Asian fonts are large (and automatically pulled in when necessary), the file size increases - sometimes dramatically as in your case.
Please use doc.subset_fonts() right before saving. This method builds subsets for all eligible fonts: each font is replaced with a version that only contains the glyphs that are actually in use in the PDF.

Replies: 10 comments 21 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by JorjMcKie
Comment options

You must be logged in to vote
1 reply
@JorjMcKie
Comment options

Comment options

You must be logged in to vote
1 reply
@JorjMcKie
Comment options

Comment options

You must be logged in to vote
4 replies
@JorjMcKie
Comment options

@JorjMcKie
Comment options

@nissansz
Comment options

@JorjMcKie
Comment options

Comment options

You must be logged in to vote
1 reply
@JorjMcKie
Comment options

Comment options

You must be logged in to vote
6 replies
@JorjMcKie
Comment options

@nissansz
Comment options

@JorjMcKie
Comment options

@nissansz
Comment options

@JorjMcKie
Comment options

Comment options

You must be logged in to vote
1 reply
@JorjMcKie
Comment options

Comment options

You must be logged in to vote
4 replies
@JorjMcKie
Comment options

@JorjMcKie
Comment options

@nissansz
Comment options

@JorjMcKie
Comment options

Comment options

You must be logged in to vote
1 reply
@JorjMcKie
Comment options

Comment options

You must be logged in to vote
2 replies
@JorjMcKie
Comment options

@nissansz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants