Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using a pdffield inside measuring code can break the field #70

Open
u-fischer opened this issue May 22, 2024 · 0 comments
Open

using a pdffield inside measuring code can break the field #70

u-fischer opened this issue May 22, 2024 · 0 comments

Comments

@u-fischer
Copy link
Member

\DocumentMetadata{uncompress,xmp=false}
\documentclass{article}
\usepackage{l3pdffield-testphase}
\begin{document}
xxx
\ExplSyntaxOn\makeatletter
\settowidth\@tempdima{\pdffield_checkbox:n{name=blub}}
\pdffield_checkbox:n{name=blub}
\ExplSyntaxOff
\end{document}

Here the Kids array contains then two Kids, and the first has no related annotation:

11 0 obj
<< /T (blub) /V /Off /DV /Off /FT /Btn /Kids 12 0 R /Ff 0  >>
endobj

12 0 obj
[ 14 0 R 16 0 R ]

16 0 obj
<<
/Type /Annot
/Subtype /Widget /AS /Off /F 0 /Parent 11 0 R /AP 15 0 R 
/Rect [167.807 655.243 179.763 667.198]
>>

One could probably use a label to check if the annotation was really used, but tagging will break too, so probably it should be documented as non-working until some proper "if measuring test" exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant