Focal Point
[SOLVED] Graph PDF Magnification

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

July 02, 2010, 06:56 AM
Dr. Nick
[SOLVED] Graph PDF Magnification
Hi,
When producing a graph in a frame, I wish to set the magnification to a number. For example, 60%. Currently, WebFocus seems to set the magnification of a PDF display based on the contents.
Thank you,
Nick

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


WebFOCUS 7.7.03 & 8.0.7
Windows
HTML, Excel, PDF, etc.
Also, using Maintain, etc.
July 04, 2010, 05:40 PM
Waz
I am confused, Confused, is this the default size of the report in PDF or a graph in a PDF document, or a graph in an HTML Frame or IFrame ?


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!

July 07, 2010, 07:50 AM
Dr. Nick
Hi Waz,
When routing a report or graph to a PDF, the output is displayed with a magnification of 30-40%. This is very small. I wish to display the PDF output with a magnification of 60%.

How can the magnification be changed to 60%?

Hope this helps.

Thank you,
Nick


WebFOCUS 7.7.03 & 8.0.7
Windows
HTML, Excel, PDF, etc.
Also, using Maintain, etc.
July 07, 2010, 08:03 AM
Dr. Nick
Hi Waz,
If I was to open the PDF outside WebFocus, the correct syntax would append "#zoom=60". Since I am current using a button to trigger production of the report or graph, I can't figure out how to pass this option.
Nick


WebFOCUS 7.7.03 & 8.0.7
Windows
HTML, Excel, PDF, etc.
Also, using Maintain, etc.
July 08, 2010, 06:08 PM
Waz
Ah, I understand.

You want to know about the default zoom for opening a document.

I think that this has been asked before. I assume you found it, hence the option #zoom.

I don't think that we have control over the return of the PDF from an executed Fex.

You may have to put in a case with IBI.


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!

July 08, 2010, 11:51 PM
Dr. Nick
Hi Waz,
I am building a dashboard type interface that will present reports/graphs for a variety of options based on those selected. Each report/graph on the HTML page has a button and the options chosen are passed as parameters. Is zoom an option? If so, what is the syntax? If not, is there another technique, possibly javascript?
Thank you,
Nick


WebFOCUS 7.7.03 & 8.0.7
Windows
HTML, Excel, PDF, etc.
Also, using Maintain, etc.
July 09, 2010, 04:57 AM
Dan Satchell
I'm not sure if this will help in your case, but PDF report and image sizes can be altered via the StyleSheet. If appropriate, variables could be used to provide "standard" sizes for all reports/graphs.

-SET &FONT_SIZE = 12 ;
-SET &IMG_WIDTH = 6 ;
-SET &IMG_HEIGHT = 6 ;

GRAPH FILE CAR
 SUM SALES
 BY COUNTRY AS ''
 ON TABLE HOLD AS G1 FORMAT GIF
END

TABLE FILE CAR
 SUM SALES/D9
 BY COUNTRY
 HEADING
  "Sales by Country"
  " "
 ON TABLE PCHOLD FORMAT PDF
 ON TABLE SET STYLE *
  TYPE=REPORT, FONT='Arial', SIZE=&FONT_SIZE, $
  TYPE=REPORT, IMAGE=G1.gif, POSITION=(+2.75 -2.6), SIZE=(&IMG_WIDTH &IMG_HEIGHT), PRESERVERATIO=ON, $
 ENDSTYLE
END



WebFOCUS 7.7.05
July 10, 2010, 09:25 AM
Dr. Nick
Hi Dan,

Very interesting technique that I will use. Does not address the magnification directly but does provide an alternate presentation style. Will research and use style options, as you suggested.

Still searching for magnification option.

Thank you,
Nick


WebFOCUS 7.7.03 & 8.0.7
Windows
HTML, Excel, PDF, etc.
Also, using Maintain, etc.
July 12, 2010, 03:47 AM
Tony A
Nick,

Once the PDF redirection process takes hold, WF has no involvement in how the Acrobat reader add-in displays the document.

Open Adobe Acrobat and then select Edit/Preferences from the menu(s). In version 9 there are options for both "Full Screen" and "Page |Display" that might help you get your defaults. Of course, these are client end settings and would be specific to a client machine Frowner.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
July 12, 2010, 05:36 PM
Waz
Another option, that will complicate things, would be to hold the PDF document somewhere, then return a web page that opens the PDF document with the appropriate zoom.

But you will then need to clean up the PDF documents your self.


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!

July 13, 2010, 07:09 AM
Dr. Nick
Hi Tony & Waz,
I've implemented Tony's technique on my test machine and since this feature will initially be deployed to a very limited staff, this may fly butam still searching for a possible programing solution. Unfortunately, HTML output does not render the 3D graphics option properly when routed to a frame.
Thank you,
Nick


WebFOCUS 7.7.03 & 8.0.7
Windows
HTML, Excel, PDF, etc.
Also, using Maintain, etc.