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

PDF page size #291

Open
ricpelo opened this issue Jan 27, 2017 · 7 comments
Open

PDF page size #291

ricpelo opened this issue Jan 27, 2017 · 7 comments

Comments

@ricpelo
Copy link

ricpelo commented Jan 27, 2017

How can I set the page size of the PDF output? I want to set it to A4 paper.

Thank you very much!

@rahmanusta
Copy link
Member

You can change it here https://github.com/asciidocfx/AsciidocFX/blob/master/conf/docbook-config/fop.xconf.xml#L28 , it is located at installation dir.

@shawngiese
Copy link

The setting at fo-pdf.xsl seem to take precedence. I set page.height.portrait and page.width.portrait there.

@bjadel
Copy link

bjadel commented Feb 12, 2018

I have changed the page size in the file fo-pdf.xsl, too. Has anybody a good example for this file and A4 pages?

@ellipticview
Copy link

File conf/docbook-config/fo-pdf.xsl, line 356:

    <xsl:param name="page.height.portrait">29.7cm</xsl:param>
    <xsl:param name="page.width.portrait">21.0cm</xsl:param>

It would be nice if this can be installed as the default. Or otherwize a preference in the settings.

@shawngiese
Copy link

shawngiese commented Aug 5, 2018 via email

@rahmanusta
Copy link
Member

We can provide a configurable yaml file and map properties to apache fop at runtime. I'm open for pull requests btw.

@shawngiese
Copy link

shawngiese commented Aug 5, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants