pdf print sequence

DevO 21 Reputation points

Please inquire about the print sequence of included in ApplicationFrameHost.exe.

If you open a photo and print using the printer connected to the actual printer through, the print operation for StartDoc - Enddoc is done in splwow64.exe.

However, if you use save as pdf when printing, we ask you which process uses the print resources (startdoc, enddoc) when you print.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,759 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,416 Reputation points

    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–

    0 comments No comments

  2. DevO 21 Reputation points

    So what application is calling CreateDC or PrintDlg when you want to select output as pdf and start using the printer?

    Actually I can't confirm that startdoc - enddoc is called from any thread.

    0 comments No comments