When you go to print a document, select "Microsoft XPS Document Writer" as your printer.
If you need a permanent virtual printer that appears in your "Devices and Printers" list for all applications, you can download a third-party driver. These are the most reliable options compatible with Windows 8:
Windows 8 comes with the pre-installed.
How do I retrieve "Microsoft Print to PDF" option in Windows 8.1
In Word or Excel, go to File > Export > Create PDF/XPS Document or File > Save As and select PDF from the file type dropdown.
Open any webpage, press Ctrl + P , and change the "Destination" to Save as PDF .
Many applications you already use in Windows 8 have "Save as PDF" functionality built directly into their menus, bypassing the need for a system-wide driver.