Hi @DevO
So if you need how the print process works for a pdf file this is how it works . When an application program wants to begin using a printer, it first obtains a handle to the printer device context using CreateDC or PrintDlg. This causes the printer device driver library module to be loaded into memory (if it's not present already) and to initialize itself.
The program then calls the StartDoc function, which signals the beginning of a new document. The StartDoc function is handled by the GDI module.
The GDI module calls the Control function in the printer device driver, telling the device driver to prepare for printing.
Hope this resolves your Query!!
--
--If the reply is helpful, please Upvote and Accept it as an answer–