Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #2185 > unrolled thread

Is 'mark ... /ANN pdfmark' allowed?

Started byjdaw1 <jdawiseman@gmail.com>
First post2015-02-23 07:00 -0800
Last post2015-02-23 13:05 -0800
Articles 3 — 2 participants

Back to article view | Back to comp.lang.postscript


Contents

  Is 'mark ... /ANN pdfmark' allowed? jdaw1 <jdawiseman@gmail.com> - 2015-02-23 07:00 -0800
    Re: Is 'mark ... /ANN pdfmark' allowed? Carlos <angus@quovadis.com.ar> - 2015-02-23 16:45 +0100
      Re: Is 'mark ... /ANN pdfmark' allowed? jdaw1 <jdawiseman@gmail.com> - 2015-02-23 13:05 -0800

#2185 — Is 'mark ... /ANN pdfmark' allowed?

Fromjdaw1 <jdawiseman@gmail.com>
Date2015-02-23 07:00 -0800
SubjectIs 'mark ... /ANN pdfmark' allowed?
Message-ID<3f0b8802-d9fb-430d-a024-9cf1d60c3ae4@googlegroups.com>
My PostScript code has multiple instances of 
mark ... /ANN pdfmark

I've just learnt that if Adobe Distiller is set to PDF/X-3:2002 (rather than my usual 'High Quality Print'), that fails. Ouch! 

> <PDFX ISO="15930-3:2002" COMPLIANT="false"> ... [Violation] Annotations were found inside the BleedBox, TrimBox, or ArtBox on the following pages: ... This document does not pass PDF/X-3:2002 compliance checks.

Is there any way to detect within the PostScript if pdfmark /ANN is allowed? So that the PostScript will do it if it won't cause a failure, and won't if it will?

[toc] | [next] | [standalone]


#2186

FromCarlos <angus@quovadis.com.ar>
Date2015-02-23 16:45 +0100
Message-ID<mcfhta$4c4$1@dont-email.me>
In reply to#2185
On 23/02/2015 16:00, jdaw1 wrote:
> My PostScript code has multiple instances of
> mark ... /ANN pdfmark
>
> I've just learnt that if Adobe Distiller is set to PDF/X-3:2002 (rather than my usual 'High Quality Print'), that fails. Ouch!
>
>> <PDFX ISO="15930-3:2002" COMPLIANT="false"> ... [Violation] Annotations were found inside the BleedBox, TrimBox, or ArtBox on the following pages: ... This document does not pass PDF/X-3:2002 compliance checks.
>
> Is there any way to detect within the PostScript if pdfmark /ANN is allowed? So that the PostScript will do it if it won't cause a failure, and won't if it will?
>

You can use currentdistillerparams and check the adequate parameter 
(probably /CheckCompliance or /PDFX3Check).

Here is a reference: 
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/distillerparameters.pdf

-- 

[toc] | [prev] | [next] | [standalone]


#2187

Fromjdaw1 <jdawiseman@gmail.com>
Date2015-02-23 13:05 -0800
Message-ID<7cfeca76-3762-4a08-a0f5-cca83041d799@googlegroups.com>
In reply to#2186
> You can use currentdistillerparams and check the adequate parameter 
> (probably /CheckCompliance or /PDFX3Check).

Thank you. That seems to have worked. Comments on (and improvements to) the following would welcomed. 




/SuppressANN
/currentdistillerparams where
{
	pop currentdistillerparams /CheckCompliance 2 copy known {get false exch {dup /PDFX1a:2001 eq exch /PDFX3:2002 eq or or} forall} {pop pop false} ifelse
	currentdistillerparams /PDFX1aCheck 2 copy known {get or} {pop pop} ifelse
	currentdistillerparams /PDFX3Check 2 copy known {get or} {pop pop} ifelse
} {false} ifelse  def  % /SuppressANN
/pdfmark where
{
	pop /pdfmark {dup /ANN eq SuppressANN and {cleartomark} {pdfmark} ifelse} bind def
}
{
	/globaldict where {pop globaldict} {userdict} ifelse
	/pdfmark /cleartomark load put
} ifelse  % /pdfmark where

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.postscript


csiph-web