rlespinasse / drawio-exporter

Command Line Client To Enhance Files Export Using Draw.io Application
https://crates.io/crates/drawio-exporter
MIT License
17 stars 5 forks source link

exporter does not allow all pages into 1 pdf #17

Open fatehks opened 2 years ago

fatehks commented 2 years ago

When i use the exporter, i get 3 separate PDF files, one for each page in my diagram.

Ex:

docker run -it -v $(pwd):/data rlespinasse/drawio-export -s .99 -f pdf 3-page-drawing.drawio 
+ export file : 
++ export page 1 : Page One
+++ generate pdf file
++ export page 2 : Page Two
+++ generate pdf file
++ export page 3 : Page Three
+++ generate pdf file

I can use the headless docker image to create a single PDF file with 3 pages.

Ex:

docker run -it -w /data -v $(pwd):/data rlespinasse/drawio-desktop-headless -s .95 -x -f pdf -o 3-page-pdf.pdf 3-page-drawing.drawio 

Here is the version that I am using:

$ docker run -it -v $(pwd):/data rlespinasse/drawio-export --version
drawio-exporter 1.1.0

Can the drawio-exporter export all tabs to a single PDF?

rlespinasse commented 2 years ago

This will be a new feature to implement like --split-mode

- per_page (default) - none (your usecase)

Will implement --all-pages option from drawio-desktop cli, which indicate to generate all pages into one PDF.