Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use dvips and ps2pdf and want to add something (Properties) to the page resource dictionary. I know how to add something to the documents catalog:

\special{ps: mark {Catalog} <<
... what I want to add ...
\>> /PUT pdfmark}

I know under xelatex @resources can be used for the page resource dictionary and @catalog for the catalog. But with dvips and ps2pdf it seems that {Resources} can not be used.

But how can I add something to the page resource dictionary using dvips and ps2pdf?

share|improve this question
add comment

1 Answer 1

\special{ps: mark {ThisPage} <<
  /Resources <<...>>
>> /PUT pdfmark}

Unfortunately, there is no built-in deeper-level named object than {ThisPage} available with pdfmarks. So you can only overwrite/create a page resource dictionary rather than add something to it. Overwriting the resources dictionary of the page is dangerous as it may lead to corrupt PDF.

However, if you insert XObjects previously created with BP&EP or NI pdfmarks into the page using the SP pdfmark, those are automatically added to the page resources.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.