Focal Point
[SOLVED] Automatically fit PDF report on page?

This topic can be found at:

October 03, 2012, 02:02 PM
JC Zhu
[SOLVED] Automatically fit PDF report on page?
Is there a way to set a report to be exported to a single page in PDF? That is, if the report is too wide to fit on a normal A4 page, I'd like it to be automatically zoomed out so that the whole report becomes small enough to git in a single page.

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

WebFOCUS 7.7.3
Windows, All Outputs
October 03, 2012, 03:28 PM
Mighty Max
I don't know of any feature to automatically fit a pdf report on one page. Use LANDSCAPE orientation, WRAP on your columns, and set the values of LEFTGAP and RIGHTGAP. But if you have like 20 columns to display its going to be hard to fit the report in one page.

WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
October 03, 2012, 03:35 PM
Also you can reduce the size of the font to gain more space.

And adjust your column headings
October 03, 2012, 04:57 PM
You might want to look into using

The default is "LETTER", but there are a whole list of other options. One of my first clients INSISTED on over 25 columns on one report. After I sent it as font size 2 on a size=d, he finally got the message when he tried to print it.

Unless the user notices and changes it, the pdf reader print functionality will automatically shrink the output to fit on 8 1/2 x 11.

Totally unreadable, but all the columns were there :-)

Robert F. Bowley Jr.
TaRa Solutions, LLC

In WebFOCUS since 2001
October 03, 2012, 05:58 PM
JC Zhu
Thanks to all for your reply. I came to the same conclusions and my current solution is the same as Robert's suggestion.

WebFOCUS 7.7.3
Windows, All Outputs
October 03, 2012, 06:13 PM
We have in the past created a loop to produce the report, then test the &FOCERRNUM, if the report panelled, then reloop and change the page size/orientation.

You can go to extrememly large page sizes.


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!

January 11, 2016, 07:35 AM
Ricardo Augusto

I Wish I could learn how to fit a compound pdf report.


WebFOCUS 8.1.05 / APP Studio