Skip to content

Generate PDF/A compliant document #2882

Open
@anujtripathi04

Description

@anujtripathi04

[Feature]

Hi there,

I have integrated jsPDF for a project but now that I realised its a strict requirement from the customer to have pdf file as PDF/A compliant which jsPDF doesn't generate. PDF/A is basically a plain PDF with fonts embedded in file itself. And also a min of pdfVersion = '1.4' should be used. Currently jsPDF genereates files of pdfVersion = '1.3'.

Is there a way to set the pdfVersion? And also genereate PDFs with PDF/A compliance?

More info on PDF/A - https://en.wikipedia.org/wiki/PDF/A#:~:text=PDF%2FA%20is%20an%20ISO,to%20font%20embedding)%20and%20encryption.

Activity

HackbrettXXX

HackbrettXXX commented on Aug 28, 2020

@HackbrettXXX
Collaborator

The PDFs jsPDF generates are indeed not PDF/A compliant and currently there is nothing planned to implement it. If someone from the community prepares a pull request, we will happily merge it, though.

To set the PDF version you could use the private method setPdfVersion: doc.__private__.setPdfVersion("1.4").

Duplicate of #2782.

mariusheine

mariusheine commented on Sep 24, 2020

@mariusheine

We need PDF/A support as well in our company GEPROG GmbH.

Maybe a good reference of how it can be implemented is the PHP TCPDF project https://github.com/tecnickcom/tcpdf.
There they have this flag $this->pdfa_mode in there tcpdf.php file.

malte94

malte94 commented on May 16, 2022

@malte94

Any news on delivering this feature?

AlexRoidl

AlexRoidl commented on Nov 30, 2022

@AlexRoidl

I am also really interested in this feature. I think this would be a huge feature for all people working with printed PDFs.

diego-rapoport

diego-rapoport commented on Dec 3, 2024

@diego-rapoport

I'm also interested in this feature! Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @AlexRoidl@anujtripathi04@HackbrettXXX@mariusheine@diego-rapoport

        Issue actions

          Generate PDF/A compliant document · Issue #2882 · parallax/jsPDF