how to buy desyrel online without a perscription, so buy accutane cash on delivery Kitchener, so buy cheap norvasc online without a prescription, so clomid online prescription, so buy online plavix rxs, so order flagyl no scams, so pharm-06-08, so cheapest valtrex online in georgia, so buy cheap lipitor online, so paxil online doctors, so cheap propecia saturday delivery, so buy baclofen online overseas, so nexium online prescription, so premarin no script required express delivery., so overnight shipping for zithromax, so purchase inderal without prescription to ship overnight, so diflucan ordered online without rx, so buy hydrochlorothiazide online without a prescription and no membership, so cipro buy online, so u.s. pharmacies for zovirax without rx, so buy lasix cheap overnight, so buy wellbutrin online without a perscription, so purchase online prozac without rx, so bactrim 800 160, so retin-a - where to order retin-a a, so neurontin online ordering, so cod shipped doxycycline, so buy arimidex online without prescription, so
zyprexa no prescription next day delivery, but a prilosec cod saturday delivery, but a buy elavil on line no prescription, but a buy no prescription prevacid, but a buy levaquin cod next-day fed ex, but a effexor interactions, but a pravachol cod shipping, but a buy atarax in taiwan, but a cymbalta overnight us delivery, but a buy zyban online - zyban no prescription required, but a online us pharmacy allegra, but a buy in online uk celebrex, but a lexapro online delivery, but a buy generic buspar no prescription, but a online zyrtec buy, but a generic zoloft less effective, but a cheap lisinopril next day, but a topamax online overnight, but a how to get a cephalexin online now, but a zocor without a prescription canadian, but a fosamax online cash on delivery, but a celexa free overnight fedex delivery, but a purchase prednisone without rx needed, but a purchase zyloprim meds, but a get online accupril with no rx, but a aciphex online consultant, but a augmentin overnight with no rx fedex shipping visa mastercard accepted, but a cheap flomax for sale with no prescription required, but a order seroquel online no membership overnight, but a buy glucophage cheap lloydminster, but a zanaflex in vanuatu, but a
accepted cod tenormin, as purchase prednisone same day, as online trazodone, as , as buy glucophage online discount louisiana, as buy online rx naprosyn without, as protonix k, as low price deltasone without prescription, as ampicillin doctor consult, as cheap lopressor for sale with no prescription required, as , as brand robaxin generic best price albuquerque, as nolvadex with codeine, as buy effexor xr online overnight, as , as buy aciphex online no membership, as inderal free overnight fedex delivery, as pravachol saturday delivery cod, as , as buy microzide cod next day fed ex, as purchase online prescription proscar, as zantac without prescription mexico, as cod only nizoral, as purchase crestor, as , as claritin no rx fed ex, as elavil online without a prescription, as no prescription biaxin saturday shipping, as , as buy atarax cod delivery, as overnight abilify without a prescription, as uk order erythromycin, as

Import existing PDF documents in AlivePDF!

A few days ago, I posted a little poll about adding templates support in AlivePDF, yesterday I was browsing the web and came across this post from Gonzalo Huerta-Canepa. Gonzalo ported the great FPDi libray, which allows you to import an existing PDF document and use it as a template, which is very interesting and a much request feature. Yesterday night, Gonzalo joined the AlivePDF team, his AlivePDF extension will be added in the official AlivePDF trunk, as usual the library is extending the core PDF class, which means that this will not impact the core PDF class therefore, this will not add extra size to the core PDF engine. So feel free to use it or not, no tight coupling here. I hope you guys are excited about this AlivePDF extension!

Comments 31

  1. Loic wrote:

    Cool, nice plugin improvement =)

    Anyway, I tried Gonzalo’s extension few days ago but it seems to work for AIR Application only due to “File” and “Filestream” class use. Is there any way to use the PDF template plugin in a Flex app ?

    Thanks for your great job, reports generation is a big challenge in web app

    Posted 20 Oct 2009 at 9:57 am
  2. David wrote:

    Awesome !!. been using swf converted into bitmap to insert into pdf. But if this could somehow preserve the vector information that would be massive !

    Posted 20 Oct 2009 at 9:18 pm
  3. Lach wrote:

    This sounds cool. Could you explain a bit more about what is meant by PDF templates? Could I design a document layout in, say, InDesign, render it out to a PDF, and then inject values into various text / image cells using AlivePDF? Something like that would be awesome indeed.

    Posted 21 Oct 2009 at 1:45 am
  4. Marc Baiges Camprubí wrote:

    Great news!

    I’d wish to be able to inject JavaScript handlers on PDF files that don’t have them when loading PDF’s in AIR, to allow navigation from my AIR/Flex interface.

    Hope this merge between Gonzalo’s approach and AlivePDF API will be the definitive solution!

    Posted 24 Oct 2009 at 11:13 am
  5. Eok Ngo wrote:

    I also agree with Loic, this feature would be excellent if it supported a URLStream for web based applications.

    Excellent addition Thibault!

    Posted 27 Oct 2009 at 2:06 am
  6. mitesh wrote:

    Hii,
    AlivePDf is great tool for working with PDf,i am really excited and happy to work on it.But since i am getting some errors while importing a PDF i am not able to use this brilliant library please help me out :(
    The error i get is

    “ReferenceError: Error #1069: Property 1 not found on Number and there is no default value.
    at cl.huerta.pdf::PDFParser/pdfReadValue()[C:\Documents and Settings\deepti\My Documents\Flex Builder 3\AlivePDFTemplate\src\cl\huerta\pdf\PDFParser.as:509]
    at cl.huerta.pdf::PDFParser/pdfResolveObject()[C:\Documents and Settings\deepti\My Documents\Flex Builder 3\AlivePDFTemplate\src\cl\huerta\pdf\PDFParser.as:625]
    at cl.huerta.pdf::PDFiPDFParser/_getPageContent()[C:\Documents and Settings\deepti\My Documents\Flex Builder 3\AlivePDFTemplate\src\cl\huerta\pdf\PDFiPDFParser.as:192]
    at cl.huerta.pdf::PDFiPDFParser/_getPageContent()[C:\Documents and Settings\deepti\My Documents\Flex Builder 3\AlivePDFTemplate\src\cl\huerta\pdf\PDFiPDFParser.as:200]
    at cl.huerta.pdf::PDFiPDFParser/getContent()[C:\Documents and Settings\deepti\My Documents\Flex Builder 3\AlivePDFTemplate\src\cl\huerta\pdf\PDFiPDFParser.as:173]
    at cl.huerta.pdf::PDFi/importPage()[C:\Documents and Settings\deepti\My Documents\Flex Builder 3\AlivePDFTemplate\src\cl\huerta\pdf\PDFi.as:142]“

    Posted 27 Oct 2009 at 2:35 pm
  7. Marc Baiges Camprubí wrote:

    is there any schedule about this feature being released or checked in in the project source?

    thanks,

    Marc Baiges Camprubí

    Posted 02 Nov 2009 at 11:36 pm
  8. Ted wrote:

    Very curious about this one….will it maintain code and function in the original pdf? For example, 3D content embedded in pdf’s with interactive controls? I’d be happy to send you a pdf to mess with if you like.

    Posted 03 Nov 2009 at 5:15 pm
  9. Gonzalo wrote:

    Wow…many posts…sorry for late reply, but I am finishing my thesis proposal, so I have been a little bit busy.
    Today I am changing the license of my extension to MIT’s, so it can be merged into AlivePDF, and then I will retake the work on it.

    To Loic: I can try to create a different version for flex. Unfortunately there is no such thing as reflection in actionscript, so I need to import the used libraries, therefore there cannot be a pure version that runs on both environments.

    To Lach: that’s exactly what you can do using a template ^^

    To David and Ted: please send me cases so I can try to keep the format consistent

    To mitesh: this happens when the document contains tokens that are not compatible with the version of PDF that I am using. Please send me your file to try

    If you have any other doubt do not hesitate to contact me.

    –Gonzalo

    Posted 07 Nov 2009 at 12:24 pm
  10. dasaint_gray wrote:

    hi is there any sample application how to use the extension? thank you

    Posted 10 Dec 2009 at 9:55 am
  11. Satrya Fajri wrote:

    Hi, I think this is a very good extension, but it’s not usable in Flex application.

    Can you please make this extension usable in Flex application? I’d love to use it in my application…

    Posted 23 Dec 2009 at 3:19 pm
  12. jeff wrote:

    Gonzalo – what is the time frame for supporting templates in flex application?

    Posted 11 Jan 2010 at 7:36 pm
  13. patrick wrote:

    please help…i am trying to use alivepdf in flash cs3…when i publish the file, it is a lot smaller than the original swf demo file…and when i view the generate button swf file…it just flashes…

    what am i doing wrong? what is missing from the published swf file?

    Posted 20 Jan 2010 at 7:42 pm
  14. Hank wrote:

    hey gonzales,
    sounds great to use an existing pdf as a template! ..but will the “import-process” cause a conversion so that a vector graphic can get “lost”?
    thx for a reply

    Posted 17 Feb 2010 at 1:51 pm
  15. Hank wrote:

    Hey,
    …unfortunately i have problems importing a pdf-file as i get the following error message: “Error: Trailer keyword not found after xref table”
    Please please help :)
    best
    hank

    Posted 18 Feb 2010 at 11:47 am
  16. Hank wrote:

    ahh…the pdf should be a flattenend one.. :) in this way i don`t get an error

    Posted 18 Feb 2010 at 7:17 pm
  17. Alan wrote:

    Hey whats up people, there is a bug with the new release of AlivePDF and the FPDFi, this is the error:

    VerifyError: Error #1053: Illegal override of addTextNote in cl.huerta.pdf.PDFTemplate.

    at flash.display::MovieClip/nextFrame()
    at mx.managers::SystemManager/deferredNextFrame()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:319]
    at mx.managers::SystemManager/preloader_initProgressHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2945]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::Preloader/timerHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:398]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

    Posted 26 Feb 2010 at 11:10 pm
  18. Matt wrote:

    For the life of me I cannot figure out how to get this working in Flash CS4:

    * Nothing obvious in your online API docs that stand out as related to this

    * Gonzalo’s zipped source is corrupted so I don’t know which classes to import

    * Where is his extension in the trunk? How do I use it?

    I’ve noticed there’s not much info for Flash users on how to use this extension or AlivePDF in general. I figured out that I needed to put the AlivePDF SWC in my $config/libs folder (though I still get a “no definition” error when trying to do a wildcard import like “import org.alivepdf.*;”). Can someone please shed some light on how this great functionality can be used for old-school AS2 people like me that aren’t 100% familiar with the As3 way of life? Thanks.

    Posted 09 Mar 2010 at 9:31 am
  19. Kasspars wrote:

    This is VERY VERY raw version!

    Posted 05 Apr 2010 at 9:05 pm
  20. Deborah Short wrote:

    Gonzalo,

    Any update on when the PDF Import library will be available for Flex apps? I’ve been going through all the posts and see alot of Flex developers making a similar request. I’ve got a Flex app that would benefit tremendously from the extension. Thanks in advance for your update.

    Posted 07 Apr 2010 at 8:33 pm
  21. lnexus wrote:

    Has this been added to the AlivePdf library yet? I can find it in the trunk

    Posted 21 May 2010 at 8:29 am
  22. Raj R wrote:

    I get the same issue as pointed out by Alan. Is there a way to fix this ??

    Alan wrote: –>

    Hey whats up people, there is a bug with the new release of AlivePDF and the FPDFi, this is the error:

    VerifyError: Error #1053: Illegal override of addTextNote in cl.huerta.pdf.PDFTemplate.

    at flash.display::MovieClip/nextFrame()
    at mx.managers::SystemManager/deferredNextFrame()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:319]
    at mx.managers::SystemManager/preloader_initProgressHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2945]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::Preloader/timerHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:398]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    Posted 26 Feb 2010 at 11:10 pm
    ->

    Posted 09 Sep 2010 at 11:13 am
  23. Robert M. Hall wrote:

    Was able to get this to work rather well today with the latest SVN checkout and AlivePDF 1.5RC

    One bug I found in cl.heurta.pdf.PDFParser.as – the one mentioned above by Mitesh:
    eferenceError: Error #1069: Property 1 not found on Number and there is no default value.

    Line 512 in the lastest SVN checkout:

    length = tmp_length[1][1];

    I replaced with the following try/catch:

    try{
    length = tmp_length[1][1];
    }
    catch (errObject:Error)
    {
    length =this.actualObj[1][1];
    }

    This seems to fix things – the previous if/then statements before it for whatever reason werent finding expected values – so this at least got it to work for me – perhaps someone more familiar with PDFi could dig a bit further. In any case it works well.

    Also the bug about the illegal override – don’t use the SWC from the original post or the source – use the latest 1.5rc AlivePDF SWC, and use the source for PDFi from the latest SVN checkout and you should be good – I had the same errors as well, and once I switched to those it went away also.

    Posted 10 Feb 2011 at 4:14 pm
  24. crookedspoon wrote:

    Hi,
    As Robert Hall indicated, I tried to combine the latest SVN exports from AlivePDF (swc) and PDFi (source). I’m still getting dozens of compiler errors. The signatures from plenty of methods aren’t compatible anymore (Incompatible override).
    Are these classes still supposed to work together?

    thanks for your feedback

    Posted 04 Apr 2011 at 4:27 pm
  25. Łukasz Wilk wrote:

    I tried to do like you said but I’m still getting illegal override error. Could you send me or upload somewhere the source code of AlivePDF and FPDi libraries that you use? I use custom modifications of AlivePDF library to display polish characters, so I’m in desperate need of source codes. I would be grateful for any help.

    Regards
    Lucas

    Posted 06 Apr 2011 at 8:51 am
  26. rahatjaan wrote:

    I have an online Editor built in Flex I use Alive PDF to save the work in PDF. I have the canvas which contains flex components like text and images then I take the snapshot of the canvas and give these bytes to alive pdf like

    printPDF.addImageStream(image.data, ColorSpace.DEVICE_GRAY, resize,0,0,p.width,p.height);

    I need only Gray Channel in my Image. But it outputs an image with RGB Channel. If I use embed image and give the path to the image then it outputs correctly with gray channel. but In memory image does not support gray channel.

    Can you help me?

    Posted 18 Jul 2011 at 8:51 am
  27. jgibes wrote:

    Gonzalo – I haven’t seen any updates for a flex version. Any idea if you will be supporting templates in flex application?

    Posted 21 Jul 2011 at 5:50 pm
  28. Mario Cadiz wrote:

    I’ve got the same error too.
    Platform:Win Vista / Eclipse Builder 3
    Please advise, Thank you Gonzalo.

    VerifyError: Error #1053: Illegal override of addTextNote in cl.huerta.pdf.PDFTemplate.

    at flash.display::MovieClip/nextFrame()
    at mx.managers::SystemManager/deferredNextFrame()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:319]
    at mx.managers::SystemManager/preloader_initProgressHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2945]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::Preloader/timerHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:398]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

    Posted 25 Feb 2012 at 7:04 am
  29. Radu wrote:

    I am checking your blog a lot to see if you update to the lates alive pdf.

    Posted 06 Aug 2012 at 8:15 pm
  30. radu wrote:

    Well i talked with Gonzalo and he said that he never got any reply from Thibault Imbert so he could not marke his extension with the library. For now the PDFi extension works only with a older version of the alivePDF library. This extension is a huge addition I think and well you 2 guys should talk for the future of the library and flash

    Posted 14 Aug 2012 at 10:39 am
  31. Peter_D wrote:

    Hallo, please tell me, when will available support for UTF-8 letters?
    It is very important feature in soft like this.
    Thanks

    Posted 14 Feb 2013 at 8:30 am

Trackbacks & Pingbacks 2

  1. From AlivePDF - AlivePDF 0.1.5 [RC] new API’s on 16 Jul 2010 at 7:41 pm

    [...] and a new Invoice API to make invoice generation smooth. I have to finalize the integration of the AlivePDF extension for templates created by Gonzalo. But I may have some interesting news concerning exporting drawn vectors to the PDF, without having [...]

  2. From Pdf Problem AlivePDF fpdi - Flashforum on 11 May 2011 at 8:21 am

    [...] Please send me your file to try. If you have any other doubt do not hesitate to contact me. hier die Quelle __________________ [gg]das Leben ist ein schei* Spiel, aber mit einer Saugeilen [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *