We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Problem with SVG
Page Index Toggle Pages: 1
Problem with SVG (Read 612 times)
Problem with SVG
Feb 9th, 2010, 4:33am
 
hey! I'm making a program that generates a background for business cards and i've set all the type work on illustrator, exported a PDF with the guides, opened the PDF in ilustrator and saved it as a SVG so i would use it as a "top layer" in the card generator. The problem is the program runs and it sets the background but the type SVG doesn't load and i get a message saying " ignoring <clipPath> tag"

is it because when exported the pdf does all those weird cliping masks?
Re: Problem with SVG
Reply #1 - Feb 9th, 2010, 4:37am
 
Probably.
The SVG library in Processing isn't bad, but has limitations (SVG is hard to render!).
Re: Problem with SVG
Reply #2 - Feb 9th, 2010, 5:47am
 
so, i've solved the problem by simplifying the SVG. now i have other question,

Is it possible to make a Class function in a PGraphic? i mean... i have the class all set up and to call it i just make f1.desenhar();

is it possible to do somethin like;
grafico.beginDraw();
grafico.f1.desenhar();
grafico.endDraw();

?
coz i'm not being able to do this
Re: Problem with SVG
Reply #3 - Feb 9th, 2010, 9:16am
 
It is probably simpler to change the sequence to:
grafico.beginDraw();
f1.desenhar(grafico);
grafico.endDraw();

and in desenhar(), use the passed graphico PGraphics to draw on it.
Page Index Toggle Pages: 1