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

Shyam Butani 355 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,772 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,191 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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.