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 development Windows API - Win32
{count} votes

1 answer

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