Hi Marty,

i noticed that you asked for a download
link to the most recent version of the
stack "Vector to PDF":

<http://aulasdigitales.net/exportVector_v02c.zip>

Previous versions:
<http://www.geocities.com/capellan2000/vector2pdf_v02b.zip>
<http://www.geocities.com/capellan2000/vector2pdf_v02.zip>
<http://www.geocities.com/capellan2000/vector2pdf.zip>

Searching in this mail list archives,
i noticed that Monte Goulding
and Jean Baptiste (JBV) had
worked with PDF too.
<http://lists.runrev.com/pipermail/use-revolution/2003-January/012360.html>

About the method that this stack uses to export vector graphics
to pdf format, here is a quick recipe:

Use a PDF template that it's filled with the
data created from the vector graphics, images
or text. I created this template examining
several empty pdf created from diferent apps
and reading the Adobe PDF file format specifications.

This template is a small text file stored as a 
custom property of the stack. 
(In fact there are 3 templates,
one for Adobe ilustrator, two for PDF)

To create the data of every graphic,
you could use a "repeat for each"
structure and a "switch case" handler 
to create the pdf/illustrator code for every
type of graphic: oval, rectangle, line,
polygonal, curve, etc.

In RR, a vector oval graphic has
height and width, but in PDF/AI, 
a graphic shaped as an oval,
has 4 consecutive bezier lines that
recreate the shape.
(SVG and recent versions of PDF
file format allow to define ovals
and rectangles in different way)

Every type of graphic requires specific code
for this task. Look at the diferences between
the code to convert an oval and a rectangle
graphic.

After you have all vector data in a variable,
insert this data in the PDF template:

marked as &&&& in:
stream
&&&&
endstream

or in the Adobe Ilustrator template:
0 XR
*****
LB

Write the additional data that PDF
format require, like offsets of the
beginning of each section in the
document trailer and (this is important
for PDF format) replace all carriage 
return with linefeeds.
Adobe Ilustrator format does not
require offsets and trailer, so it's easier 
to write, test and debug.

alejandro
--
View this message in context: 
http://www.nabble.com/Export-to-pdf-t1185078.html#a3164272
Sent from the Revolution - User forum at Nabble.com.

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to