-
Notifications
You must be signed in to change notification settings - Fork 0
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
(URGENT) PDF output on GitHub Actions are broken due to old version of mn2pdf #121
Comments
metanorma gem v2.0.7 was released with
There is nothing further for me to do here, this is a Docker concern now. |
You've just seen that I've updated my mn-samples-plateau locally, and it updated just fine. Metanorma has 250 gem dependencies, and And this time around, that is not a problem internal to metanorma-cli. |
I've downloaded the artifacts from https://github.com/metanorma/mn-samples-plateau/actions/runs/11611146598.
The PDF doesn't end with |
Locally generated PDF broken also.
May be something wrong in the SVG graphic. I'll check. |
Something wrong in the image Just for experiment I've removed all content except one line: <text transform="matrix(0.85 0 0 1 450.376 1281.3411)" class="st3 st4">«FeatureType»</text> and PDF is broken. <text transform="matrix(0.85 0 0 1 450.376 1281.3411)" class="st3 st4">区域モデル</text> and PDF is OK. One letter - PDF is broken: <text transform="matrix(0.85 0 0 1 450.376 1281.3411)" class="st3 st4">A</text> No error, no warnings... |
Complicated issue...
but Batik API doesn't see them for some reason (the issue relates to metanorma/mn2pdf#248) In case of missing fonts, Apache FOP can't generated PDF in the PDF/UA mode, therefore The latest |
PDF A mode disabling added, metanorma/metanorma-plateau#121
docker.yml updated for metanorma/metanorma-plateau#121 Gemfile and docker.yml updated for metanorma/metanorma-plateau#121 Gemfile updated for metanorma/metanorma-plateau#121 Gemfile updated for metanorma/metanorma-plateau#121 Gemfile updated for metanorma/metanorma-plateau#121 Gemfile updated for metanorma/metanorma-plateau#121 Gemfile updated for metanorma/metanorma-plateau#121 Gemfile and docker.yml updated for metanorma/metanorma-plateau#121 Gemfile and docker.yml updated for metanorma/metanorma-plateau#121 Gemfile and docker.yml updated for metanorma/metanorma-plateau#121 Gemfile and docker.yml updated for metanorma/metanorma-plateau#121 Gemfile and docker.yml updated for metanorma/metanorma-plateau#121
The issue fixed in @CAMOBAP in PR metanorma/mn-samples-plateau#224 I've added
I don't understand why it tries to install I've tried to add
The error (https://github.com/metanorma/mn-samples-plateau/actions/runs/11644447927/job/32426368266?pr=224);
Could you take a look? |
The
Not for typical users of Metanorma, who mostly use the single binary version, who have no access to Gemfile.lock. Anyway, this is a degree issue. There is an argument for the command to "show no version", "show some versions", or "show all versions". Right now we show the standoc version, and it's not a flavor. mn2pdf is part of the core Metanorma stack, just like a flavor is. |
just a comment about printing versions in the github actions when a document is generated: in a couple of projects the github action prints the version of metanorma and related flavors. this has been helpful when we submit comments related to metanorma and a specific template. not sure if you are considering to remove or change this, but i think it is very important to retain this version information when the github action is run. no reply is needed. thank you. |
Which other gems do you regard as part of the core Metanorma stack, @ronaldtse. Reply in metanorma/metanorma-cli#345 |
Replied at metanorma/metanorma-cli#345 |
The issues fixed in the last week Metanorma release. The generated PDF's available in the artifacts in https://github.com/metanorma/mn-samples-plateau/actions/runs/11957118049. |
This is reported by @ReesePlews and confirmed by myself.
The GHA generated PDFs are currently malformed, they cannot be open in Preview or Adobe Acrobat. However, when locally generated, the PDFs are fine.
I suspect this has to do with the
mn2pdf
changes lately (there was a ticket about locking mn2pdf to version 1.99), and the Docker container may have used the old version of mn2pdf that does not support the latest XML changes (@opoudjis said it might be to do with the new TOC encoding).In the metanorma-plateau action, I can see mn2pdf being updated to 2.06 from a Docker version of 1.99:
In the mn-samples-plateau action, the
metanorma version
command does not show mn2pdf version (which it should!), there is no upgrade in the mn2pdf gem mentioned, so it means the Docker default of mn2pdf 1.99 is still used:This means we need to re-build the Docker container.
@opoudjis @Intelligent2013 can you tell me what version of mn2pdf is required (and are the components released to indicate this)? Will a re-release of a new metanorma-cli version fix this?
The text was updated successfully, but these errors were encountered: