-
Notifications
You must be signed in to change notification settings - Fork 6
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
Page without StructParents, syntax problem #34
Comments
@viktoriasee I've invited you to join the project as a collaborator as you seem to have time to spend on it, and I'd appreciate some help! This might be easier than using forks and pull requests. |
A pdf without the error like above will contain something like
A PDF as it's produced by accessibility right now looks like this:
One can use |
I've learned from the reference p.147 that Structparents for page objects are mandatory for a tagged PDF. They may be needed for other objects such as images too. |
Source of errorIt looks like the general PDF object is written to PDF in accessibility.sty in lines 568 to 575: \immediate \pdfobj useobjnum \theStructTree{%
<</Type /StructTreeRoot %
/RoleMap \theObjHelp \space 0 R %
/ClassMap \theClassMap \space 0 R %
/ParentTree <</Nums [0 [\Karray]]>> % TODO Viel komplizierter
/ParentTreeNextKey 1 % berechnen
/K [\Karray] %
>>}\pdfrefobj\pdflastobj% (and line 1032 to 1039 of the .dtx file, which is where the changes will need to be made to propagate correctly; changing the .sty file in tests/article is fine for testing) mitigationIf I understand this right, it means that if
And that value is defined / described in "finding structural elements from content items" on page 868 of the manual. How to proceedSuggested approximate steps to correct this:
N.B. I think I understand why this was left as a "TODO".... |
Is it really that complicated? When I add |
Ok, this could be a solution. Could you extend the MWE with a page break and see if this fix still works, please? |
The mwe has a page break and it works:
https://github.com/AndyClifton/accessibility/blob/master/tests/article/minimal-pdftex.tex
|
@viktoriasee, when you have chance, could you try one thing for me, please? Try adding the option
and see if that changes anything? |
|
Steps to reproduce
Run this minimal example either in pdftex or lualatex:
Check the output generated in PAC version 3.0.7.0
You get an error
page without StructParents
.Expected behaviour (correct)
The StructParents entry should be there.
The text was updated successfully, but these errors were encountered: