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

Footer separator line #308

Closed
peterhoucll opened this issue Nov 8, 2022 · 1 comment
Closed

Footer separator line #308

peterhoucll opened this issue Nov 8, 2022 · 1 comment
Labels

Comments

@peterhoucll
Copy link

I want to put a separator line at the top of the footer before the body of the footer. but the divider is not at the top, but at the bottom.
How should I do this?
Looking forward to your reply, thanks.

my code.
let line = PDFLineStyle.init(type: .full, color: .blue, width: 1.0)
document.addLineSeparator(.footerLeft, style: line)
document.add(.footerLeft, textObject: PDFSimpleText(text: "Footer Left"))

TPPDF Environment

TPPDF version: 2.3.5
Xcode version: 14.1
Swift version: 5.2

@philprime
Copy link
Member

Hi there,

can you please try to change the order of the statements?
The footer is in a bottom-to-top order, so you should be able to add the line after the text to get to your desired outcome

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

2 participants