groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

groff manuals in PDF from Git


From: G. Branden Robinson
Subject: groff manuals in PDF from Git
Date: Tue, 26 Jul 2022 13:10:35 -0500

Hi folks,

I've applied the advice from Deri and Dave appended below.

Updated docs, previewing groff 1.23, can be found at the same URL as
before.

https://www.dropbox.com/sh/17ftu3z31couf07/AAC_9kq0ZA-Ra2ZhmZFWlLuva?dl=0

Regards,
Branden

At 2022-07-25T16:20:34+0100, Deri wrote:
> The best of both worlds is to produce pdf with groff (hack your script
> to add -Tpdf -P-e) and run the resultant pdf through ps2pdf.This will
> ensure all fonts are embedded and that they have been subsetted to
> save space.

At 2022-07-25T12:32:40-0500, Dave Kemper wrote:
> I'm hardly a guru in this realm, but I did have to untangle this
> problem once, so I have some relevant knowledge.
> 
> I've found giving ps2pdf the "-dPDFSETTINGS=/printer" flag does the
> trick.  My limited understanding of PDFSETTINGS is that it's an
> umbrella switch that flips several other switches.  I have this
> comment in my conversion script:
> 
> # Further, setting PDFSETTINGS to /prepress or /printer automatically sets
> #  - EmbedAllFonts to true
> #  - SubsetFonts to true
> #  - MaxSubsetPct to 100
> #  - Downsample*Images to false
> #  - MonoImageFilter to /CCITTFaxEncode
> 
> So there's probably some combination of individual switches that will
> embed fonts, but -dPDFSETTINGS=/printer works for me, so that's what I
> use.
> 
> Font embedding only works with PDF version 1.3 or later.  To maximize
> portability, I force version 1.3 since I don't need any features from
> later versions.  So I can't guarantee that any of the above still
> holds when generating later PDF versions, but it might at least give
> you a starting point for experimenting.
> 
> I've found http://www.volkerschatz.com/tex/hiqpdf.html a useful
> resource for arcane ps2pdf options.

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]