Hello.
I am trying to do some simple drawings and export them as pdfs so I can import them to a laser cutter. However I am getting two types of error and having looked through the forum cant find a simple answers:
Error 1 -
When I use "import processing.pdf.*;" at the start of the sketch I get :
More than one Library is competing for this sketch...
pdf (part of processing)
Extra Librarys need to be removed before ths sketch can be used.
By which I infer that the PDF library is now part of the central core of Processing so I do need this line at the start... OK so...
Error 2 -
When I remove the offending line I get: the following tirade which I believe means - put it back
Exception in thread "Animation Thread" java.lang.RuntimeException: You need to use "Import Library" to add processing.pdf.PGraphicsPDF to your sketch.
at processing.core.PApplet.makeGraphics(PApplet.java:1836)
at processing.core.PApplet.createGraphics(PApplet.java:1772)
at processing.core.PApplet.beginRecord(PApplet.java:10585)
at sketch_130228c.setup(sketch_130228c.java:24)
at processing.core.PApplet.handleDraw(PApplet.java:2241)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2140)
at java.lang.Thread.run(Thread.java:680)
I am confused. I assume I am doing this wrong? but the reference say do it this way.?
Any help would be much appreciated.
Regards
David
I am trying to do some simple drawings and export them as pdfs so I can import them to a laser cutter. However I am getting two types of error and having looked through the forum cant find a simple answers:
Error 1 -
When I use "import processing.pdf.*;" at the start of the sketch I get :
More than one Library is competing for this sketch...
pdf (part of processing)
Extra Librarys need to be removed before ths sketch can be used.
By which I infer that the PDF library is now part of the central core of Processing so I do need this line at the start... OK so...
Error 2 -
When I remove the offending line I get: the following tirade which I believe means - put it back
Exception in thread "Animation Thread" java.lang.RuntimeException: You need to use "Import Library" to add processing.pdf.PGraphicsPDF to your sketch.
at processing.core.PApplet.makeGraphics(PApplet.java:1836)
at processing.core.PApplet.createGraphics(PApplet.java:1772)
at processing.core.PApplet.beginRecord(PApplet.java:10585)
at sketch_130228c.setup(sketch_130228c.java:24)
at processing.core.PApplet.handleDraw(PApplet.java:2241)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2140)
at java.lang.Thread.run(Thread.java:680)
I am confused. I assume I am doing this wrong? but the reference say do it this way.?
Any help would be much appreciated.
Regards
David