As of now the FWPDF class does not support the method SetSize( nWidth, nHeight )
This class supports only SetPage( nPageType ), same as TPrinter class.
The permitted page sizes are:
Code: Select all | Expand
{ { DMPAPER_LETTER, HPDF_PAGE_SIZE_LETTER, 8.5*25.4, 11*25.4 } ;
, { DMPAPER_LETTERSMALL, HPDF_PAGE_SIZE_LETTER, 8.5*25.4, 11*25.4 } ;
, { DMPAPER_LEGAL, HPDF_PAGE_SIZE_LEGAL, 8.5*25.4, 14*25.4 } ;
, { DMPAPER_A3, HPDF_PAGE_SIZE_A3, 297.0, 420.0 } ;
, { DMPAPER_A4, HPDF_PAGE_SIZE_A4, 210.0, 297.0 } ;
, { DMPAPER_A4SMALL, HPDF_PAGE_SIZE_A4, 210.0, 297.0 } ;
, { DMPAPER_A5, HPDF_PAGE_SIZE_A5, 148.0, 210.0 } ;
, { DMPAPER_B4, HPDF_PAGE_SIZE_B4, 250.0, 354.0 } ;
, { DMPAPER_B5, HPDF_PAGE_SIZE_B5, 182.0, 257.0 } ;
, { DMPAPER_EXECUTIVE, HPDF_PAGE_SIZE_EXECUTIVE,7.25*15.4, 10.5*25.4 } ;
Code: Select all | Expand
#define DMPAPER_LETTER 1 // Letter 8 1/2 x 11 in
#define DMPAPER_LETTERSMALL 2 // Letter Small 8 1/2 x 11 in
#define DMPAPER_LEGAL 5 // Legal 8 1/2 x 14 in
#define DMPAPER_EXECUTIVE 7 // Executive 7 1/4 x 10 1/2 in
#define DMPAPER_A3 8 // A3 297 x 420 mm
#define DMPAPER_A4 9 // A4 210 x 297 mm
#define DMPAPER_A4SMALL 10 // A4 Small 210 x 297 mm
#define DMPAPER_A5 11 // A5 148 x 210 mm
#define DMPAPER_B4 12 // B4 250 x 354
#define DMPAPER_B5 13 // B5 182 x 257 mm
If paper size you want matches one of these, please use the suitable
constant and use SetPage( nSize )
If you want a totally different size, please let us know the size you want (milli-metres)