On Sat, Jun 21, 2014, Ralph Corderoy wrote: > mom's PDF_IMAGE macro could remain a float with lots of bells and > whistles to the user but make use of an underlying macro-set-agnostic > macro to do the PDF inclusion as Tadziu suggested; "provide a > bare-bones PDF image includer à la PSPIC instead". IOW, bits of > PDF_IMAGE's functionality are useful elsewhere; can that be factored out > and made available?
Yes. It's just a question of wrapping \X'pdf: pdfpic ... inside a macro with flags for positioning and scaling. Unlike PSPIC, though, you'd still have to get the bounding box externally since groff doesn't implement a pdf equivalent to .psbb. I'll look into it this week. -- Peter Schaffter http://www.schaffter.ca