If you recall, two weeks ago, I settled on a three-part conversion process. Using an AS 3 PNG encoder, I passed an NDA Signature as binary data to a ColdFusion CFC function, saved the PNG to disk. In part two of the conversion, I passed the PNG filename, created in part one, to another CFC function that converted the PNG to a SVG file. Finally, the filename of the SVG was passed to a CFC function that completed the final conversion to a PDF file.
Realizing that this three-step process was a bit inefficient, I wrote an AS 3 class for Flash-vector drawing conversion directly to a SVG. I now take the SVG and convert it directly to a PDF. By eliminating the conversion to a PNG step, the PDF contents are no longer subject to pixelation, the graphics now being vector-based.
Try It |