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

Add PDF Export Automation to SDPi Publication #236

Open
ToddCooper opened this issue Oct 26, 2023 · 5 comments
Open

Add PDF Export Automation to SDPi Publication #236

ToddCooper opened this issue Oct 26, 2023 · 5 comments
Assignees
Labels
Spec An proposal related to the content or organization of the specification

Comments

@ToddCooper
Copy link
Collaborator

Some organizations that want to reference and utilize the SDPi specifications prefer PDF documents, in addition to other forms such as HTML.

Request is to include export of the final HTML publication into a PDF rendering, as part of the Github automation process or the release / publication package process. Also, to include the PDF in the profiles.ihe.net/DEV publication page.

@ToddCooper ToddCooper added the Comment NEW A submitted comment waiting to be reviewed and dispositioned label Oct 26, 2023
@d-gregorczyk
Copy link
Collaborator

d-gregorczyk commented Oct 27, 2023

Difficult... we could potentially tweak the print view of the spec and manually export a PDF as part of the publication process.

@d-gregorczyk d-gregorczyk self-assigned this Oct 27, 2023
@ToddCooper ToddCooper added Spec An proposal related to the content or organization of the specification and removed Comment NEW A submitted comment waiting to be reviewed and dispositioned labels Oct 27, 2023
@ToddCooper ToddCooper added this to the SDPi 1.2 Review milestone Oct 27, 2023
@ToddCooper
Copy link
Collaborator Author

SDPi Friday Review 2023.10.27 Not simple but will try to find a tool to automate the PDF conversion. This may require some tweaks to the HTML output.

Note: Some of the IHE ITI HTML profiles are also exported as PDF.

@JavierEspina
Copy link
Collaborator

JavierEspina commented Nov 2, 2023

I see 2 options to investigate:

  1. Set the build pipeline to convert straight from ASCIIDOC to PDF (instead of ASCIIDOC->HTML->PDF)
  2. Manually convert the HTML to PDF with every release using the browser's print function (I think this is what David proposed above)

If option 1 is feasible with reasonable effort it would be my preference.

On 1:
I think the asciidoctorj plugin supports building PDF instead of HTML. It may be as simple as replacing "html" with "pdf" in

Run gradle/gradle-build-action@v[2]
with:
arguments: run --args="--input-file ../../asciidoc/sdpi-supplement.adoc --output-folder ../../sdpi-supplement --github-token *** --backend html"

On 2: I tried it out and it looks pretty decent. Not sure if sufficiently similar to the HTML though. Here is the result for your assessment:
Service-oriented Device Point-of-care Interoperability (SDPi) Technical Framework.pdf

@ToddCooper
Copy link
Collaborator Author

ToddCooper commented Nov 2, 2023 via email

@ToddCooper
Copy link
Collaborator Author

SDPi Friday 2024.02.09 - Investigate creating a Github action that is able to simulate the HTML output and print it to PDF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Spec An proposal related to the content or organization of the specification
Projects
Status: New issues
Development

No branches or pull requests

4 participants