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

PDF MP operator

New Here ,
Oct 31, 2016 Oct 31, 2016

I have a PDF job. The test case contains 12345 MP in its /Contents stream.

The PDF spec says that MP operator requires a name operand. But Adobe

printers and Acrobat seem to ignore the error. Does anybody know why?

TOPICS
Acrobat SDK and JavaScript
423
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 ,
Oct 31, 2016 Oct 31, 2016

Acrobat is not a validator. As an implementation, if there is no reason to use the result of an operator - which has no effect on display or printing - the operator is likely to be skipped. There is also no obligation to report an error even if one is detected.

Better forum for PDF language questions: PDF Language and Specifications

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 ,
Nov 01, 2016 Nov 01, 2016

Thanks so much for the response.Why you say that MP "has no effect on display or printing"? I could not reach the same conclusion from the spec.

 

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 ,
Nov 01, 2016 Nov 01, 2016

Well, it doesn't affect the graphics state, and it doesn't mark the page, so I see that as "no effect". A renderer has to be aware of it enough to skip the operator and its operands, but this could be done without even being aware of the existence of the MP operator, since every operator leaves the stack clear.

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 ,
Nov 01, 2016 Nov 01, 2016
LATEST

What sort of effect are you thinking of?

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