SimplePDF icon indicating copy to clipboard operation
SimplePDF copied to clipboard

Add center text Thank you on last page

Open cloudjanak opened this issue 9 years ago • 3 comments

cloudjanak avatar Mar 29 '16 09:03 cloudjanak

@ZetrixWeb-iOS don't understand the issue, do you face trouble adding centered Thank you to the last page?

ishaq avatar Mar 29 '16 12:03 ishaq

Want add text center of page from both side

cloudjanak avatar Mar 29 '16 12:03 cloudjanak

short answer: vertical positioning is not supported. But you can simulate vertical center by adding a lot of blank lines before the text (see how the demo does it on the very first page).

long answer: Providing provision for vertical positioning in a logical way isn't trivial. This is because it would directly conflict with table of contents calculation -- the code that calculates page numbers for table of contents is going to have to be updated -- therefore I don't think it is something that can be implemented in near future. Before implementing something like this, I would want to re-architect the code.

A properly implemented pdf library should have better architecture. See ReportLab for a good example, It's in Python though.

ishaq avatar Mar 29 '16 13:03 ishaq