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

PDF export / preserving ability to edit text

$
0
0
Hello,
I'm trying to export PDF while preserving ability to edit text – fonts should not be converted to shapes! According to docs it should work with createFont() but unfortunately I just can't seem to get it working :-(. Here is very simple example. I've tried it in 2.0b7 and 1.51. I would appreciate any help. Thanx.

  1. import processing.pdf.*;
  2. PFont f;

  3. void setup() 
  4. {
  5.   size(200, 200, PDF,"output.pdf");
  6.   background(100);
  7.   f = createFont("FreeSans.ttf",30);
  8.   textFont(f,30); 
  9. }

  10. void draw() {
  11.   fill(0);
  12.   text("Hello", 30, 60);
  13.   exit();
  14. }

Viewing all articles
Browse latest Browse all 1768

Trending Articles