Focal Point
[SOLVED] Linking a PDF file

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/462100301

May 04, 2009, 08:20 AM
Shru
[SOLVED] Linking a PDF file
Hi All,

I want to know if we can link a PDF file to webfocus with the help of bookmark.

For Example - I have an HTML report with 4 different sections. At each section i have an i button. There is a PDF file which has the information of all the different sections. On click on the i buttton it should take me to the corresponding section in the PDF file.

Kindly let me know if this is a possibility in WebFOCUS and what is the method which can be used to achieve this.

This message has been edited. Last edited by: Kerry,


769 Excel,PDF and HTML
May 04, 2009, 08:28 AM
<JG>
Not a chance of doing it as you describe.

You will need a separate PDF for each section and the link on a button opens the required PDF
May 04, 2009, 08:38 AM
Shru
thanks JG Smiler


769 Excel,PDF and HTML
May 05, 2009, 04:57 PM
Waz
According to Adobe this can be done via a URL.

PDF Open Parameters

To go to a specific page, use #page={n} after the pdf document name.

e.g.http://documentation.informati...appslang.pdf#page=30


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

May 05, 2009, 10:08 PM
susannah
oh that's wicked cool to know!




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
May 06, 2009, 02:02 AM
Shru
this is awesome!!!! this is exactly what i was looking for. Thank you so much Waz Smiler


769 Excel,PDF and HTML
May 13, 2009, 06:27 AM
Shru
Hi Waz,

The suggestion you gave works perfectly fine when the output format if HTML. But when the format is PDF it is not working.It says bad value in style sheet. Let me know if there is any alternative for this

 TABLE FILE CAR
PRINT
CAR
MODEL
ON TABLE SUBHEAD
"i"
ON TABLE SET ONLINE-FMT PDF
ON TABLE SET STYLE *
  UNITS=IN, PAGESIZE=TABLOID, SQUEEZE=ON, ORIENTATION=LANDSCAPE,
  LEFTMARGIN=0.250000, RIGHTMARGIN=0.250000, TOPMARGIN=0.000000, BOTTOMMARGIN=0.000000,
$
TYPE=REPORT,
  FONT='ARIAL', SIZE=12, COLOR='BLACK', STYLE=NORMAL,
  RIGHTGAP=0.388999, LEFTGAP=0.201000, TOPGAP=0.075000, BOTTOMGAP=0.075000,
$
TYPE=HEADING,
 LINE=1, ITEM=1, COLOR='WHITE', BACKCOLOR = 'GREY', STYLE=BOLD, JUSTIFY=CENTER, WIDTH=5.35,
$
TYPE=TABHEADING,
LINE=1,
SIZE=16,
OBJECT=TEXT,
ITEM=1,
COLSPAN=8,
COLOR='BLUE',
STYLE=UNDERLINE,
TARGET='_BLANK',
URL=http://assetsprotection.target.com/AssetsProtection/Protected/APWebDocs/Documents/022009_GAPTL%20Perf%20Plan%202009.#page=4,
$
ENDSTYLE
END 



769 Excel,PDF and HTML
May 13, 2009, 07:02 AM
<JG>
quote:
022009_GAPTL%20Perf%20Plan%202009.#page=4,

Shru your file name is not valid. It's missing the file extension which means WebFOCUS cannot find the file, that is the cause of the error.
May 13, 2009, 07:11 AM
Shru
hi JG thanks for replying, but the error remains the same even after adding the extension

an%202009.pdf#page=4,


769 Excel,PDF and HTML
May 13, 2009, 07:47 AM
GamP
The error message is caused by the '=' sign.
I tried escaping it (to %3D), and that does not produce any error any more, it link to the right document, but it does not link to the desired page.
So what I did to solve this was to give the url a parameter, like so:
TYPE=TABHEADING,
LINE=1,
SIZE=16,
OBJECT=TEXT,
ITEM=1,
COLSPAN=8,
COLOR='BLUE',
STYLE=UNDERLINE,
TARGET='_BLANK',
URL=http://localhost/relnotes_768#(page=12),
$  

And for me this worked fine. It gave no error and when the link is clicked I got to the right page.

Hope this helps...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988