| Summary: | Export PDF with bounding box around selection | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Ralf <ralfs.mail.address> |
| Component: | Printing and PDF export | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | enhancement | CC: | msramek22, vsfoote |
| Priority: | medium | ||
| Version: | Inherited From OOo | ||
| Hardware: | x86 (IA32) | ||
| OS: | All | ||
| See Also: |
https://bugs.freedesktop.org/show_bug.cgi?id=38082 https://bugs.documentfoundation.org/show_bug.cgi?id=35689 https://bugs.documentfoundation.org/show_bug.cgi?id=73657 |
||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
|
Description
Ralf
2012-09-25 14:03:38 UTC
Same problem with me, I'm also using a pdflatex workflow. The bug is also obvious in a pdf viewer, here you see the (usually small) selected object surrounded by a lot of white space. I seem to remember that this behaviour persists for a long time (> 2 years) but I haven't tried to export selections to pdf for a long time. The bug might be not be within the LO codebase but related to: http://answerpot.com/showthread.php?3966113-pdftops%20does%20not%20crop Maybe bug 47140 could also be tackled at the same time ("Selection" has to be acivated twice during the export process). If I understand the issue correctly, LO uses poppler for pdf export etc. It seems, a related bug has been fixed in a recent release (poppler-0.21.4.tar.gz, Sat December 15, 2012):
core: ...
* PSOutputDev: Fix crop on EPS conversion (Bug #30692)
...
If this is correct (I'm not a developer), it should be sufficient to include the latest poppler version in future LO releases to generate correct PDFs.
According to my understanding this bug request and the quoted and resolved bug request of poppler are different. The resolved poppler bug dealt with conversion from PDF to PostScript by the converter pdftops. The bugs are similar in a sense that both bugs deal with the functionaly of cropping a bounding box or art box. Nevertheless I consider these bugs to be unrelated because creating a PDF file with LibreOffice does not function via an interim PostScript conversion, if my understanding is correct. That means, unfortunately, that the solution of the quoted poppler bug does not result in any synergies for resolving this LibreOffice bug. However, I am not a developer and might miss an interrelationship. I definitely support the idea of providing a bounding box in the pdf when the request to export a selection is made. This whould be extremely useful when LO is used to prepare drawings for other tools (not just LaTeX). Currently images need to be exported and then manually cropped with the pdfcrop tool. Still the same behaviour in LO 4.2.5: The size of the background of the exported pdf-File is always the same as the page format in Draw / Impress or whatever. Workaround so far: use pdfcrop or pdfcropper (Windows). Still the same behaviour in LO 4.2.5: The size of the background of the exported pdf-File is always the same as the page format in Draw / Impress or whatever. Workaround so far: use pdfcrop or pdfcropper (Windows). *** Bug 38082 has been marked as a duplicate of this bug. *** Essentially the issue of bug 40163 Extent of Selected objects combine as a bounding box in export types other than PDF. PDF does not honor the "Selection" radio button when used, and always exports sized to the full document canvas. The selection of objects are honored, but not the resulting bounding box as size for the exported PDF. *** This bug has been marked as a duplicate of bug 40163 *** |