ÓÃFlexµ÷ÓÃSWF²é¿´PDF
ÓÐʱºòһЩ×ÊÁÏÖ»Äܸø±ðÈË¿´£¬Èç¿É´òÓ¡µÄÎĵµÈçDOC£¬PDF£¬µ«²»ÄÜÈÃÆäËûÎÞȨÏÞµÄÈËÁí´æ»òÕß´òÓ¡£¬ÌرðÊÇweb°æµÄÎļþ¹ÜÀíÀàµÄϵͳ£¬×ܻῼÂǵ½Õâ¸öÎÊÌâ¡£µ±ÓÃIEÖ±½Ó´ò¿ªpdfµÄʱºò£¬¾¡¹Ü¿ÉÒÔÆ£±ÖIEµÄÁí´æΪ£¬µ«Êǵã»÷PDFÎļþµÄʱºò£¬ÔÙ°´F8µÄʱºò£¬PDFµÄÔĶÁÆ÷È磨adobereader£©»áÏÔʾToolsBar£¬ËùÒÔÖ±½Ó´ò¿ªpdfòËÆÐв»Í¬£¨Ä¿Ç°ËùÖªµÀµÄ£©¡£µ±Ê±Ò»Ìýµ½Õâ¸öÐèÇóÁ¢Âí¾ÍÏëÓÃswing£¨ÒòΪÎÒÖ»¶®Ò»Ð©swing£©£¬°Ñpdfת»»³ÉͼƬ£¬È»ºóÿһҳ¶ÔÓ¦Ò»ÕÅͼƬÏÔʾ£¬µ«ÊÇÂíÉϸø·ñ¶¨ÁË£¬µÚһת»»³öÀ´µÄͼƬ²»ÇåÎú£¨ÎÒÄ¿Ç°ËùÁ˽âµÄ£©¶øÇÒÕâͼƬ·Å´óËõСµÄЧ¹ûÒ²²»ºÃ¿´£¬µÚ¶þ²»Ï뻨ʱ¼äºÍ±ðÈËÈ¥ÕùÂÛswingÂýµÄÎÊÌâ¡£
¸ÕÇɽøÒ»¼Òй«Ë¾Ã»Ê²Ã´ÈÎÎñ£¬ÔÚ¿´flex£¬¾ÍÏëÄܲ»ÄÜ°ÑPDFת»»³ÉswfÄØ£¿ºÃ£¬ÂíÉÏgoogle£¬½á¹û»¹ÕæÕÒµ½ÓÐÕâôºÃµÄ¶«¶«SWFTOOLS£¬Õâ¿î¶«Î÷ÊÇÀÏÍâÓÃcдµÄ£¬»¹ÊÇ¿ªÔ´µÄ£¬¹»Ç¿£¡ËüÓкܶ๦ÄÜ°üÀ¨PDF2SWF£¬SWFCombine£¬SWFStrings£¬SWFDump£¬JPEG2SWF£¬PNG2SWF£¬GIF2SWF£¬WAV2SWF£¬AVI2SWF£¬Font2SWF¡£ÔÚÕâÀïÎÒÃÇÖ»ÐèÒªPDF2SWF£¬¹ØÓÚPDF2SWFµÄÃüÁî´ó¼Ò¿ÉÒԲ鿴ËûµÄ°ïÖúdocumentation£¬EÎIJ»ºÃµÄ¿ÉÒÔ¿´¡¶ÈçºÎ將PDF轉換³ÉSWF¡·£¬Õâ¸ö¶«Î÷ÊÇ°ÑpdfµÄÿһҳת»»³ÉswfµÄÿһ֡£¬ÕâÑùµÄ»°ÓÖ¿ÉÒԺܺõĽâ¾ö·Ò³¹¦ÄÜ¡£°²×°ºÃ¾Í¿ÉÒÔÓÃÀ´²âÊÔÁË¡£È»ºóÓÃcmd½øÈëµ½°²×°µÄĿ¼Ï£¬Ëæ±ãÕÒÒ»·Ýpdf½øÐвâÊÔ£¬ÈçÏ£º
ͼƬÖГ-o”µÄÄǸö²ÎÊý¾ÍÊÇÖ¸µãÉú³ÉµÄswfµÄÃû³ÆºÍ·¾¶£¬ÕâÑù¾ÍÄÜת³Éswf,¶øÇҷdz£ÇåÎúºÍpdfÎÞÒ죬¼òµ¥°É~
ÕûºÏÔÚjavaÀïÃæÒ²¼òµ¥£¬Ö»ÒªÒ»¸öÓÃRuntime.getRuntime().exec()¾ÍÐУ¬ÈçÏ£º
package kissjava.pdf;
/** *//**
*@author kissjava;
*/
import java.io.IOException;
public class PDFToSWF {
public static void main(String[] args) throws IOException{
Process process = Runtime.getRuntime().exec("d:\\Program Files\\SWFTools\\pdf2swf.exe -o \"e:\\test.swf\" -t \"e:\\flexBinding.pdf\"");
System.out.println("sucess!!!");
}
}
ÕâÑùµÈÉú³ÉÁËswf£¬¾Í·¢¸ö֪ͨ¸æËß¿Í»§¶Ë¿ÉÒÔµ÷ÓÃÕâ¸öswf¡£
µ«Êǵ±Ð´ºÃmxmlºóÈ´bugÒ»´ó
Ïà¹ØÎĵµ£º
¸ÅÒª
µ±ÎÒÃǼÓÔØÍⲿswfʱ£¬±ØÐëÒªÁ˽âÓ¦ÓóÌÐòÓò(Application Domain)¡£´ÓAdobe¹Ù·½ÎļþÖУ¬ÎÒÃÇ¿ÉÒÔµÃÖªÓ¦ÓóÌÐòÓòÄܹ»°Ñ´¦ÓÚͬһ¸ö°²È«Óò(Security Domain)ÖеÄÀà·ÖÀ뿪£¬ÕâÑù¾Í¿ÉÒÔÈÃÒ»¸öÀàµÄ¶à¸ö¶¨Òå¹²´æ£¬»òÊÇÈöà¸ö×ÓÓ¦ÓÃÀ´¹²Ïí¸¸Ó¦ÓõÄÀඨÒå¡£¼òµ¥µãÀí½â¾ÍÊÇÓ¦ÓóÌÐòÓòΪÀඨÒåÌṩÁË·ÖÇø¹¦ÄÜ¡£
Ó¦ÓóÌÐòÓò
Ò»¸ ......
ÕâÀï·ÖÁ½ÖÖÇé¿ö£¬Ò»ÖÖÊÇÊý¾ÝÔ´ÔÚMXMLÎļþÖУ¬È磺
<mx:XML id="treeXML"
format="e4x">
<root>
<node label="֪ͨͨ¸æ¹ÜÀí"
data="0">
......
Ê×ÏȽ¨Á¢²å¼þÎļþ´æ·ÅĿ¼£º
D:\eclipse_plugins\flex3\eclipse\features
D:\eclipse_plugins\flex3\eclipse\plugins
ÒÔÉÏ·¾¶¸ù¾Ý±¾»úʵ¼ÊÇé¿öÈ·¶¨
È»ºó°ÑFlex Builder3 ÖеÄÎļþ¿½±´µ½¶ÔӦĿ¼Ï£º
D:\IDE\Flex Builder 3\features\com.adobe * -> D:\eclipse_plugins\flex3\eclipse\features
D:\IDE\Flex ......
1.Ç°¶ËflexµÄ¶ÔÏóºÍjava¶ËµÄ¶ÔÏóÃû×ÖÒªÒ»Ö£¬java¶ËµÄ¶ÔÏó±ØÐëÐòÁл¯£¬·ñÔòÎÞ·¨±»flex¶Ëµ÷ÓÃת»¯
javaºǫ́´«»ØµÄlistÀï±ßµÄ¶ÔÏ󣬱ØÐëflex¶ËÒ²Óд˶ÔÏ󣬶øÇÒÁ½¸ö¶ÔÏóµÄÊôÐÔÒªÒ»Ö£¬·ñÔò£¬²»Äܻص÷
2.»Øµ÷º¯Êý²»Æð×÷Óã¬ÓпÉÄÜÊÇÒòΪ»Øµ÷º¯ÊýÃû×ÖÒýÆðµÄ
flex´Ójava¶ËÈ¡¶à¸ölist·â×°µÄ¶ÔÏóʱ£¬¶Ô¸÷¸ödatagridÒªÓÃÊý¾Ý° ......
flexÈýÖÖÁ¬¼¶·½Ê½:
ÄÚÁª£º<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="var codetxt:Text=new Text">
</mx:Application>
¼¶Áª£º<mx:Application xmlns:mx="http: ......