Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Try Alive PDF, it's awsome

Former Member
0 Kudos

Hey guys,

I just try <a href="http://www.alivepdf.org/">Alive PDF</a> a great Action Script 3 library.

With that you can easily build pdf form, on top of a flex application.

I did a test case in BSP and it worked greeat (if anyone is interested i'll try to blog it )

Good bye ADS, Smartforms, SAPscript

Long live Alive PDF

great sunday to everyone

Quentin

5 REPLIES 5

athavanraja
Active Contributor
0 Kudos

Thanks for sharing this Quentin , i saw this the other day but was lazy to try it out. Would love to see a working sample (with code). Will be waiting for your blog.

Regards

Raja

Former Member
0 Kudos

Hi quentint,

really very very intresting. I'm waiting for your blog. This is SOA powerful !!!!

bye

luca

0 Kudos

Sorry i haven't gotten so much time to blog. I'm building a library on top of alivePDF in order to make it easier.

But here is the BSP page to use in order to generate the PDF with alive pdf :

EventHanfler onInitialisation :

DATA w_xstring TYPE xstring.
DATA: cached_response TYPE REF TO if_http_response.
DATA: display_url TYPE string .
DATA: guid TYPE guid_32.
w_xstring = request->get_data( ) .


CREATE OBJECT cached_response
  TYPE
    cl_http_response
  EXPORTING
    add_c_msg        = 1.

cached_response->set_data( w_xstring  ).



cached_response->set_header_field( name = if_http_header_fields=>content_type
value = 'application/pdf' ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 180 ).



CALL FUNCTION 'GUID_CREATE'
  IMPORTING
    ev_guid_32 = guid.
CONCATENATE runtime->application_url '/' name INTO display_url.

cl_http_server=>server_cache_upload( url = display_url response = cached_response ).

navigation->goto_page( display_url ).

I'll post something about it soon

good day

Quentin

manu_bhai
Explorer
0 Kudos

Dear Quentin,

I also want exactly the same thing.

It will be great help if you can help me.

But when I copy and paste the code in the on

onInitialisation event it is giving error

Field "NAME" is unknown. It is neither in one of the specified tables.

and more over what to do with the

AlivePDF Sources 0[1].1.4.zip file

which I downloaded from the site??

Former Member
0 Kudos

Name is a page a Attribute of your BSP.

About AlivePDF Sources 0.1.4.zip you have to include the SWC file

wich is inside this zip file SWC . (Sources\SWC - Sources)

hope i helped you out

Quentin