Issue 83920 - Mailing Export to pdf with wrong page break
Summary: Mailing Export to pdf with wrong page break
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 2.3.0 RC1
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-24 09:22 UTC by viretfr663
Modified: 2017-05-20 11:15 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
text to merge (7.65 KB, application/vnd.oasis.opendocument.text)
2008-01-19 08:26 UTC, viretfr663
no flags Details
data_to_merge (2.71 KB, application/vnd.sun.xml.base)
2008-01-19 08:26 UTC, viretfr663
no flags Details
Result_Merged_PDF (23.71 KB, application/pdf)
2008-01-19 08:27 UTC, viretfr663
no flags Details
Resulting file (7.96 KB, application/vnd.oasis.opendocument.text)
2008-01-20 07:55 UTC, kpalagin
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description viretfr663 2007-11-24 09:22:43 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 !
Comment 1 michael.ruess 2007-11-26 08:50:10 UTC
Reassigned to HI.
Comment 2 kpalagin 2008-01-12 09:28:04 UTC
viretfr663,
please provide step by step repro and necessary files.
Comment 3 viretfr663 2008-01-19 08:26:15 UTC
Created attachment 50991 [details]
text to merge
Comment 4 viretfr663 2008-01-19 08:26:54 UTC
Created attachment 50992 [details]
data_to_merge
Comment 5 viretfr663 2008-01-19 08:27:39 UTC
Created attachment 50993 [details]
Result_Merged_PDF
Comment 6 viretfr663 2008-01-19 08:38:31 UTC
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 !
Comment 7 kpalagin 2008-01-20 07:52:13 UTC
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").
Comment 8 kpalagin 2008-01-20 07:55:12 UTC
Created attachment 51015 [details]
Resulting file
Comment 9 h.ilter 2008-01-21 15:03:31 UTC
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.
Comment 10 h.ilter 2008-01-21 15:09:01 UTC
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.
Comment 11 h.ilter 2008-01-21 15:22:24 UTC
I've filed an follow up issue 85443.
Comment 12 viretfr663 2008-01-21 20:04:01 UTC
GREAT !

Thank you for your help : i can now write PDF without extra blank pages !

Many thanks !!!
Comment 13 Oliver Specht 2008-05-27 13:33:31 UTC
Changing target milestone to 3.x
Comment 14 Marcus 2017-05-20 11:15:37 UTC
Reset assigne to the default "issues@openoffice.apache.org".