FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1169 : pdf export: endRecord or endRaw produces RuntimeException in 1.0.2
Last modified: 2009-02-23 05:15
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
bohnacker
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Fixed replacement version of pdf.jar
application/octet-stream
2009-02-23 05:15
3.60 KB
Description
: Opened: 2009-02-23 04:29
Processing 1.0.2, Mac Os X 10.5.6
Since Processing 1.0.2 PDF export doesn't work any more. The following code
results in a RuntimeException.
-----
import processing.pdf.*;
void setup() {
size(400, 400);
beginRecord(PDF, "everything.pdf");
ellipse(100, 100, 90, 90);
ellipse(300, 200, 90, 90);
ellipse(200, 300, 90, 90);
endRecord();
}
-----
Error message:
-----
Exception in thread "Animation Thread" java.lang.RuntimeException: No
loadPixels() for PGraphicsPDF
at processing.pdf.PGraphicsPDF.nope(PGraphicsPDF.java:613)
at processing.pdf.PGraphicsPDF.loadPixels(PGraphicsPDF.java:446)
at processing.core.PGraphicsJava2D.endDraw(PGraphicsJava2D.java:166)
at processing.core.PApplet.endRecord(PApplet.java:6730)
at pdf_test.setup(pdf_test.java:29)
at processing.core.PApplet.handleDraw(PApplet.java:1400)
at processing.core.PApplet.run(PApplet.java:1328)
at java.lang.Thread.run(Thread.java:613)
-----
Additional Comment
#1 From fry 2009-02-23 05:15
sorry about that, it's now fixed for the next release. i'm attaching a
fixed pdf.jar that you can use until that release appears. just search for
pdf.jar in your processing installation, and replace that file.
Additional Comment
#2 From fry 2009-02-23 05:15
edit
]
Fixed replacement version of pdf.jar