<div dir="ltr"><div>hello,<br><br>i'm actually looking at <a href="https://bugs.freedesktop.org/show_bug.cgi?id=45168">https://bugs.freedesktop.org/show_bug.cgi?id=45168</a> .<br>"LibreOffice-Printing and PDF export enhancement/medium NEW Add Option to crop Images in PDF Export"<br>

<br>As I understood, if an new option to be created is selected in the PDF export dialog, the pdf writer must put in the pdf a smaller version of the cropped image in the document.<br><br></div><div>If that's not right , please correct me.<br>

<br></div><div>If that's what expected, then :<br></div><div>A- have you any pointer on how to really crop the incoming image ?<br></div><div><br>B- the function <a href="http://opengrok.libreoffice.org/xref/core/vcl/source/gdi/pdfwriter_impl.cxx#120">http://opengrok.libreoffice.org/xref/core/vcl/source/gdi/pdfwriter_impl.cxx#120</a> his almost an export test.<br>

It's launch the first time you export a PDF.<br>I've defined DO_TEST_PDF, and the file pdf_export_test.pdf present in my $HOME is corrupt. Evince & acroread 9.4.2 could not open it.<br></div><div>The idea is to modify the test function to include a smaller image.<br>

</div><div>If there is a more appropriate test in place where to add more test, fill free to share it with me ;)<br><br></div><div>MichaĆ«l<br></div></div>