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

Issues with Charts in PDF/UA documents #873

Open
jochenberger opened this issue Oct 11, 2022 · 3 comments
Open

Issues with Charts in PDF/UA documents #873

jochenberger opened this issue Oct 11, 2022 · 3 comments

Comments

@jochenberger
Copy link

I'm trying to create a PDF/UA conformant document with a chart. When I run it through the PDF Accessibility Checker (https://pdfua.foundation/en/pdf-accessibility-checker-pac), I'm getting a validator error:

Error while parsing the PDF Document (Operator 'CS' not allowed in this current state.)

grafik

Unfortunately, that error message is not very helpful. Am I doing something wrong?

This is the generated PDF file.
test.pdf

@jochenberger
Copy link
Author

This is the HTML:

 <html lang="en">
  <head>
    <title>PDF/UA test</title>
    <meta name="subject" content="Experiment with charts in a PDF/UA document"/>
  </head>
  <body>
    <object type="jfreechart/pie" alt="A simple chart" title="Fruit Pie Chart 1" style="width:400px;height:400px;">
      <data name="Apple" value="23.2"/>
      <data name="Pear" value="43.2"/>
      <data name="Orange" value="53.2"/>
    </object>
  </body>
</html>

@jochenberger
Copy link
Author

Probably related to #365

@jochenberger
Copy link
Author

#842 fixes this

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