create a new pdf file with password using QT4.3.2
i want to create a pdf file with password using QT4.3.2 , i created pdf File successfully but i need to create a password to that file am struck here please help me
my code is
QTextDocument doc; doc.setHtml("<h1>hello, I'm an head</h1>"); QPrinter printer; printer.setOutputFileName("E:\\pdf file\\file.pdf"); printer.setOutputFormat(QPrinter::PdfFormat); doc.print(&printer);
here am creating a pdf file , now i want to create a password to that file
any help is appreciated , Thanks in advance.
Not doable with Qt alone. see https://stackoverflow.com/questions/1265327/library-for-password-protecting-pdf-from-copying-editing-and-printing-not-view for ideas