DIRECT PRINT POSSIBLE in PHP????

Discussion in 'PHP' started by Ringa_php, Mar 25, 2010.

  1. #1
    Hi Guys!

    Is it possible to print the document directly without preview?Let me explain in detail..My client requirement is to print the online course certificate without previewing them,so that the endusers will not take the screenshot of the certificate which avoids misusing the certificate.

    Can anyone help on this?

    Note : I use php/mysql in my project.

    Thanks
     
    Ringa_php, Mar 25, 2010 IP
  2. Gray-Fox

    Gray-Fox Greenhorn

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    Well, I guess it's impossible because to print anything it has to pass trough the operational system printer, then there's always a way to get the document before you print it, like using PDF Creator or some other tool.
    The other forum members, please correct me if I'm wrong.
     
    Gray-Fox, Mar 25, 2010 IP
  3. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #3
    PHP/MySQL is server side, which means you are correct.

    If your users are Microsoft based users, you might want to look into an ASP solution.
     
    ThePHPMaster, Mar 26, 2010 IP
  4. ivan.kristianto

    ivan.kristianto Active Member

    Messages:
    136
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    usually i print it using javascript. i'm not sure if any serverside code to handle print jobs.
     
    ivan.kristianto, Mar 26, 2010 IP
  5. odrey

    odrey Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i agree with gray fox..
    you need to convert to pdf first.. try using some server side scripting to do this..
    hope this help
     
    odrey, Mar 28, 2010 IP
  6. odrey

    odrey Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i agree with gray fox..
    you need to convert to pdf first.. try using some server side scripting to do this..
    hope this help
     
    odrey, Mar 29, 2010 IP
  7. stOK

    stOK Active Member

    Messages:
    114
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #7
    Direct printing is possible in PHP if end-user has his printer shared over Internet.

    But the overall problem seems a bit strange.
    1) There is no way to take control over endusers. So they can use/misuse your certificate. They can simply scan legally printed certificate and "voi la".
    2) That's why I suggest send plain image instead of PDF or other kind of markup. Doing image will make editing certificate no easy than editing scanned copy. Since watermarks, if any, will be melted into image.
    3) Like I said before you can even try to print directly to end-user printer though it's unlikely user will share his printer over internet.
     
    stOK, Mar 29, 2010 IP
  8. guardian999

    guardian999 Well-Known Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #8
    You need convert to PDF.
    You can use FPDF+FPDI. ;)
     
    guardian999, Mar 29, 2010 IP
  9. merlinseo

    merlinseo Well-Known Member

    Messages:
    1,686
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    130
    #9
    via PDF only
     
    merlinseo, May 10, 2010 IP
  10. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #10
    Not Possible!!!
    Getting Hard copy is via a Physical Device Printer
    You cant change that Print Preview Provided by the Printer Drivers
    Also there is Virtual Printers which can change them into PDF's ex: nitropdf
     
    roopajyothi, May 10, 2010 IP
  11. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    #11
    use javascript
     
    gapz101, May 11, 2010 IP