My aim is to export a LibreOffice Calc chart in PDF in order to use it with LaTex later.
I made a 16cm width and 9cm high graph. I would like to get a PDF without border and lot of empty space.
So I went to : file -> export as PDF-> selection...
However even with the selection option, I get a graph in a small pat of a A4 page with margins and empty space...
You can copy (or cut) and paste your chart into a LibreOffice Draw page, and then, in LibreOffice Draw, select the chart, and export it with File>>Export. In the Export dialogue box, choose your graphics format and remember to check the 'selection' box.
go to Format -> Page -> Tab: Sheet -> Catgeory: Scale -> Dropdown: Fit print range(s) on number of pages and set option Number of pages to 1 . Hope that helps.
From the file menu click Export As PDF. You may want to choose export options for PDF. Finally click export. If you click Export Directly as PDF, then PDF would be saved with default options.
Good question, since the settings are very misleading.
To my knowledge, it is not possible to directly save to pdf as you are hoping to do. However, there is a bit of a workaround that will still let you embed a vector graphs from Open/LibreOffice in your LaTeX documents:
File --> Export
, select EPS
from the list of formats, and make sure the selection
box is checked:I haven't tried the other formats, but EPS should play nicely with your LaTeX document, or you can easily convert your EPS to PDF and insert them.
Here is a side by side comparison of trying the export setting with PDF (left--ends up centered on the page) and EPS (right--exports just the graph).
I was faced to the same problem, and after trying different methods, I finally found a simple and great way to do that. Simply use the pdfcrop tool by tapping this simple command line:
pdfcrop inputFile.pdf outputFile.pdf
Hope it will be helpful!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With