Skip to main content
nikitam39738512
Participant
July 5, 2018
Question

making a post script work on every page

  • July 5, 2018
  • 6 replies
  • 343 views

Hi,

I have post that adds a feedback hyperlink on a page. The hyperlink open an email client for users to provide feedback.

However, the script works only for a page. I have to manually insert the script on every page to add the link on every page.

Can you please suggest how to update the script such that it automatically runs while generating PDF for each page?

Regards,

Nikita

This topic has been closed for replies.

6 replies

Legend
July 6, 2018

Or... use a PDF utility.

Legend
July 6, 2018

Actually, you said you have to "manually insert the script on each page", so it is possible and you know how to do it manually. So you just have to write an app or utility that automates what you do manually - or have a programmer do it.

Legend
July 6, 2018

It varies from easy (find an identiable mark in the PostScript which shows where each page it) to literally impossible (where the pages are programmatically generated).

You are modifying a program, written in PostScript. To modify a program it's necessary to understand it...

nikitam39738512
Participant
July 6, 2018

Hi,

I tried searching how to automate the process of adding a PS on each page...

can you please let me know how to do it?

Regards,

Nikita

Legend
July 5, 2018

Oh, inline data. You can't put that in a procedure. It could be rewritten, but if you're new to code I recommend just automating adding this to each page.

Legend
July 5, 2018

Your code must be executed on each page. Maybe you could use an EndPage procedure for setpagedevice.

nikitam39738512
Participant
July 5, 2018

Hi,

I am new to scripting. Can you please help me how to add it. Here is a transcript of my code.

pop pop pop pop

/FBgrXorig 0 def /FBgrYorig 0 def

/FBgrWidth 96 def /FBgrHeight 25.85 def

/FBlnkWidth 62 def /FBlnkHeight 18 def

.........................

..............

............

4e73a14e73a14e73a14e73a14e73a14e73a14e73a14e73a14e73a14e73a14e73a14e73a1fdfdfd

fdfdfdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfdfd
%%EndData