FitToPage Property: Usage Tips
This article discusses the WebGrabber FitToPage property and provides details on its effects on the output PDF.
How the FitToPage Property Works
When you set FitToPage = True, and the HTML content is larger than will fit in the PDF page, the content will get cut off. Essentially, the PDF is one page that is as long and as wide as the HTML content. If the PDF height and width are set to "0". ("0" is "Auto". Default is 11 and 8.5, respectively) WebGrabber sizes the PDF page to fit the HTML content.
When you set FitToPage = False, you are telling WebGrabber to size the content to fit in the parameters of the default PDF width and height (8.5” x 11”).
Additionally, the PDFWidth and PDFLength properties have an effect on the appearance of the PDF.
Appearance When Using FitToPage = True
This section discusses issues with appearance and provides the suggested values for optimal appearance when using FitToPage = True.
Content on Right Side Appears Cut Off
If you are using FitToPage = True and the content is lost off the right side of the PDF page, it is due to setting PDFWidth to a value other than 0.
Here is an example of a conversion with FitToPage = True with PDFWidth = 5 and PDFLength = 0. Note that the content to the right side is "chopped off".
All Content on One Page (Optimal Appearance when FitToPage = True)
Appearance When Using FitToPage = False
Large Amount of White Space
Content is Sized to the Default PDF Page Dimensions (Optimal Appearance when FitToPage = False)