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

how to start new page automatically when content is full #136

Closed
hitesh-shukla opened this issue May 22, 2019 · 4 comments
Closed

how to start new page automatically when content is full #136

hitesh-shukla opened this issue May 22, 2019 · 4 comments
Labels

Comments

@hitesh-shukla
Copy link

Hi there,

How can we start new page when content is full, is there any way to create new pages automatically according to centent

@philprime
Copy link
Member

Hi,

what do you mean with "when the content is full"?
TPPDF adds page breaks automatically when the next element does not fit in a page any more

@philprime
Copy link
Member

Closed due to inactivity, please reopen if still relevant

@dsk1306
Copy link

dsk1306 commented Oct 9, 2023

Hi @philprime, could you please tell me if adds page breaks automatically also works with attributed strings? I'm currently playing around with 2.4.1 and I'm struggling to make a PDF with a bunch of attributed strings that automatically breaks to a new page when needed.

@philprime
Copy link
Member

@dsk1306 simple text and attributed text is handled internally as a PDFAttributedTextObject which converts the simple text into a NSAttributedString.

If it isn't working for you, please provide an example PDFDocument code snippet, so I can test your issue.

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

No branches or pull requests

3 participants