Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PDF Generation and Mystery Mania
#19
The short answer is, no. The long answer is there may be a bit of a complicated workaround.

QB has a command called _PRINTWIDTH. If you are on a Windows, or maybe Mac machine, then most likely the Type 1 Fonts that pdfGen uses are built in. You could perhaps, pre-render the text in some appropriate graphics mode, and obtain the _PRINTWIDTH for each line, and interpolate the spacing using pdfSetCharacterSpacing  and/or pdfSetWordSpacing to get the desired alignment.

Normally, I think this is done on the application side. A word processor has that capability built in.

This library is just designed to do the low level lifting of building a PDF.

Code: (Select All)
' Fonts:
'Courier             Symbol
'Courier-Bold        Times-Roman
'Courier-Oblique     Times-Bold
'Courier-BoldOblique Times-Italic
'Helvetica           Times-BoldItalic
'Helvetica-Bold      ZapfDingbats
'Helvetica-Oblique
Reply


Messages In This Thread
PDF Generation and Mystery Mania - by justsomeguy - 03-01-2025, 07:17 PM
RE: PDF Generation and Mystery Mania - by bplus - 03-01-2025, 07:22 PM
RE: PDF Generation and Mystery Mania - by justsomeguy - 03-08-2025, 10:43 AM



Users browsing this thread: 38 Guest(s)