Skip to content
This repository was archived by the owner on Oct 21, 2020. It is now read-only.
This repository was archived by the owner on Oct 21, 2020. It is now read-only.

How does the -p option work? #7

Open

Description

@master-bit

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?

Activity

  1. ejvindh commented on May 18, 2016

    @ejvindh

    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...

  2. master-bit commented on May 19, 2016

    @master-bit
    Author

    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)

  3. master-bit commented on May 19, 2016

    @master-bit
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions