Jpg or pdf encoder flash

hi all,
i just wanted know is it possible to encode jpg or pdf from flash in actionscript 2 ?just like http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from -flash/ this article.please tell me if it is possible and how?
Thanks and regards

here's the code to copy and compress bitmap data:
function PixelAF(bmp:BitmapData,number:Number):Array {
    var num:Number = number-1;
    var h = bmp.height;
    // aStart = null assigned in sendDataToGatewayF when stepNum = 1;
    if(aStart == null){
        aStart = 0;
    aEnd = Math.ceil(bmp.width*num/imageSlices);
    //trace(aStart+" :PixelAF: "+aEnd);
    var pixelA:Array = new Array();
    //for (var a = 0; a<=w; a++) {
    for (var a = aStart; a<=aEnd; a++) {
        for (var b = 0; b<=h; b++) {
            var tmp = bmp.getPixel(a, b).toString(16);
            pixelA.push(tmp);
    aStart = aEnd+1;
    return pixelA;
function compressArray(orig:Array):Array {
    var compressedA:Array = [];
    var lei:Number = 0;
    for (var i = 0; i<orig.length; i++) {
        if (orig[i] != compressedA[lei]) {
            compressedA[i] = orig[i];
            lei = i;
        } else {
            compressedA[i] = "";
    return compressedA;
to create a pdf, check the documentation for blazePDF.

Similar Messages

  • Import pdf to flash?

    Hi,
    I'm trying to get a flash flip book working and I'm trying a
    few components - however none seem to be able to import pdf files
    and so need either jpgs or swf files.
    For my flipbook I need the text to be searchable, so jpg's
    out the window.
    I've tried pdf2swf, but it's output seem pretty poor - the
    swfs look fine when I view them, but when I import into flash the
    text becomes really small and loses all it's formatting.
    Is there any way to import a swf file to Flash and preserve
    it's formatting/layout? I don't know if it's something to do with
    the swf file being broken into several layers on import?
    Alternatively does anyone know a way to import pdfs to
    Flash?

    pdf is not a supported file type in flash.

  • Adobe Reader not opening PDF Portfolio - Flash player error

    I have Acrobat 9 Standard installed on my PC and I created a PDF Portfolio. Acrobat Standard can open that Portfolio just fine.
    I also have Acrobat Reader installed (11.0.2).and have Adobe Flash Player (11.7.700.169) installed. Both Reader and Flash Player work fine independently on PDF or Flash content.
    However when I try to open the PDF portfolio with Reader, I get the following Error:
    :"To view the Flash technology in this FDF file; please install this version of Flash player that supports Adobe reader and Acrobat".
    The Dialog box with the message above has a [Proceed to download page] button (which does nothing but bring up Reader with a black page), a [Learn more] button (similar behavior), and a [Cancel] button.  Both Reader and Flash are the latest versions as of today (4/16/2013).
    Any help or insight with this is appreciated.
    Thanks !
    Bruce Dana.

    Thank you.  What you suggested di the trick !
    Bruce Dana, PE, CPM
    Manager, Engineering / CADD Systems Office
    Florida Department of Transportation
    Engineering / CADD Systems Office
    605 Suwannee Street, Mail Station 69
    Tallahassee, Florida  32399-0450
    • Voice: (850) 245-1606
    Toll Free: (866) 374-3368 extension 1606   | Fax: (850) 245-1601
    • E-mail: [email protected]<mailto:[email protected]>      | Web: http://www.dot.state.fl.us/ecso
    How am I doing?  Please contact my Director, Duane Brautigam, PE -  Office of Design at:
    [email protected]<mailto:[email protected]> with any feedback.
    THINK GREEN: Before printing this e-mail please ensure it is necessary - conserve our resources!
    Pursuant to Section 119.011 (11), Florida Statutes, all electronic communications made or received by Florida’s Department of Transportation, including its officers, employees and agents, are public records.  Unless exempted under Section 119.07(6), Florida Statutes or another statute, all public records may be inspected and copied by any person desiring to do so under the supervision of the custodian of the public records.

  • JPG or PDF image in Portfolio window

    How do you remove the JPG or PDF image from the top right of a Portfolio window?
    I'm using Acrobat X10.1.1 on an iMac with Mac OS X 10.7.2

    I created a PDF Portfolio using the Wave layout. I added a few frames with a name and description.
    I do not want to delete the image, I would like to remove the small jpg or pdf logo that appears on the picture (image) in the top right hand corner. The logo appears in both the Layout Mode and the Edit Mode. When I emailed the portfolio to myself the small logo was still in the picture.
    Thanks….
    John McKee

  • Can't open PDF with flash after upgrade Reader 10.1.5 and Flash player 11.5.502.146

    We rolled out Reader 10.1.5 and Flash 11.5.502.146 [Windows 7] this week and discovered that one can not view a PDF containing Flash content.
    We receive the message "To view the Flash Technology content in this PDF file, please install the required version of Flash Player". 
    According to the Adobe Reader Blog "As mentioned in Three Common Adobe Reader and Acrobat Security Questions, unknown Flash will now be rendered by the system Flash Player (NPAPI version), when using Adobe Reader and Acrobat 10.1.5. Note: This has already been done for Reader and Acrobat 11. As stated before, this means that Adobe Reader/Acrobat users will no longer have to update Adobe Reader/Acrobat each time we update the Flash Player."
    How could we resolve the problem?

    See if anything in this topic helps: http://forums.adobe.com/thread/1136468

  • Group of documents from .jpg to .pdf?

    I need some help. I scanned 91 pages of documents and saved them in a folder on my desktop. The pages were scanned into my computer as .jpg and i need to send them as .pdf in an email. the file sizes are abnormally big too; each "picture" is about 1.7 MB! I tried to use Preview to open the .jpg and "save as" a .pdf but when i did that, it ended up turning it into a .pdf but with taking up the same amount of space. I tried to compress them but with no avail. i would have to send like 20 emails even with compressing them in groups of 5. There must be an easier way to send all of them at once, compressed, and in .pdf format. Please, can anyone help?

    Now that you mention it, I just checked the jpg and pdf I used for a test and the pdf is slightly larger.
    Even the compressed pdf I made is larger than the jpg.
    If the jpg is actually text, then unless you OCR it, it won't compress much since it is really all graphics, including the text. In the pdf format, the text is not real pdf text which is why it won't compress.
    Even zipping it does not make it smaller.
    I would say that the files are about as dense as they can get. The only way to make them smaller would be to convert them to a lower res graphic.

  • Fail to print pdf with flash(updated)

    Hi, all,
    I open a pdf with flash in adobe reader.
    I want to print it, but it doesn't get the result as what I see in adobe reader.
    It seems that the  flash has an animation, and the printer capture the image before the animation is finished.
    Did I post the discussion in the right forums?
    And if you need more information, tell me please.
    Thanks

    You asked in the correct forum, but it appears that no-one knows the answer.
    I know that there were some problems printing Flash content, but I do not know how Flash Player integrates into Adobe Reader - if it uses the installed plugin, or if it uses its own plugin.

  • Can I open reader and digitally sign pdf in flash?

    First off let me say, I have 0 experience with Adobe Flash or Adobe Air, so this may be a dumb question or I may not even be asking in the right place.  I currently have an application which uses Adobe Reader to digitally sign PDF files.  The PDFs are displayed inline within a webpage.  The user must use Adobe Reader because it needs to be FIPS 140 certified.  The issue we are running into is with browsers like Chrome and Firefox bunding their own PDF reader, it brakes our application.  I am looking for a way to force users to use Adobe Reader.  From reading on the web, it looks like this isn't really possible and we are at the mercy of the PDF plugin the user has installed.  The idea I thought of, though, would be to write an Adobe Flash application which would display the PDF.  I am hoping doing it this way, I could force the use of Adobe Reader and not the PDF plugin of the browser.  Does anyone know if this will work?  And if it does, will I have all functions of Adobe Reader available (specifically digitally signing)?

    for a web based app, you can't easily display a pdf in flash.  even for an air app (or any other platform), you can't force anyone to use adobe reader (especially, because not everyone has adobe reader).

  • Link to specific page in PDF w/ Flash

    I need a solution for linking to a specific page or location
    within a PDF from Flash. I have used the following code:
    on (release){
    getURL("myfile.pdf#page=4 ","_blank");
    Is this even possible and can anyone suggest a solution on
    how it might work?
    Thanks,
    John

    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=317300
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=326332

  • Opening a PDF inside Flash compile errors

    I'm trying to open a pdf inside flash.  I followed a tutorial online but I'm have issues with the compiler.  Here's my code:
    import flash.html.HTMLLoader;
    import flash.html.HTMLPDFCapability;
    import flash.html.HTMLWindowCreateOptions;
    if( HTMLLoader.pdfCapability == HTMLPDFCapability.STATUS_OK )
        var htmlLoader:HTMLLoader = new HTMLLoader();
        var url:URLRequest = new URLRequest( "01_Advanta2_Master.pdf" );
        htmlLoader.width = 800;
        htmlLoader.height = 600;
        htmlLoader.load( url );
    var pdfHolder:UIComponent = new UIComponent();
    pdfHolder.addChild (htmlLoader);
        addChild (pdfHolder);
    It results in these errors:
    1046: Type was not found or was not a compile-time constant: UIComponent.
    1180: Call to a possibly undefined method UIComponent.
    I've tried to import fl.core.UIComponents in the beginning but that resulted in this error:
    1172: Definition fl.core:UIComponent could not be found.
    Any help would be greatly appreciated.

    You need to have components in the library in order for them to be accessible.

  • Emailing a jpg or pdf file as an attachment

    I have been emailed both a jpg and pdf file that I want to send attached to an email. The email box pops up with the file in the attachment box, then it won't send.

    Have you upgraded to Yosemite?  Then you could send the attachment using Mail Drop.
    You can use Mail Drop to send files that exceed the maximum size allowed by the provider of your email account. Mail Drop uploads the large attachments to iCloud, where they’re encrypted and stored for up to 30 days.
    If you have an iCloud account and you’re signed in to iCloud when you click Send, Mail automatically sends the attachments using Mail Drop. Mail Drop attachments don’t count against your iCloud storage.
    If you don’t have an iCloud account, or if you’re not signed in, Mail asks you whether to use Mail Drop (select “Don’t ask again for this account” to always use Mail Drop).
    If a recipient uses Mail in OS X Yosemite, the attachments are automatically downloaded and included in your message just like any other attachment. For other recipients, your message includes links for downloading the attachments and their expiration date.
    You can turn Mail Drop on or off for an account. Choose Mail > Preferences, click Accounts, select your account, click Advanced, then select or deselect “Send large attachments with Mail Drop.”

  • Download file (*.jpg or *.pdf ) from Unix to Local PC.

    Please let me know how we can down load (*.jpg or *.pdf ) from Unix to local machine.
    How to handle these files in Opendata set ---> Graphics (not text mode.....)
    thanks a lot in advance ..:)

    Yes was able to crack it with the the Following FM's
    CALL FUNCTION 'C13Z_FILE_DOWNLOAD_ASCII' for ASCII type (.txt)
    CALL FUNCTION 'C13Z_FILE_DOWNLOAD_BINARY' for Binary (.JPG/.PDF/*.doc)
    Thanks to Luis Martinez  For gving me the initial Hint
    And Thanks to all
    Ramesh

  • Can't insert jpg or pdf files as object in ppt (icon)

    I'm trying to insert jpg or pdf files into a powerpoint. I recieved these files via email from PC users. The are saved on my Powerbook in jpg and pdf formats. When I try to insert them into a powerpoint presentation as objects (icon) I keep getting the following error message:
    The server application, source file or item cannot be found, check that the path and file name are correct or try reinstalling the server application.
    I get the same message when I try to open these files when sent to me embedded in a powerpoint. I can both insert and read word files in powerpoint, but not jpg and pdf. Any suggestions? I need to be able to do this for may job so any help is much appreciated. Didn't know what forum to put this in so hope it belongs here.
    Power Book G4 15   Mac OS X (10.3.9)  

    Hi Pamela
    I recently had to do a job in powerpoint that required inserting jpeg files. The only way I found was to use the insert menu, down to picture and 'from file' to choose the image.
    This worked every time without error for over 120 slides.
    Hope this helps

  • How to load a pdf inside flash

    I need open a pdf inside flash how I do this?

    armandix,
    > I need open a pdf inside flash how I do this?
    You can't, really. Flash Player doesn't support Acrobat.
    Specifically,
    you can't open a PDF in Flash and have it act like a PDF
    (scrollable,
    searchable, etc.). But you can certainly convert your PDF (or
    a page from
    your PDF) to an image format and import that.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Adobe pdf to Flash page turning book

    First of all apologies as this isn't strictly an Indesign itself question - more the end product of Indesign brochure query.
    Can anyone recommend a particular professional PDF to Flash page  turning book effect software. I've googled but there's a fair few out  there and not sure which to go for. Anyone recommend a software in  particular or know if any have been approved by Adobe? This is following  a request by corporate client of mine but I'm stuck on which one is  best to go for.
    Thanks
    Molly O'Moon

    eDocker is not a PDF to Flash FlipPage software, it´s more like InDesign to Flash FlipPage solution, but it´s aproved by Adobe.
    You can download trial version from Adobe Marketplace at:
    http://www.adobe.com/cfusion/marketplace/index.cfm?event=marketplace.offering&offeringid=1 7503&marketplaceid=1
    Sample Magazine (with videos, animations, slideshows etc. InDesign interactive features)
    http://www.edocker.com/_demo/edocker-online-demo/index.html

Maybe you are looking for