groff
[Top][All Lists]
Advanced

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

PDFPIC issues


From: Peter Schaffter
Subject: PDFPIC issues
Date: Wed, 21 Aug 2024 13:53:56 -0400

I tested the new PDFPIC macro and uncovered some problems.  PDF,
JPG, and JP2 are processed correctly (almost), but PNG images are
not recognized. groff_tmac(5) states:

  "To include ‘other’ (e.g. png/pam/gif) image formats the
   perlmagick modules must be installed as well, they are used by
   gropdf to embed the graphic.  They are not needed for the other 3
   types."

I have perlmagick installed, from Ubuntu.  Is/are there a/some other
packages I need to install?

PDF images are being rendered slightly smaller than their jpg/jp2
counterparts.  A 150x150 jpg image, converted to pdf with convert(1)
results in these two different reported file sizes:

>From pdfinfoi(1)
  Page size: 150 x 150 pts

>From identify(1)
  peachpie.pdf PDF 144x144 144x144+0+0

By default, PDFPIC would appear to be using the values from
identify(1), which are incorrect.  When explicit dimensions are
passed to PDFPIC, the image renders at the correct size.

I'm attaching a small demonstration troff file, four 150x150 images
(jpg, jp2, pdf, png), and the pdf output of

  groff -Tpdf -U file.troff > file.pdf.

-- 
Peter Schaffter
https://www.schaffter.ca

Attachment: pdfpic-test.troff
Description: Text document

Attachment: peachpie.jpg
Description: JPEG image

Attachment: peachpie.jp2
Description: image/jp2

Attachment: peachpie.pdf
Description: Adobe PDF document

Attachment: peachpie.png
Description: PNG image

Attachment: pdfpic-test.pdf
Description: Adobe PDF document


reply via email to

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