I am able to output document to PDF files with QPrinter, either with virtual PDF printer or the Qt's embedded PDF engine. Whole document is painted myself. It works fine with the virtual PDF printer, just as if it's a real printer. But when I set the output format of QPrinter to QPrinter::PdfFormat, the contents in the pdf file is moved right and down. The document contains Chinese charactors and some of them are wrong, seemingly caused by a wrong codec. Also I used some of the most common Chinese Fonts, all fonts are replaced by one of them.
What's the difference between the two ways? Is there any chance I can configure the Qt's PDF engine? Because I need to do batch output of PDF files I don't want the user to type the file names for each one with the virtual PDF printer, which works with no problem.
Bookmarks