Adding Dynamic Watermark to PDF with LiveCycle ES2

Generally, if you are working on an archiving system you may need to add numbers from a counter to each file automatically. You can find how to do this with LiveCycle ES2 in this post.

If you are working with Assembler Service of LiveCycle you need to be a little bit familiar with DDX structure. Actually there is an assembly descriptor wizard in LC Workbench and it is directing you to the right choices. You can also watch demo to find out how to create DDX for watermarking.

You also need to create a process in workbench. This process will produce file numbers and insert it into watermark. Please download lca file. (its extension is zip, rename it as lca before using)

You can also watch demo of all development process here.

Enjoy..

Share
Posted in Adobe LiveCycle | Tagged , , | 4 Comments

Generating PDF Documents Including Charts

Actually LiveCycle Designer ES2 doesn’t have capabilities to create charts in document. But there are different methods to handle this issue. Most known solution is generating a swf (flash) file and embedding it into PDF. You can download a basic sample of this method from here.

Second method is using Google Chart Tools. Google Chart API lets you dynamically generate charts with a URL string. So you can embed returned chart into Image Field on PDF. All you need to do is to create correct url with data. You can download a sample document that is prepared with this method from here. There are an xml and an xdp files in the zip file. So you will need LiveCycle Designer to view it.

And finally a LiveCycle process which is generating PDF document with sample xdp; please watch the video indicated below. (Download lca file. Its extension is zip so please rename it as lca before using on your LiveCycle server.)

Share
Posted in Adobe LiveCycle | Tagged , , | 1 Comment

Who visits me?

Map below shows places where the people click my blog. Most interesting one is Port Louis from Mauritius. Is he/she a LiveCycle developer on vacation? Otherwise if he/she is residing there, I want to visit as soon as possible :)

Thanks to Google Analytics

Share
Posted in Pointless | Leave a comment

LiveCycle 2D Barcodes: The Most Reliable Way of Data Extraction From Paper Forms

Data capture is the most common problem for many companies, especially extracting data from paper forms. Solution options on this issue is also limited. Most known alternative is OCR but none of OCR solutions ensure %100 achievement. If you investigate other solutions you can easily find out that they have time and cost disadvantages. But Adobe LiveCycle presents a new aspect with 2D Barcode solutions.

It is easy to use 2D barcodes while designing an application form with LiveCycle Designer. All you need to do is drag and drop a “Paper Forms Barcode” object into form and bind it with fields that you want to extract through a barcode collection. Thus, barcode instantly will store all the data while filling in the form by user.

To use barcode feature, form has to be filled out through Adobe Acrobat. This means that, all end users must have Acrobat licence and installation. Other option is extending form for readers. (To extend a PDF form you need to have LiveCycle Reader Extensions ES2 licence.) When you extend form, barcode feature will be enabled and end user can fill out it through Adobe Reader. (Adobe Reader is a free application where you can download it here) Adobe Reader’s version must be 7.0.5 or later.

Watch Folders and E-mails are 2 different endpoint options for LiveCycle. When a filled barcoded form (pdf or tiff) is dropped to a watched folder (you can integrate LiveCycle with a FaxServer by watch folder endpoint) or sent to a specific mail address which is listening by LiveCycle a process will automatically be triggered. LiveCycle will open the file and extract an xml from barcode. When you get the xml, it is up to you to decide what to do; insert data to a table or merge it with another form template and create job for a user etc.

Decode Process

You can watch a simple demo from here.

You can download lca file of process to use on your LiveCycle server.(I have changed its extension to pdf. Please change it back to lca -DataCaptureBARCODE.lca- before to use. )

Enjoy..

Share
Posted in Adobe LiveCycle | Tagged , , , | 1 Comment

How to Connect LiveCycle with Different Data Sources

MySQL is the default datasource for LiveCycle if you are doing turnkey installation. But it doesn’t mean that there is no other option other than MySQL. Actually you can use any data source which has JDBC driver.  You can find how to do below:

1. First of all you have to find a JDBC driver.

Microsoft SQL : You can download it from Microsoft site or here from my blog.

Oracle: You can find it on internet or download here. (it is a rar please rename extension as jar before using it)

AS400 : You can download it here.

2.  Drop downloaded file (sqljdbc.jar or ojdbc5.jar) to deploy folder of your LiveCycle Server.

C:\Adobe\Adobe LiveCycle ES2\jboss\server\lc_turnkey\deploy

If you are using LC ES than your deploy folder is

C:\Adobe\LiveCycle8.2\jboss\server\all\lib

3. And finally you need to create an XML file for configuration and drop it to same deploy folder. (you can name it as you wish) There is already a sample XML in your server’s deploy folder for MySQL. You can use it to generate XMLs for other sources.

XMLs

5. After all these steps, you need to restart JBoss for Adobe LiveCycle ES2 service. (Start>Control Panel>Administrative Tools> Services)

6. You can control your new connection from Workbench with a JdbcService.

connections

connections

Share
Posted in Adobe LiveCycle | Tagged , , , , | 1 Comment

A Complete Digitally Signed Invoice Application With Adobe LiveCycle ES2

Adobe LiveCycle is one of the best and easiest way to create a complete invoice system. In this sample first we get records from data source (MSSQL is used in this sample) by an SQL against the date parameter. Then we merge first record set with invoice template and flatten it to digitally sign and email.  You can also find a loop in the sample to process each record.

You can find sample daha source as xlsx file. You need to import this records to MSSQL (or any other DB) to test the application. (Please ask for .lca file if you want me to send)

You can watch application demo here.

Share
Posted in Adobe LiveCycle | Tagged , , , , | 2 Comments

Dynamically Populating a Drop Down List from Database in an Interactive PDF

It is easy to create interactive PDF forms which is connected to a database. In this sample MS Access table (counties.mdb) is used to populate dropdown lists. When you select a city, related county drop down list will be automatically populate in runtime.

You can download and try.

Sample PDF (384 Kb)

MS Access Database (64 Kb, Zipped file)

Share
Posted in Adobe LiveCycle | Tagged , , | 10 Comments

A Sample Interactive PDF Form

You can download sample interactive PDF form which is created by using LiveCycle Designer ES2. Form includes simple show hide object and calculation properties.

Share
Posted in Adobe LiveCycle | Tagged , , , , | Leave a comment

How to Render LiveCycle Form Guides in a Browser?

You need to creat 2 different processes to render guide in a browser. First process will render guide and other will handle data that is submitted through guide.

Render Guide Process:

1. Create a new process under the Process folder. Accept all of the defaults during setup of the process.

2.Drag a new activity from activity picker. Select Process/GenerateGuide Invoke operation under Guides(system) folder. If you can’t find Guides(system) folder you can retrieve it from server by Get Applications under file menu.

3. Now you can set inputs and outputs of Process/GenerateGuide Invoke operation. guidePath in Input section is a mandotary field. You have insert path of the guide that you want to render. (exp: /Applications/SampleGuide/1.0/Guide.guide)

targetURL is also a mandotary field and it is used to address the submitted data. You will insert REST endpoint of second process here.

3. In the Output section you need to insert a variable as htmlWrapper. So create a document type variable and assign it to htmlWrapper.

4. Save the process.

5. Now you can create second process that will receive submitted data.  When you create the process REST endpoint also will be created automatically. Don’t forget to set it as targetURL on previous process.

6. Drag execute and generatePDFOutput operations and set inputs/outputs. Please check picture below. (If you request I can share LCA file, please comment)

7. Save process and deploy application. Now we can test it. Copy rest endpoint from render process and past it to browser. You will see an authentication window, populate it with your LC user credentials.

8. Fill in form and submit it then populated pdf will appear.

Share
Posted in Adobe LiveCycle | Tagged , , | 6 Comments

LiveCycle Workbench ES2 Connection Problem

Workbench is a very successful tool for fast development but if you are using a language other than english on your computer you can face with connection problems.

When you try to connect LiveCycle server  through Workbench ES2 on developer’s computer you may see blank process designer page.

Your regional and language setting causes this situation and there are 2 option to fix it.

1. Insert this 2 lines indicated below, into workbench.ini file under workbench installation folder.

-Duser.language=en
-Duser.location=us

2. Change your regional and language setting to English (US) if it doesn’t matter for you.

Share
Posted in Adobe LiveCycle | Tagged , , , | Leave a comment