It works for me in Processing 1.5.1 and 2.0b7 on WinXP. The problem may be your font.
I can select the text in Adobe Reader and also edit it in Adobe Illustrator CS6.
Adapted Code
I can select the text in Adobe Reader and also edit it in Adobe Illustrator CS6.
Adapted Code
- import processing.pdf.*;
- void setup() {
- size(200, 200, PDF, "output.pdf");
- textMode(MODEL);
- background(100);
- textFont(createFont("Arial", 30), 30);
- }
- void draw() {
- fill(0);
- text("Hello", 30, 60);
- exit();
- }