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!
AlivePDF
ActionScript 3 Open-Source PDF Library – 100% client side PDF generation which makes you and your server happy ;)
Comments 21
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 ¶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 ¶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 ¶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 ¶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 ¶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.
Posted 27 Oct 2009 at 2:35 pm ¶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]“
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 ¶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 ¶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 ¶hi is there any sample application how to use the extension? thank you
Posted 10 Dec 2009 at 9:55 am ¶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 ¶Gonzalo – what is the time frame for supporting templates in flex application?
Posted 11 Jan 2010 at 7:36 pm ¶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 ¶hey gonzales,
Posted 17 Feb 2010 at 1:51 pm ¶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
Hey,
Posted 18 Feb 2010 at 11:47 am ¶…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
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 ¶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()
Posted 26 Feb 2010 at 11:10 pm ¶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()
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 ¶This is VERY VERY raw version!
Posted 05 Apr 2010 at 9:05 pm ¶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 ¶Has this been added to the AlivePdf library yet? I can find it in the trunk
Posted 21 May 2010 at 8:29 am ¶Trackbacks & Pingbacks 1
[...] 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 [...]
Post a Comment