Menu

Print pdf file to printer in c++

blacksheep
2007-03-15
2012-09-26
  • blacksheep

    blacksheep - 2007-03-15

    How do I programatically print a pdf file to a printer without using any commercial third party libraries?

    I am using bloodshed with mingw in WinXP.

    I tried using the windows ShellExecute function with the print verb. It works, but delete function, which is after my printing function, is invoked before the file is printed. So by the time the file is actually being printed, it is being deleted already. I can put in Sleep function in between, but this will vary with diff files of diff file sizes.

     
    • blacksheep

      blacksheep - 2007-03-16

      Maybe because I dont know a single thing about it. But thanks for the tip. Its a starting point. Where would i begin to read about this?

       
    • Nobody/Anonymous

      there are MANY ways to accomplish something like this, however why don't you simply use the Win32 spooling service, so that it doesn't matter anymore whether your original file exists or not?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.