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

making a post script work on every page

New Here ,
Jul 05, 2018 Jul 05, 2018

Copy link to clipboard

Copied

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

TOPICS
Programming

Views

227

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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...

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Or... use a PDF utility.

Votes

Translate

Translate

Report

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