Troubleshooting

<< Click to Display Table of Contents >>

Navigation:  Installation >

Troubleshooting

 

Note for Delphi Users:

 

WPViewPDF was designed to keep the loaded PDF file in memory even if the handle (window handle) of the viewing window was destroyed. The data will be released when the component is destroyed. This behaviour makes it possible to implement a docking feature.

 

To make sure the data is released when the form is closed (but not freed) call the method Clear or disable the compiler symbol ENABLE_WNDRECREATE in the file WPViewPDF3.PAS or add the compiler symbol NOWNDRECREATE to the project conditionals.

 

 

 

WPViewPDF V4 can be configured to use a different method to calculate the size for fonts which have not been provided with exact heights. (the font.height value is positive)

 

WPPDF_SetIProp(PDF.dll_pdf_env, WPPDF_UseWindowsFontMapper, 1 );

 

This will emulate the way Windows is looking for a matching font size.

 

WPPDF_SetIProp(PDF.dll_pdf_env, WPPDF_UseWindowsFontMapper, 0 );

 

With this setting the PDF engine will shrink the font, starting with the provided height, until the resulting height is equal to the height which was provided in the font structure.

 

In any case: In your text printing routines avoid positive heights for fonts. Use negative font heights for WYSIWYG text reproduction.