Save MultiLineView to PDF

RoboFont Forums Help / General Save MultiLineView to PDF

This topic contains 2 replies, has 2 voices, and was last updated by  nina 5 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6043

    nina
    Participant

    Sorry, me again:

    I’d appreciate a pointer on how to save vector data from a self-made MultiLineView to PDF… I noticed SpaceCenterToPDF only works on actual Space Center objects, not self-made MultiLineViews.

    Thanks,
    Nina

    #6044

    frederik
    Keymaster

    He Nina

    you can make a pdf from any “view” with:

    view = glyphLineView.getNSScrollView().contentView()
    frame = view.frame()
    pdfData = view.dataWithPDFInsideRect_(frame)
    pdfData.writeToFile_atomically_(path, True)
    

    good luck!

    #6048

    nina
    Participant

    Yay! Thanks Frederik.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.