Skip to main content
Participating Frequently
July 23, 2011
Question

Rotating Hyperlink border

  • July 23, 2011
  • 1 reply
  • 2721 views

I am trying to rotate an object and its hyperlink boundary together. I use a command like rotate 10 but it only works on the object, not its boundary.

This topic has been closed for replies.

1 reply

Mr__Horton
Inspiring
July 25, 2011

Please include at least the segment that contains the link and the object with your attempt at rotation.

NaarkhooAuthor
Participating Frequently
July 25, 2011

%!PS-Aobe-3.0

%%
% If pdfmark is defined, use it (for hyperlinks & other pdf-not-postscript features)
% otherwise give pdfmark a null definition so that we don't get any errors.

/pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse

%
%%

%%
% Document metadata

[ /Author (A clutch of disembodied fingers)
/Title (Aspects)
/DOCINFO pdfmark

%
%%


%%
% A real drawing - an HSBC mark

newpath

100 100 moveto
100 100 rlineto
-100 0 rlineto
100 -100 rlineto
closepath fill

%
%%

%%
% A real hyperlink
rotate 10
[ /Rect [100 100 200 200]
/Border [16 16 1]
/Color [0 0 1]
/Action << /Subtype /URI /URI (http://www.google.com) >>
/Subtype /Link
/ANN pdfmark

showpage

%
%%

%%
% A link to another point in this document

% First an icon
newpath
300 600 50 0 360 arc
fill

% then a link


[ /Rect [250 550 350 650]

/Border [16 16 1]
/Page 1
/View [/XYZ 50 250 null]
/Subtype /Link
/ANN pdfmark

showpage
%
%%

----

could be an example code.

Participating Frequently
July 25, 2011

note you need e.g. 10 rotate verses rotate 10.

With gs converting to PDF the rectangle did not use the rotate but did use scale and translate if added which seems inconsistent.