Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : simple IPimage to PDF doesn't work

$
0
0
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:
  1. PImage img;
  2. import processing.pdf.*;
  3. void setup(){
  4.   size(500, 375, PDF, "new.pdf");
  5.   img = loadImage("15.jpg");
  6.   image(img, 0, 0);
  7.   exit();
  8. }
  9. void draw(){
  10. }

It worked! The image quality is rather poor but at least I know now how to include images in my pdf. Thanks.


Viewing all articles
Browse latest Browse all 1768

Trending Articles