Hi.
You can do this by using ghostscript. I don't have a copy of PB 12.6 on this pc, but in help file there must be guidelines on how to do that. The minus of that option is that all settings that you will do on your developer pc to test that functionality should also be done in all clients pc running your application (including ghostscript installation).
Another way would be to use a distiller - printer driver on your pc. Most pc's (windows 10 - 11) do have a printer called "Microsoft Print to PDF". You could use this one or any other of your choice providing similar functionality. If you choose to use another driver then you will need to install it to all clients.
If you upgrade to a most recent version of powerbuilder you will get another option: NativePDF.
Andreas.