-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Tilman,

On 3/10/18 6:26 AM, Tilman Hausherr wrote:
> Am 09.03.2018 um 21:57 schrieb Tilman Hausherr:
>> You can subset fonts by using PDType0Font.load(), this limits
>> memory usage.
> 
> I meant "file size".
> 
> Also important: try to use each font only once per file. You can
> reuse fonts and images within a file. See also
> 
> https://stackoverflow.com/questions/48377121/pdfbox-generates-pdf-a-fi
le-of-very-large-size

Okay,
> 
we don't have any calls to any font's load() method... we are
simply using PDType1Font.CONSTANTS for our various fonts (HELVETICA_*
and TIMES_*). Will that give roughly the same behavior? We don't seem
to be having any problems with file size (yet).

I'm not even really sure what our options are for fonts; our usage of
PDFBox is quite simplistic. Let's say I want to be able to render a
character such as ® or ≤ in a PDF. How do I go about discovering which
(available) font contains the proper mapping, and then ensure that
font's glyphs are included in the PDF? Is it better to pick a font for
the whole document that includes that glyph, or is it better to change
the font for a single character, just to get the right display?

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlqmgDsdHGNocmlzQGNo
cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFheLhAAyMi4Mtw9poaPuOUY
LUh8lSpeEJmZSc84UQFLJiM/nmAvHheQEKFgR2+Y53ZNAUgfpKn83ieKsZwbrmWo
S17b+Z3Ybw+m+I9KOeqhyVppL/p5KWdtCyyl/3lOdtIcYVOUmIpcN86lfkNXN4uB
LMtTfqpYQhJnN5wU2rGbTXeh3M5H0JiesL8hzBrIxznGzDm6tTNNs3yvli0vDL2h
X8VoT2tHwYQ+RXJXGDRew9wF6udySyp9XwseYX4NMZK/Lq3Ro8FJNdyICwyGdWhh
MYzKHy3BUyeFw+3DAmeZ77I188+YgFed4ZiFnS29z25u8f9XTXZc5sjg+kot2HUG
pPN/wutOGHCYwtpW0L7iaeFtw1xpc9CSllrEkPIYsOlS2gZCot3aU8fWU989ngJA
NKMQ0+VRiXX2ToTeRmIKo02rkABAUD3nRJLuyHLbeH+QDaAT2GoZFBy4ZjnwQDWV
kWDpxYNPJHR7otyISEfG/+a8+pU5TleRDBKiIcbV4Q+V+i69WA+ihsK9fyLWJuLs
5cZmYCAEjzRgRTin/PpLjvghLH4C91AhBP0NJTLHHVw2/7odfZmUYnfq899AZnsY
qjf4k2Kli8rT696mFStlxuQSbu77v98yEe6kRuw5iF9mQkYI3qW7Fnynoj/oBib9
R8iaER3xluvWY8K7olGkkvhTKd8=
=WALV
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to