Re: PDF on debian
On Thu 09 Mar 2023 at 17:35:41 +0100, Vincent Lefevre wrote:
> On 2023-03-09 15:13:21 +0000, Brian wrote:
> > On Thu 09 Mar 2023 at 15:01:00 +0100, Vincent Lefevre wrote:
> >
> > > On 2023-03-09 13:42:22 +0000, Brian wrote:
> > > > For a searchable PDF, I would use
> > > >
> > > > :execute '!/usr/lib/cups/filter/texttopdf 1 1 1 1 1 % > out.pdf'
> > > >
> > > > cups-filters needs to be on the system.
> > >
> > > But it generates a letter page size instead of using /etc/papersize.
> >
> > Pipe through
> >
> > pdftocairo -pdf -paper A4 - a4.pdf
>
> This introduces additional margins at the top and at the bottom.
PPD=envy.ppd /usr/lib/cups/filter/texttopdf 1 1 1 1 1 UTF-8-demo.txt >out.pdf
> Anyway, Unicode is not supported.
That would be a big drawback for a printing filter.
CHARSET=utf-8 /usr/lib/cups/filter/texttopdf 1 1 1 1 1 UTF-8-demo.txt >out.pdf
--
Brian.
Reply to: