Hi PhiLho,
Thanks for your reply, but I'm afraid it didn't work. I still got blank pdfs. I went back to basics and tried this code:
Thanks for your reply, but I'm afraid it didn't work. I still got blank pdfs. I went back to basics and tried this code:
- PImage img;
- import processing.pdf.*;
- void setup(){
- size(500, 375, PDF, "new.pdf");
- img = loadImage("15.jpg");
- image(img, 0, 0);
- exit();
- }
- void draw(){
- }
It worked! The image quality is rather poor but at least I know now how to include images in my pdf. Thanks.