开发者

Set producer value for PDFs created by QPrinter

开发者 https://www.devze.com 2023-01-18 13:05 出处:网络
I\'m currently producing PDFs using python and PyQT. I\'d like to change the \"Producer\" value of the PD开发者_JAVA技巧F\'s document information, currently it is set to \"Qt 4.6.2 (C) 2010 Nokia Cor

I'm currently producing PDFs using python and PyQT.

I'd like to change the "Producer" value of the PD开发者_JAVA技巧F's document information, currently it is set to "Qt 4.6.2 (C) 2010 Nokia Corporation and/or its subsidiary(-ies)".

I've looked through the QPrinter reference, and nothing obvious stuck out that I could set.

How do I change the document information?


You could use pdftk to change the metadata of your PDFs:

echo "InfoKey: Producer" > producerinfo
echo "InfoValue: my program" >> producerinfo
pdftk file.pdf update_info producerinfo output newfile.pdf
rm producerinfo
0

精彩评论

暂无评论...
验证码 换一张
取 消