Sozi-export
Sozi-export copied to clipboard
How does the -p option work?
I created a presentation in Sozi using the 16:9 format. If I want to export to a pdf file, there are some problem. I export like: sozi-to-pdf -W 16 -H 9 -i all file.html This works fine generally, but it always adds white borders n top and bottom an d black borders n the sides. The slides themselves look correct, so I guess, the -W and -H are set correctly. I think, I have to use the -p command. But if I add eg sozi-to-pdf -W 16 -H 9 -p something -i all file.html It will not create an outputfile anymore. I tried something= a4paper or something=[paperwidth=16in,paperheight=9in]
Summed up: how does the -p command work?
I think that the options for -p are these: https://da.sharelatex.com/learn/Page_size_and_margins#Reference_guide
Maybe the reason why you have trouble with your setting of flags is that you have spaces between the flags and the parameters. Normally I would do it thus:
sozi-to-pdf -W16 -H9 -iall file.html ...or: sozi-to-pdf -pa4paper file.html
However, sozi-to-pdf actually defaults to a4paper...
that is not the problem. mt -H 9 -W 16 parameters work and it also changes if I change their values. But they just correspond to the size of the the frame inside Sozi or the .html presentation (basically the size values you can also set inside sozi). I'm looking for how to change the page size of the created pdf file. I want that to be in 16:9 aswell, so I can view the pdf presentaion such that it fills the whole screen (as the html presantation does)
Sorry, I just found, that options for -p really work. It was just, that I only tried a0paper, a1paper, a4paper before, and they actually all have the same length/width ratio so I thought it did not work.
now, there is one option -p legalpaper that comes close to 16:9 format. Now my pdf almost equals the "real" html presentation. Still it is not exactly 16:9
It would be great if there would be a feature to specify the dimensions of the generated pdf kinda like the -H -W options.