|
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
pdfpic-test.troff
Description: Text document
peachpie.jpg
Description: JPEG image
peachpie.jp2
Description: image/jp2
peachpie.pdf
Description: Adobe PDF document
peachpie.png
Description: PNG image
pdfpic-test.pdf
Description: Adobe PDF document
[Prev in Thread] | Current Thread | [Next in Thread] |