How can create processing pdf file on java?
in
Integration and Hardware
•
8 months ago
Hello,
I have a problem and I'm working for days.. I want to create pdf file with java.. But I could not do anything.. This is my sample processing code..
- import processing.pdf.*;
- void setup() {
- size(400, 400, PDF, "filename.pdf");
- }
- void draw() {
- // Draw something good here
- line(0, 0, width/2, height);
- // Exit the program
- println("Finished.");
- exit();
- }
- 1- Exported my procesing file
- 2- I created java class(pdfTest.Class) on my project.
- 3- I called pdfTest.Class from main Jframe
This is my Java code..
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
- pdfTest pdfObj=new pdfTest();
- }
But it didn't work..
I am waiting your solutions..
Thanks..
1