vs72737 / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Keeping paragraphs together on one page when converting from docx to pdf / non-breaking table/text #413

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
0.Create a table with around 6 or so rows. Put some line breaks after it 
(Enter). Select and copy all content and paste it around 20 times.
1.Select each table in an docx document (NOT the line breaks between them) and 
make the selection/paragraph to not break on pages (Paragraph - Lines & Page 
numbers - 'check the first 3 boxes')
2.Convert to PDF

What is the expected output? What do you see instead?
Tables should be (like in the docx) not seperated spread on the pages.

What version of the product are you using? On what operating system?
1.0.4

Please provide any additional information below.
The non-breaking table is just an example. It would be great to be able to make 
other text/non-text content non-breaking.

I have tried to use the HTML <p> tag and added some metadata. But to no avail.

An not very satisfying workaround i found is to use '<p 
style=\"page-break-before:always\"></p>' before each non-breaking paragraph.

But we are trying to generate multiple different sized tables, so always 
starting a new page doesn't look so nice.

Thanks for your help and best regards
dev.final.11

Original issue reported on code.google.com by dev.fina...@gmail.com on 26 Jun 2014 at 12:15

GoogleCodeExporter commented 8 years ago
I am using Windows 7, 64bit

Original comment by dev.fina...@gmail.com on 26 Jun 2014 at 12:18

GoogleCodeExporter commented 8 years ago
It seems that problem comes from docx->pdf converter. Please attach your docx 
which causes the problem and I will see that when I will have time.

Thank's

Original comment by angelo.z...@gmail.com on 26 Jun 2014 at 12:20

GoogleCodeExporter commented 8 years ago
Thanks for your time!

I have attached a test.docx and the converted test.docx.pdf

Best regards

Original comment by dev.fina...@gmail.com on 26 Jun 2014 at 12:58

Attachments: