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

Line width /LW in PDF ignored (not displayed correctly)

New Here ,
Jul 19, 2018 Jul 19, 2018

Hi all,

I have a PDF with several lines and different line widths defined through /LW argument. Somehow the Acrobat Reader shows all the lines with the same line width. Other PDF readers like Foxit or SumatraPDF display the lines correctly.  This is not an issue with CTRL+5 which turns on/off the line width or "enhance thin lines" in Settings.

I attached screenshots of Acrobat Reader and SumatraPDF to see the difference.

Acrobat Reader:

AcrobatReaderPdf.jpg

SumatraPDF

SumatraPDF.png

The line widths are defined through /LW in PDF as:

6 0 obj

<</CA 1

/ca 1

/LC 1

/LJ 1

/LW .36850393

/ML 0

/SA true

/BM /Normal>>

endobj

Do you have any idea what can be the problem?

Is this a bug in Acrobat Reader or I need to adjust some setting in the app?

Thank you for your help!

2.6K
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

correct answers 1 Correct answer

LEGEND , Jul 19, 2018 Jul 19, 2018

I can confirm I see this effect and the PDF is as you describe.

I wonder if the ML 0 is causing this, there are strange errors about number out of range from VERY VERY old versions of Acrobat and that's all I can see.

Translate
LEGEND ,
Jul 19, 2018 Jul 19, 2018

Can you share a file (not in the forum, not as text, but file sharing/URL)?

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 ,
Jul 19, 2018 Jul 19, 2018

Hi,

Here is the link to the file: https://files.bormgruppe.com/?u=LN2u&p=5VM1&path=/ColorTableTest%20A4_Hoch.pdf

Thank you for your help.

Best Regards,

Gabriel

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
LEGEND ,
Jul 19, 2018 Jul 19, 2018

By the way... while LW in an extended gstate should be valid, I don't recall ever seeing it used. Have you tried with a "w" operator?

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
LEGEND ,
Jul 19, 2018 Jul 19, 2018

I can confirm I see this effect and the PDF is as you describe.

I wonder if the ML 0 is causing this, there are strange errors about number out of range from VERY VERY old versions of Acrobat and that's all I can see.

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 ,
Jul 20, 2018 Jul 20, 2018

Hi,

Does it mean, that this is a bug in Acrobat Reader?

Best Regards,

Gabriel

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
LEGEND ,
Jul 20, 2018 Jul 20, 2018

I’ve suggested two things. Does either one work separately or together?

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 ,
Jul 23, 2018 Jul 23, 2018

Hi, it seems that removing the /ML solved the issue and the file is displayed and printed correctly by using Acrobat Reader.

The question remains the same. Is the /ML 0 valid state? If so then this is probably a bug in the Acrobat Reader.

As I stated before other PDF Viewers display and print the file correctly. We tried Foxit, SumatraPDF, Mozilla Firefox and Microsoft Edge.

The file was written by using PDF backend of the Google Skia Graphics library.

Thank you for your response.

Best Regards,

Gabriel

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
LEGEND ,
Jul 23, 2018 Jul 23, 2018
LATEST

It's an interesting question. The default Miter Limit is 10.0 and it is defined as 1 / sin ( angle ) or similar. Since sin can only give values up to 1.0, the smallest possible miter limit is 1.0. 0.0 is not a possible miter limit. Yet, the PDF spec also says that invalid numeric values should be bought into range by a conforming viewer.

Whatever your intention is by setting a miter limit of 0, you should look at what the correct number is and use that. Even if it is a bug, and even if Adobe fix it, countless millions of people will be using the unfixed software so it's better to fix your generator.

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