Apache OpenOffice (AOO) Bugzilla – Issue 83920
Mailing Export to pdf with wrong page break
Last modified: 2017-05-20 11:15:37 UTC
I have create a model reading a database for some fields. When i print this document, and mergind it with data, i chose in the message box : -> to a file (NOT to printer), -> as simple doc (NOT as uniques docs) -> to PDF format. Everything works fine, but the PDF file contains extra blanks pages (one blank page between each page. If i choose to print this doc instead of send i to a file, there is NO blank page. Thank for your help !
Reassigned to HI.
viretfr663, please provide step by step repro and necessary files.
Created attachment 50991 [details] text to merge
Created attachment 50992 [details] data_to_merge
Created attachment 50993 [details] Result_Merged_PDF
I send you necessary docs to repeate the bug : -> text_to_merge : the text to merge, with fields to be read in the database file, -> data_to_merge : the database file, -> merged_pdf.pdf : the resulting doc after merging. Step to got PDF file : -> Open ODT text, -> Open ODB databse, to be sure that text document is able to read is data from it, -> then with text doc, choose "Printing", answer Yes to merge doc, the choose "print TO A FILE", option "To A SIMPLE FILE", and to PDF format. As you can see, text doc has 2 rows by page, and the database has 4 rows in this example. So, PDF document should have 2 pages, with 2 records on each. The problem is that, when merging, each merged page is followed by a unsollicited blank page. So, you can see final PDF document has not 2 pages, but in fact 3. If you put 1000 records in the database, the PDF document will have 500 merged pages + 499 blanks pages (strangely, the last page is NEVER blank). Anyway, thank you for you care, and spending time for community !
Confirming both 2.3.1 and 2.4m242 on WinXP - as described. Also, exporting to .odt produces two page document with pages "1" and "3" (see attached "pages1-3.odt").
Created attachment 51015 [details] Resulting file
Ok, I can help you. - Open File - Export as PDF... dialog You'll see that the check box "Export automatically inserted blank pages" is enabled. - Disable check box for blank pages - Click on Export button Now the appearing Export (Save as) dialog can be canceled. When you call the Export PDF dialog again, the check box for export inserting blank pages should be disabled. With this setting you can proceed the mail merge by print button and you shouldn't get blank pages anymore.
HI->OS: The Mail Merge should behave always in this way, that the check box "Export automatically inserted blank pages" is disabled. - Even if it is enabled or - Add a button for PDF-Options within the mailmerge dialg in case that PDF is selected.
I've filed an follow up issue 85443.
GREAT ! Thank you for your help : i can now write PDF without extra blank pages ! Many thanks !!!
Changing target milestone to 3.x
Reset assigne to the default "issues@openoffice.apache.org".