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

PDF issues: do not generate ProcSet array resources #203

Closed
ronaldtse opened this issue May 29, 2023 · 2 comments
Closed

PDF issues: do not generate ProcSet array resources #203

ronaldtse opened this issue May 29, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ronaldtse
Copy link
Contributor

Metanorma generates ProcSet array resources. These were deprecated back in PDF 1.4 in the very early 2000s - please don't generate as they are a complete waste of bytes!

From #201

@ronaldtse ronaldtse added the bug Something isn't working label May 29, 2023
@ronaldtse ronaldtse changed the title PDF tagging: do not generate ProcSet array resources PDF issues: do not generate ProcSet array resources May 29, 2023
@Intelligent2013
Copy link
Contributor

Currently, the PDF (for instance, rice-en.final.presentation.pdf) contains only these data:
/ProcSet [/PDF /ImageB /ImageC /Text]

From fop-2.8\fop-core\src\main\java\org\apache\fop\pdf\PDFResources.java:

        PDFArray procset = new PDFArray(this);
        procset.add(new PDFName("PDF"));
        procset.add(new PDFName("ImageB"));
        procset.add(new PDFName("ImageC"));
        procset.add(new PDFName("Text"));
        put("ProcSet", procset);

@Intelligent2013
Copy link
Contributor

Fixed. No more messages:

�[0m    3450:             Trailer->Root (as Catalog)->Pages (as PageTreeNodeRoot)->Kids (as ArrayOfPageTreeNodeKids)[0 (as PageObject)]->Resources (as Resource)->ProcSet (as ArrayOfNamesForProcSet)
�[1;36mInfo: detected an array version-based feature that was deprecated in PDF 1.4 (in PDF 1.7) for ArrayOfNamesForProcSet/0�[0m
�[1;36mInfo: detected an array version-based feature that was deprecated in PDF 1.4 (in PDF 1.7) for ArrayOfNamesForProcSet/1�[0m
�[1;36mInfo: detected an array version-based feature that was deprecated in PDF 1.4 (in PDF 1.7) for ArrayOfNamesForProcSet/2�[0m
�[1;36mInfo: detected an array version-based feature that was deprecated in PDF 1.4 (in PDF 1.7) for ArrayOfNamesForProcSet/3�[0m

In the TestGrammar log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants