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

Setting page size for pdf conversion #208

Closed
thelinuxer opened this issue Jun 17, 2014 · 3 comments
Closed

Setting page size for pdf conversion #208

thelinuxer opened this issue Jun 17, 2014 · 3 comments
Labels

Comments

@thelinuxer
Copy link

Hi,

I have a small reporting engine that uses relatorio ods templates as the rendering layer. I am currently using unoconv to convert to other formats like XLS, XLSX, PDF ..etc. The problem with PDF is that some of the reports need to be in an A3 page or landscape layout to be exported properly.

I am wondering if there is some way to set the page size and layout.

P.S: I am using unoconv 0.6 on Ubuntu/trusty server

Thanks.

@s0600204
Copy link

As far as I know, unfortunately not.

However, under normal circumstances when a user sets the page size and layout inside LibreOffice (in preparation for printing, perhaps), these settings are saved within the document. Upon exporting to PDF, LibreOffice uses these same values to decide the size and orientation of the virtual pages of the PDF.

Thus, I would think that the easiest way round the problem is to modify your templates so that their printing settings are for A3 landscape, and LibreOffice will read this and output PDF to this size.

@thelinuxer
Copy link
Author

I am sorry I didn't provide you with feedback.
I found out it can be done from View->Page break preview and set your page breaks.
And also setting the page size from Format -> Page.

Thanks for your help.

@dagwieers
Copy link
Member

This functionality does not exist yet out-of-the-box, but can be achieved by modifying unoconv to perform the exact operations to change Page format before conversion. We have feature-request #84 for this, but I never got around a plugin mechanism yet.

Contributions or donations are welcome !

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

No branches or pull requests

3 participants