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

PDF export not working with Processing 4.0 beta 5 #395

Closed
processing-bot opened this issue Feb 5, 2022 · 5 comments
Closed

PDF export not working with Processing 4.0 beta 5 #395

processing-bot opened this issue Feb 5, 2022 · 5 comments

Comments

@processing-bot
Copy link
Collaborator

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
@processing-bot
Copy link
Collaborator Author

Created by: benfry

Confirmed; very odd, have not been in that code. Was it behaving with beta 4 or 3?

@processing-bot
Copy link
Collaborator Author

Created by: rantonse

It has worked perfectly fine with beta 4 and 3.

@processing-bot
Copy link
Collaborator Author

Created by: jaegonlee

The size of exported pdf is 0 x 0.
The dimension of PGraphicsPDF is set by pg.setSize(w,h)(in PApplet.java), but width and height of PGraphicsPDF is not changed.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Yeah, it was a regression caused by the changes for #186.

Now fixed for beta 6.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant