-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Vector text only if view is in hierarchy #119
Comments
@cameron-erdogan I have the same issue, did you find a workaround? |
@racak94 sadly no. I ended up just using the pdf with rasterized text. |
any update ? |
Same question, any update on this issue? |
I found a solution. I replaced every UILabel used in the PDF with my custom subclass that overrides draw(_:in:) like this:
Here you can find the Stack Overflow thread. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm observing some weird behavior when generating PDFs. My goal is to get a PDF from a UIView with UILabels where the PDF has vectorized, searchable text, not a rasterization of text.
When I pass in a view in the hierarchy and visible on screen to
PDFGenerator.generated(by: )
, the PDF is rendered with vectorized text, but the view I passed in gets mangled as a result. If instead I create a new instance of that view and pass that in instead, the resulting PDF is completely rasterized.Any thoughts?
The text was updated successfully, but these errors were encountered: