Skip to content

PDF export not working with Processing 4.0 beta 5 #395

Closed
@processing-bot

Description

@processing-bot

Created by: rantonse

Description

PDF export does not work with Processing 4.0 beta 5.

Expected Behavior

A PDF file with dimensions corresponding to the canvas size is expected.

Current Behavior

The dimensions of the resulting PDF file is 0 × 0.

Steps to Reproduce

import processing.pdf.*;

void setup() {
  size(600, 600);
  beginRecord(PDF, "line.pdf");
  background(255);
  stroke(0);
  strokeWeight(20.0);
  line(0, 0, width, height);
  endRecord();
}

Your Environment

  • Processing version: 4.0 beta 5
  • Operating System and OS version: MacBook Pro (16-inch, 2021), macOS Monterey 12.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions