You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<< /Type /Page /Contents 8 0 R /Resources 6 0 R /MediaBox [ 0 0 180 280 ] /MediaBox [0 0 200 300] /Parent 10 0 R >>
So the pdfmanagement_remove call seems to be ignored, and I now have two entries, instead of just the second one.
Cheers
Karl-Heinz
The text was updated successfully, but these errors were encountered:
khzimmer
changed the title
Automatically created /MediaBox entry has too small size, and changing it produces two entries.
Automatically created /MediaBox entry has too small size.
Jan 10, 2023
khzimmer
changed the title
Automatically created /MediaBox entry has too small size.
Automatically created /MediaBox entry cannot be overwritten by setting it manually.
Jan 10, 2023
Basically this is a luatex problem. Unlike pdftex the engine doesn't remove an existing /MediaBox if another one is added with the equivalent of \pdfpageattr.
I will write to the luatex list perhaps that can be improved. For now I suggest that you set the mediabox with \pageheight and \pagewidth. That works fine.
Hi,
I am using LuaHBTeX, Version 1.15.0 (TeX Live 2022)
Development id: 7509
Problem: It is not possible to remove/overwrite the automatically created /MediaBox entry.
Example:
\DocumentMetadata{uncompress}
\documentclass[paper = 180bp:280bp]{scrbook}
\ExplSyntaxOn
\pdfmanagement_remove:nn{Page}{MediaBox}
\ExplSyntaxOff
\PDFManagementAdd{Page}{MediaBox}{[0\space0\space200\space300]}
\begin{document}
x
\end{document}
This appears in the PDF:
<< /Type /Page /Contents 8 0 R /Resources 6 0 R /MediaBox [ 0 0 180 280 ] /MediaBox [0 0 200 300] /Parent 10 0 R >>
So the pdfmanagement_remove call seems to be ignored, and I now have two entries, instead of just the second one.
Cheers
Karl-Heinz
The text was updated successfully, but these errors were encountered: