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

How do I use graphics export options? #487

Closed
serverdevil opened this issue Feb 1, 2019 · 3 comments
Closed

How do I use graphics export options? #487

serverdevil opened this issue Feb 1, 2019 · 3 comments
Labels

Comments

@serverdevil
Copy link

I'm converting a pdf to png (need the first page only) using the following command

unoconv -d graphics -o output/doc.png -f png -v doc.pdf

I need to restrict the image size to generate a thumbnail, for which I'd expect the export option to work as follows but it doesn't effect any change

unoconv -d graphics -o output/doc.png -e Width=25 -f png -v doc.pdf

Also, how do I combine multiple export filter options?

@regebro
Copy link
Member

regebro commented Feb 14, 2019

You can have multiple -e parameters, like -e Width=25 -e Height=100, but you are right, Width and Height does not work for me either. Neither does options of paper size work, so I think something has changed in the Uno API recently that means none of these options work anymore.

In any case, Libreoffice is not the best tool for this. I think I used ImageMagick last time I needed to make a PDF thumbnail. I think Ghostscript might work as well.

@regebro regebro added the bug label Feb 14, 2019
@serverdevil
Copy link
Author

Thanks @regebro. Imagemagick is exactly what I ended up using.

@regebro
Copy link
Member

regebro commented Feb 15, 2019

OK, and it turns out that height and width works, but you have to specify both.

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

2 participants