Forum Bugs

<TR> Borders Are Boxes Not Lines

spawlik
Prince 16, and older versions, converts table borders to boxes with fill and thickness instead of lines. Is there a way to have it convert to a line instead of a box? Boxes create an inconsistent view in Acrobat. In the attached, the bottom border is converted into a box not a line in the PDF

<tr> style in image.
  1. Border Style for TR.png26.4 kB
mikeday
Can you attach an example PDF demonstrating the problem? Border inconsistency may be an issue specific to screen display in Acrobat that disappears when the PDF is printed, or even viewed at different zoom levels. Unfortunately it can be difficult to avoid this.
spawlik
Thanks,
This issue appears only when boxes are used instead of lines and viewed in Acrobat. When you zoom in and out, the boxes will be of inconsistent thickness, but the lines will not

I have attached the following samples:
[simple-table.html] - A simple table html file with bottom borders

[simple-table.pdf] - the pdf generated from Prince 16

[lines vs boxes.pdf] - This is generated from illustrator. "Thin boxes" are used on the left; actual lines are used on the right. To show how Acrobat behaves for these two different objects.
  1. lines vs boxes.pdf44.2 kB
  2. simple-table.html1.2 kB
  3. simple-table.pdf22.6 kB
mikeday
Unfortunately I don't think we can change this, it is difficult to guarantee consistent rendering of subpixel areas, and some PDF viewers appear to have similar issues with stroked paths (lines) as well as filled paths (boxes). Perhaps the PDF viewer could apply different rendering heuristics, but in general I think it's always going to be an approximation that may appear inconsistent for repeated objects.
spawlik
I have noticed that this visual artifact does not happen with certain colors (ex: RGB black, RGB red, and a few grays). Do you know any logic behind this? Just checking if there is a known answer, before I setup a bit of testing.

Simon
mikeday
Nothing that I'm aware of; I'm not sure if there would be color-specific heuristics at work here, that sounds a little strange.