Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't display page numbers, when print #4

Closed
yunushkin88 opened this issue Dec 2, 2020 · 3 comments
Closed

Doesn't display page numbers, when print #4

yunushkin88 opened this issue Dec 2, 2020 · 3 comments

Comments

@yunushkin88
Copy link

Hi @dimkanovikov
Page numbers in the PagesTextEdit project are displayed perfectly, which is cool, but when I try to print a document in the output file, I usually do it .pdf doesn't display page numbers, how can fix it?

@dimkanovikov
Copy link
Owner

dimkanovikov commented Dec 3, 2020

Hello. Since in this implementation page numbers not a part of the document, but just a sort of decoration, you need to implement page numbers painting for PDF manually. Here you can find an example of how to do it manually here https://github.com/dimkanovikov/KITScenaristCore/blob/develop/BusinessLayer/Export/PdfExporter.cpp

@yunushkin88
Copy link
Author

Thanks for the answer. Do I understand correctly that in General, in Qt, you can only go this way if you need to set and print the page number in any place on the page? There is nothing more native to Qt (maybe some functions)?

@dimkanovikov
Copy link
Owner

dimkanovikov commented Dec 5, 2020

I don't know another way of how to print page numbers to pdf with Qt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants