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

Adds PDF export #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Adds PDF export #25

wants to merge 1 commit into from

Conversation

aamaliaa
Copy link

Adds a PDF export button and a textfield to allow the user to specify a filename.

I haven't been able to figure out how to maintain aspect ratios between each of the exports, unfortunately... I guess that's next...!

@hweinberger
Copy link

PDF Exports to a White Background, washes out lines and name details.

Any way to change export to black background?

@adamthede
Copy link

@hweinberger - In order to change the background color prior to the PDF export, you need to add a background color immediately following the beginRecord statement. As follows:

within void draw(){
...
if(record){
beginRecord(PDF, "pdfs/"+input.getText());
background(40); // 40 is a dark background color
}

Hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants