Before you can create the PDF, you have to make an XPS file on your computer.
This can be done directly in Windows, without any additional setup and takes only some seconds.
- Open your PHP file with your standard application on your computer as usual.
There go to
File -> Print or just press
(Don't worry, nothing is printed on paper!)- Choose "Microsoft XPS Document Writer" as your printer.
- Click on "OK" or "Print".
- Select a destination for your XPS file and click on "Save".
This created XPS file can be easily converted to PDF with
Online2PDF.com:
Convert XPS to PDF