Skip to content

Vector text only if view is in hierarchy #119

Description

@cameron-erdogan

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions