Skip to main content
Participant
September 21, 2018
Question

Go to previous page in postscript code

  • September 21, 2018
  • 1 reply
  • 177 views

Hello,

in my code snippet, I'm trying to create a "go back" button with a text over a rectangle that brings the user to the previous page of a multi-page ps.

here after the code:

<</PageSize [842 595]>> setpagedevice

gsave

/Times-Roman-Bold findfont

12 scalefont

setfont

newpath

10 10 moveto

(BACK PAGE) show

grestore

[/Rect [9.000 9.0000 82.00 21.0]

/Border [1 1 1 [3]]

/Color [0 0 1]

/Page WANT TO GO TO THE PREVIOUS PAGE

/View [/XYZ null null 0]

/Subtype /Link

/ANN pdfmark

Is there a way to add in the code a command or attribute to bring the user to a previous page?

Thank you in advance if you could help me!

Jop

This topic has been closed for replies.

1 reply

Legend
September 24, 2018

Look under "View destinations" in the pdfmark reference.