Skip to main content
Participant
January 18, 2013
Question

SWF to PDF conversion

  • January 18, 2013
  • 2 replies
  • 26667 views

I have been searching for tools with an API or CLI that can programmatically automate assembly of SWF files into a vector-based format and then export the result as a report into a PDF document.

The needed capability will combine hundreds of individual .SWF files representing 2D-view parts, with a larger .SWF file representing the body of an object into which these parts will be installed.

I believe I can use SWFTools (SWFCombine) to assemble the part images and combine them with the body SWF image.

I need to find a tool that can programmatically output the vector-based SWF image in a PDF document as part of a report.

It is not clear to me whether any Adobe product is capable of performing any of the above functions programmatically.

If necessary or appropriate, conversion from SWF to SVG or another vector-based format will be considered prior to creating the PDF document.  The key challenge here is automation of the process.

All information about such a programmatic capability, either Adobe's or otherwise, will be appreciated!

This topic has been closed for replies.

2 replies

January 31, 2013

You can produce a report in PDF format with any number of SWF files added using LaTeX and the media9 package. The LaTeX input is a text file (ASCII) providing the content and structure, which could be generated automatically (Perl, PHP whatever) if you don't want to write it by hand. LaTeX does the 'pretty-printing' (layout according to typographic rules).

See media9 documentation on CTAN http://mirrors.ctan.org/macros/latex/contrib/media9/doc/media9.pdf

P_DportAuthor
Participant
January 23, 2013

It looks like a forum administrator moved this into the Acrobat SDK forum topic without bothering to post a reply indicating the relevance of this move from the CreateSWF forum topic.

I am not aware that the Adobe SDK provides any tools for opening SWF or SVG files for export into a PDF file.

Could someone post a link to relevant information about how Adobe or other products could be useful for this purpose?

lrosenth
Adobe Employee
Adobe Employee
January 23, 2013

That is correct, we don't support conversion of SWF to PDF.

However ,you can embed a SWF into a PDF and it will play.

P_DportAuthor
Participant
January 23, 2013

I speculate that Flash Actionscript could be used to load swf files, combining them with a master border image swf in the proper positions, rotated and sized appropriately, and then save the result as a single large .swf file.  If the Flash runtime cannot do this, then SWFTools SWFCombine.exe could do it.  Then perhaps XXXXXX can be used to automate embedding the final SWF into the PDF.  If anyone can think of any other way to do it, even if it would be more cumbersome, that would be helpful just so that I can document a potential alternative approach.