Skip to content

Conversation

@jstaerk
Copy link

@jstaerk jstaerk commented Oct 25, 2024

Correcting some RDF in FO, if omitted e.g. Apache FOP will create invalid PDF/A-3 out of it as can be observed when validated with VeraPDF, see https://issues.apache.org/jira/browse/FOP-3214

Correcting some RDF in FO, if omitted e.g. Apache FOP will create invalid PDF/A-3 out of it as can be observed when validated with VeraPDF, see https://issues.apache.org/jira/browse/FOP-3214
@rstrajher-omnizon
Copy link

This may be the wrong place to ask, but can you please help me understand how to use the tool to create a PDF?
Using xr-pdf.xsl I managed to get an XSL-FO file and in order to get the PDF I ran fop with that file as source and got the PDF.
Steps:
java -jar lib/saxon9he.jar -s:path/to/Rechnung.xml -xsl:src/xsl/ubl-invoice-xr.xsl -o:out/Rechnung.xr
java -jar lib/saxon9he.jar -s:out/Rechnung.xr -xsl:src/xsl/xr-pdf.xsl -o:out/Rechnung.fo
fop -fo out/Rechnung.fo -pdf out/Rechnung.pdf

Is that the expected behaviour/usage?

Thanks, and again sorry for asking in the wrong place.

@lkumai
Copy link
Collaborator

lkumai commented Nov 7, 2024

@jstaerk Thank you! We'll check this!

@lkumai
Copy link
Collaborator

lkumai commented Nov 7, 2024

This may be the wrong place to ask, but can you please help me understand how to use the tool to create a PDF? Using xr-pdf.xsl I managed to get an XSL-FO file and in order to get the PDF I ran fop with that file as source and got the PDF. Steps: java -jar lib/saxon9he.jar -s:path/to/Rechnung.xml -xsl:src/xsl/ubl-invoice-xr.xsl -o:out/Rechnung.xr java -jar lib/saxon9he.jar -s:out/Rechnung.xr -xsl:src/xsl/xr-pdf.xsl -o:out/Rechnung.fo fop -fo out/Rechnung.fo -pdf out/Rechnung.pdf

Is that the expected behaviour/usage?

Thanks, and again sorry for asking in the wrong place.

You can mail your question to [email protected] . We'll answer soon.

@lkumai
Copy link
Collaborator

lkumai commented Nov 28, 2024

Although we will not support PDF-A/3 for the time being, your pull request is a great help in better supporting PDF-A/1.

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

Successfully merging this pull request may close these issues.

3 participants