Skip to content

Commit

Permalink
fix: wip better pdf conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
maehr committed May 29, 2024
1 parent 93fb38c commit 4250109
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/quarto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,27 @@ jobs:
# target: connect
# CONNECT_SERVER: enter-the-server-url-here
# CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}
- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2

- name: Install LibreOffice
run: sudo apt-get update && sudo apt-get install -y libreoffice

- name: Convert DOCX to PDF
run: libreoffice --headless --convert-to pdf manuscript/handbuch-diskriminierungsfreie-metadaten.docx --outdir manuscript/

# - name: Upload PDF
# uses: actions/upload-artifact@v3
# with:
# name: converted-pdf
# path: path/to/output/yourfile.pdf

# NOTE: If Publishing to GitHub Pages, set the permissions correctly (see top of this yaml)
- name: Publish to GitHub Pages (and render)
- name: Publish to GitHub Pages
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
render: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions

Expand Down
5 changes: 3 additions & 2 deletions manuscript/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ format:
repo: maehr/handbuch-diskriminierungsfreie-metadaten
docx:
reference-doc: custom-reference-doc.docx
output-file: handbuch-diskriminierungsfreie-metadaten.docx
pdf:
classoption: [landscape]
markdown: default
output-file: handbuch-diskriminierungsfreie-metadaten.pdf
# markdown: default

execute:
freeze: true

0 comments on commit 4250109

Please sign in to comment.