How to read PDF file from the disk and print it using printer in C++/winrt/win32 app

Shyam Butani 20 Reputation points
2024-04-02T11:11:15.68+00:00

I have a PDF file stored at some location filePath, I want to read PDF and print it using printer (I have printer name). How can I achieve it in C++/winrt/win32 desktop application.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,423 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 81,726 Reputation points
    2024-04-02T13:25:19.2666667+00:00

    You can convert the PDF to bitmaps with Windows.Data.Pdf

    and then print the bitmaps silently