[XeTeX] XeTeX : request for enhancement

Philip Taylor Philip.Taylor at Hellenic-Institute.Uk
Sun Oct 15 16:17:32 CEST 2023


At the moment, one can include a PDF file using the following syntax :

    \XeTeXpdffile ⟨filename⟩ [ page ⟨int⟩ ] [ crop | media | bleed |
    trim | art ]
    [ scaled ⟨int⟩ | xscaled ⟨int⟩ | yscaled ⟨int⟩ | width ⟨dimen⟩ |
    height ⟨dimen⟩ | rotated ⟨decimal⟩ ]
    Insert (pages of) a PDF. See below for explanation

where [ crop | media | bleed | trim | art ] specify to which of the four 
boxes known to PDF the inserted file is to be cropped.  I frequently 
have the need to crop a PDF file during inclusion to arbitrary 
dimensions, but at the moment that would appear to be impossible (short 
of pre-massaging the PDF to be inserted).  Would it be possible to 
enhance XeTeX to recognise and honour the following (or similar) syntax :

    \XeTeXpdffile ⟨filename⟩ [ page ⟨int⟩ ] [ crop | media | bleed |
    trim | art | custom [xmin ymin xmax ymax]]
    [ scaled ⟨int⟩ | xscaled ⟨int⟩ | yscaled ⟨int⟩ | width ⟨dimen⟩ |
    height ⟨dimen⟩ | rotated ⟨decimal⟩ ]
    Insert (pages of) a PDF. See below for explanation

-- 
/Philip Taylor/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20231015/a14044fe/attachment.htm>


More information about the XeTeX mailing list.