Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Table borders offset in PDF output

New Here ,
May 12, 2011 May 12, 2011

I am using RoboHelp HTML, version 9 and I need to deliver two outputs for my documentation: WebHelp and PDF.

My table borders look the way I want them to in WebHelp and Word, single line and thin (1px).

But when we go to PDF, I get two sets of lines, one all the way around my cells, another with gaps of white space.

I think its something to do with 3d borders not getting totally eliminated.

I've added "table-collapse: collapse;" to all my table styles.

Any ideas?

Note: If I create a table originally in Word with thin single line borders, it looks fine in PDF.

Here's how it looks in WebHelp and Word...

word.png

And then in PDF...

pdf.png

677
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 17, 2011 May 17, 2011

That looks remarkably like the CSS from my website. If it is, then I have experienced problems when using Adobe products to create the PDF. Try a freebie PDF generator.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 17, 2011 May 17, 2011

Peter,

Yes, as I mentioned in an earlier post, I really like the help design on your web site. I researched many looks in preparing for a new stylesheet project. Ended up emulating a lot of your elements rather than reinvent the wheel.

Hope you are OK with that. Imitation is the sincerest form of flattery (definitely in my case).

Anyhow, I figured out my problem. The CSS for my original tables was using 5px padding all around. In Word output, this gets converted to table cell margins.

And that's what the PDF conversion doesn't like. Take out the original CSS padding--or the converted Word cell margins--and the problem goes away, leaving clean unbroken table lines in the PDF.

Best regards.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 17, 2011 May 17, 2011
LATEST

No problem with using the CSS or copying bits of it. Glad you fixed it.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp