Created attachment 127746 [details] The original file When opening the joined file, exporting it to PDF, leaving all default parameters, the generated PDF is completely wrong. It has huge top, bottom and right margins.
Created attachment 127747 [details] the generated PDF
On Windows 10 Pro 64-bit (ver 1607) en-US with Version: 5.2.2.2 (x64) Build ID: 8f96e87c890bf8fa77463cd4b640a2312823f3ad CPU Threads: 8; OS Version: Windows 6.19; UI Render: GL; Locale: en-US (en_US); Calc: group Can not confirm with any configuration of the "Export to PDF" dialog. - default JPEG compression, 90% and Reduce image resolution 300 DPI, Create PDF from FDF, export bookmarks, export placeholder - lossless compression checked, and all other options cleared The PNG art held in the Header frame is clipped and renders correctly in the PDF which is sized out at A4 page measurments. Nor with the standard toolbar button -> uno:ExportDirectToPDF
I can not confirm too, with LO 5.1.0.1 32bit, Win10 Ent 64 bit, default pdf export settings. The export is perfect.
Hi Ophir, Thank you for reporting the bug. Can you provide more information on this issue?
Of course! What information do you need?
Can you copy and paste the version and OS information found in the Help > About dialog? Can you test if this issue still happens for you in LibreOffice 5.2?
Here are the version information: Version: 5.1.4.2 Build ID: 1:5.1.4-0ubuntu1 Threads CPU : 4; Version de l'OS :Linux 4.4; UI Render : par défaut; Locale : fr-FR (fr_FR.UTF-8) I don't really have time to install a new LibreOffice right now, but don't hesitate to ask any other info !
What disto are you running on? Can you let me know which PDF options are enabled in File > Export as PDF? How did you export it to PDF? Tested 5.1.5 and master and wasnt able to reproduce this issue. If i had to guess, it looks as if it is adding a comments column to the export, but there arent any comments in the document. Version: 5.1.5.2 Build ID: 7a864d8825610a8c07cfc3bc01dd4fce6a9447e5 CPU Threads: 2; OS Version: Linux 3.19; UI Render: default; Locale: en-US (en_US.UTF-8); Calc: group Version: 5.3.0.0.alpha0+ Build ID: 45a7137c6796f33fbf5b8f7cb64e293260d991cb CPU Threads: 2; OS Version: Linux 3.19; UI Render: default; TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-10-13_23:38:06 Locale: en-US (en_US.UTF-8); Calc: group
Indeed! Thank you, you solved my problem, and I can now export PDF correctly. But I still think this is a bug. When you print a document that has comments, you have an option to print the comments in the margins. I once printed a document like that. But the problem is that this option is REMEMBERED by LibreOffice forever, even for documents that don't have comments. And worst, this option is used for PDF export too, even if it isn't even present (or at least I didn't see it) it the PDF export panel. Even worse: when a document doesn't have comments, you can't change this option in print options. This means that in order to remove these ridiculous margins, you have to add a comment in your current document, choose "File > Print", select "comments: none", then press "cancel", then remove the comments you just added, and then finally you can export your document as PDF !!!
Created attachment 128055 [details] Screenshot of the problematic print option Screenshot of the print options that affects PDF export and that is impossible to change when opening the print options window from a document that doesn't have comments.
Confirmed. Steps: 1) Open a document without comments 2) Add a comment 3) Open print dialog and set comments to 'place in margins' and print 4) Undo the added comment 5) Export PDF 6) PDF comes out with blank comment margins area Version: 5.3.0.0.alpha0+ Build ID: 45a7137c6796f33fbf5b8f7cb64e293260d991cb CPU Threads: 2; OS Version: Linux 3.19; UI Render: default; TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-10-13_23:38:06 Locale: en-US (en_US.UTF-8); Calc: group
I think the problem isn't only that "Print dialog comments value affects PDF export". The problem is also that this print option affects documents that don't have comments. Steps to reproduce: 1) Open a document with comments. 2) Open print dialog, set comments to "place in margins". 3) Press cancel. 4) Remove all comments. 5) Open print dialog. 6) The document prints with these huge margins, and the "comment" option is stuck to "place in margins". I think this "comment" option should: 1) Be displayed in both the "print" and "export to PDF" dialogs. 2) Not affect documents that don't have comments in any manner.
I gave a look at the code. I see that in core/view/vprint.cxx, in SwViewShell::PrintOrPDFExport, the condition to rescale the document is rPrintData.GetPrintPostIts() == SwPostItMode::InMargins. I think there should be an additional condition pPostItManager->HasNotes(). Plus, in SwPrintUIOptions::SwPrintUIOptions, a PrintAnnotationMode list box is created, that should also be created in ImpPDFTabDialog. Am I right ?
(In reply to Ophir LOJKINE from comment #12) > The problem is also that this print option affects documents that don't have > comments. > > Steps to reproduce: > > 1) Open a document with comments. > 2) Open print dialog, set comments to "place in margins". > 3) Press cancel. > 4) Remove all comments. > 5) Open print dialog. > 6) The document prints with these huge margins, and the "comment" option is > stuck to "place in margins". As we can only deal with one issue per bug, i'd suggest you file that bug as a separate one and reference this bug in the description. The solution to this issue is that if it disables the comment option, it should always reset the option to 'none'. > I think this "comment" option should: > 1) Be displayed in both the "print" and "export to PDF" dialogs. As it is possible to embed comments into pdfs with the 'export comments' checkbox in the pdf dialog, i dont think this option is needed for pdf. > 2) Not affect documents that don't have comments in any manner. Yes this is what we hope to fix with this bug report.
> i dont think this option is needed for pdf. Why ? Not allowing to export comment in margins for PDFs would be a regression, wouldn't it ?
(In reply to Ophir LOJKINE from comment #15) > Why ? Not allowing to export comment in margins for PDFs would be a > regression, wouldn't it ? I personally dont think its needed, but as you disagree, then please create a new bug report suggesting the addition of this option into the pdf dialog and the UX team will decide on its validity.
Here it is, I reported the two other bugs
Hi, I really think this is similar as bug 79232. If I'm wrong, please reopen and explain in detail. thanks! Cor *** This bug has been marked as a duplicate of bug 79232 ***
(In reply to Ophir LOJKINE from comment #17) > Here it is, I reported the two other bugs Thanks (In reply to Cor Nouws from comment #18) > I really think this is similar as bug 79232. Related but not a duplicate. :D
(In reply to Yousuf Philips (jay) from comment #19) > > Related but not a duplicate. :D Might well be - I'm rather lost in 'false output', 'affecting' and similar descriptions, leaving too much room for my fantasy :)
(In reply to Cor Nouws from comment #20) > Might well be - I'm rather lost in 'false output', 'affecting' and similar > descriptions, leaving too much room for my fantasy :) Well we still dont know what 'false output' means for that bug report and this bug report is that the comments value is affecting the pdf export when we didnt want it to, somewhat similar to bug 83832.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
*** Bug 83832 has been marked as a duplicate of this bug. ***
"The document prints with these huge margins" was duplicate of now solved Bug 91680 "the "comment" option is stuck to "place in margins"." is Bug 112294. This bug is about "PDF comes out with blank comment margins area" but it looks solved, test with 6.0.6. I'll set WFM. Feel free to reopen if tested otherwise.