c# pdfsharp sample : How to fill in a pdf form in reader application SDK tool html wpf winforms online Linux-DeveloperGuide-PCCPlus2-part1346

cd <install_path>/scripts
proxyserver.sh stop
proxyserver.sh start
Setup proxy service to run on SSL https
Following steps have to be done to achieve this:
1) Modify proxyserver_jar.properties
Stop proxyserver
cd <install_path>/scripts
proxyserver.sh stop
cd <install_path>/config
Open proxyserverconfiguration.config
set http_ssl_enabled=true
2) Modify web.xml (Tomcat / JBoss Application  - WAR, EAR) 
(Only Applicable if you are using WAR or EAR provided in Sample Code)
(Ignore this step if you are not using the provided sample code WAR or EAR)
<param-name>proxyserver</param-name>
<param-value>https://localhost:18680</param-value>
3) Start the proxyserver
cd <install_path>/scripts
proxyserver.sh start
Check logs at <install_path>/convert2swf/logs/proxyserver.log
SSL mode is denoted in proxyserver.log at initialization phase, e.g..:
INFO   | jvm 1    | 2009/09/10 08:00:26 | http server ssl enabled       : true
INFO   | jvm 1    | 2009/09/10 08:00:26 | http server ssl keystore      : /var/www/cgi-
bin/convert2swf/bin/proxyserver_ssc.jks
INFO   | jvm 1    | 2009/09/10 08:00:26 | http server ssl password      : ****************
:
INFO   | jvm 1    | 2009/09/10 08:00:38 | [ info  ] [https-server] starting...
INFO   | jvm 1    | 2009/09/10 08:00:38 | [ info  ] [https-server] adding to the pool: worker-0
INFO   | jvm 1    | 2009/09/10 08:00:39 | [ info  ] [https-server] binded to: ssl 
socket,host=localhost,port=18680
and with each client request, e.g.:
INFO   | jvm 1    | 2009/09/10 08:00:56 | [ info  ] [https-server] [worker-0] handling client 
request
Doing Conversions in SSL Mode
Specify proxyserver parameter
Calling convert2swfclient.jar has to contain proxyserver parameter that specifies the https 
protocol, host and port, e.g.:
java -jar convert2swfclient.jar proxyserver=https://localhost:18680 source=sample.doc
or
When using proxyserver conver2swf service
https://localhost:18680/convert2swf?source=/var/www/html/samplecode/sample.doc&pages=1
21
How to fill in a pdf form in reader - extract form data from PDF in C#.net, ASP.NET, MVC, Ajax, WPF
Help to Read and Extract Field Data from PDF with a Convenient C# Solution
how to extract data from pdf file using java; exporting data from pdf to excel
How to fill in a pdf form in reader - VB.NET PDF Form Data Read library: extract form data from PDF in vb.net, ASP.NET, MVC, Ajax, WPF
Convenient VB.NET Solution to Read and Extract Field Data from PDF
extract data from pdf file; extracting data from pdf to excel
What is proxyserver_ssc.jks?
This file is so called "keystore". It is necessary for SSL handshake phase and data encryption. 
proxyserver_ssc.jks contains self-signed certificate that is intended to be used in trusted 
environments (difficult to tamper), such as localhost or intranets.
To print the content of the keystore you may use following command:
"Java/jdk1.6.0_16/bin/keytool"  -list -v -keystore 
<installpath>/convert2swf/bin/proxyserver_ssc.jks -storepass "password"
22
VB.NET PDF Form Data fill-in library: auto fill-in PDF form data
to PDF. Image: Remove Image from PDF Page. Image Bookmark: Edit Bookmark. Metadata: Edit, Delete Metadata. Form Process. Extract Field Data. Data: Auto Fill-in Field
edit pdf form in reader; export pdf form data to excel spreadsheet
C# PDF Form Data fill-in Library: auto fill-in PDF form data in C#
A professional PDF form filler control able to be integrated in Visual Studio .NET WinForm and fill in PDF form use C# language.
change font size pdf form reader; how to save editable pdf form in reader
Chapter 4
Integration with Your Application
Prizm Content Connect Plus supports real time processing of documents and be integrated with 
your existing applications. This allows you to not only convert your documents to PDF format and 
allow your users to download them in PDF format but also to convert them into SWF format with 
an easy to use full featured viewer.
ViewerEnterprise File
Calls the ViewerEnterprise.swf and passes document location along with Viewer display 
properties. 
ViewerEnterprise.swf file
Contains the logic for viewing the documents. ViewerEnterprise.swf makes AJAX calls to 
Conversion File mentioned below.
settingsenterprise.xml file
Used by ViewerEnterprise.swf and contains location for a temp directory where swf file will be 
generated and conversion file url.
For php sample code, settingsenterprise.xml would look like this:
<settings>
<conversionFileURL>getdocument.php</conversionFileURL>
<getTotalPagesURL>gettotalpagecount.php</getTotalPagesURL>
<getFastPagesURL>getfastpagecount.php</getFastPagesURL>
</settings>
Conversion File (getdocument)
Called from ViewerEnterprise.swf to perform the actual conversion. Conversion File is assumed by 
default to be on same domain as ViewerEnterprise.swf.
Conversion file accepts document as a form POST parameter and returns generated SWF file 
name.
Arguments:   
fileName, pageNumber
Returns:  
SWFFile=generatedfile.swf
Or SWFFile=Error (in case of error or other problems)
GetFastPageCount
Called from ViewerEnterprise.swf to return the page count of the file
Arguments:   
fileName, pageNumber
Returns:  
pages=fasttotalpages
GetTotalPageCount
Called from ViewerEnterprise.swf to return the actual total page count of the file
Arguments:   
fileName, pageNumber
Returns:  
pages=totalpages
23
C# WPF PDF Viewer SDK to annotate PDF document in C#.NET
Text box. Click to add a text box to specific location on PDF page. Line color and fill can be set in properties. Copyright © <2000-2016> by <RasterEdge.com>.
pdf data extractor; fill in pdf form reader
VB.NET PDF Password Library: add, remove, edit PDF file password
passwordSetting.IsAnnot = True ' Allow to fill form. passwordSetting document. passwordSetting.IsAssemble = True ' Add password to PDF file.
extract table data from pdf; extracting data from pdf into excel
Chapter 5
Customizing the viewer
Prizm Content Connect Plus is fully customizable and you can not only switch the various buttons 
on and off on the viewer, but also add up to 3 custom buttons.
Your custom code needs to appear as 'FlashVars' param variable so that it can be passed to the 
flash file at run time.
There are several ways to embed flash into a web page. Prizm Content Connect can support all 
of those methods.
Here are some of flash embed examples:
1) Basic Embed using Embed & Object Tags (using 
AC_RunActiveContent.js
)
http://kb2.adobe.com/cps/127/tn_12701.html
2) Using SWF Objects
http://code.google.com/p/swfobject/
3) Using JQuery SWF Object Plugin
http://jquery.thewikies.com/swfobject/
Given below is an example with code showing SWF Objects.
<script src="swfobject.2.2.js" language="javascript"></script> 
<script type="text/javascript">  
var params = { 
wmode: 'opaque',
scale: 'noscale',
allowFullScreen: true,
allowScriptAccess: 'always',
bgcolor: '#ffffff'
}; 
var attributes = {  
id: ‘ViewerEnterprise’,  
name: ViewerEnterprise’
}; 
var flashvars = {  
documentname: '<? echo $document; ?>',
saveDocumentLocation: 'savedocument.php’
}; 
swfobject.embedSWF("ViewerEnterprise.swf?<? echo time();?>", "documentviewer", "620", "800", 
"10.0.0", false, flashvars, params, attributes); 
</script>
<noscript>
Javascript needs to be enabled to view the document in viewer.
</noscript>
<div id="documentviewer"></div>
Prizm Flash Variables 
Name
Description
Default 
Values
24
C# PDF Password Library: add, remove, edit PDF file password in C#
passwordSetting.IsAnnot = true; // Allow to fill form. passwordSetting document. passwordSetting.IsAssemble = true; // Add password to PDF file.
pdf form save in reader; can reader edit pdf forms
VB.NET PDF - Annotate PDF with WPF PDF Viewer for VB.NET
Text box. Click to add a text box to specific location on PDF page. Line color and fill can be set in properties. Copyright © <2000-2016> by <RasterEdge.com>.
pdf data extraction to excel; html form output to pdf
VB.NET PDF - Annotate PDF Online with VB.NET HTML5 PDF Viewer
on PDF page. Outline width, outline color, fill color and transparency are all can be altered in properties. Drawing Tab. Item. Name. Description. 7. Draw free
export pdf form data to excel; how to save a filled out pdf form in reader
C# HTML5 PDF Viewer SDK to annotate PDF document online in C#.NET
on PDF page. Outline width, outline color, fill color and transparency are all can be altered in properties. Drawing Tab. Item. Name. Description. 7. Draw free
extract pdf form data to excel; exporting pdf data to excel
translationTool
Turns translation on/off
Yes
Yes/No
selectedTab     
Tab to select when document 
first loads
Home 
Name of the tab. 
Example: 
selectedTab:’Home’
selectedTab:’Search’
selectedTab:’खज’
If using translation, pass 
the translated tab name to 
load it on document load.
Home Tab Buttons
buttonHomeSave
buttonHomePrint
buttonHomeZoom
buttonHomeFit
buttonHomeLeft
buttonHomeRight
buttonHomeClip
buttonHomeFullscreen
buttonSearch
buttonSearchFullScreen
buttonViewFit
buttonViewRotate
buttonViewThumbs
buttonViewFullScreen
buttonTranslateFullscree
Allows you to independently 
turn off buttons on Home tab
Example: 
buttonHomeZoom=No
All buttons 
are on by 
default. 
Default: 
Yes
Yes/No
Print Specific Variables
Name
Details
printOptionPrintAll
Yes/No
Allows you to remove Print All pages options in the print dialog box
printOptionPrintPageRange
Yes/No
Allows you to remove Print Page Range option in the print dialog 
box
printOptionPrintCurrentPage
Yes/No
Allows you to remove Print Current Page option in the print dialog 
box
Custom Tab Variables
Adding custom tab with custom buttons. 
(Only 1 custom tab is allowed)
(Upto 3 buttons on custom tab are allowed)
Name
Description
customTabName
Name of custom tab
customTabCategoryName Category name for custom buttons. All buttons get added to 1 
category
customButton1Image
Image to appear on button
26
customButton1Url
URL to go to when button is clicked
customButton1Target
Target for url like _blank,_top etc
customButton1Tooltip
Tooltip for the custom button
Search Variables
Name
Description
Default Value
Values
searchQuery
Load viewer with 
search keywords 
highlighted
Can be any keywords 
in the document.
highlightsLinksXML
Pass search 
variables in xml form
xml 
highlightsLinksXML
URL
Pass search 
variables in a url to 
a xml
Link to xml
Example searchQuery: Loading Viewer with first “Magic” search keyword pre highlighted and 
then let user jump to next “Magic” keyword in document
Search Variables:  searchQuery=Magic
Passing multiple variables to load for search
Search Variables:  searchQuery=Magic|this
| is the delimiter
Example highlightsLinksXML or highlightsLinksXMLURL
highlightsLinksXML = "<root><actions><action type=’…….”
highlightsLinksXMLURL = 'highlights.xml'
Sample highlight.xml
<root>
<actions>
<action type='addLink'><link documentname="Sample.doc" id="test123" userid="" tooltip="" 
mode="ByText" occurance="all" page="2" allowDelete="true" color="16776960" start="0" 
end="0" annotation="0" link=”http://www.yahoo.com” editable=”0”><![CDATA[the]]></link>
</action>
<action type='addHighlight'>
<highlight documentname=" Sample.doc " id="test123" userid="" tooltip="" mode="ByText" 
occurance="all" page="2" allowDelete="true" color="16776960" start="0" end="0" 
annotation="0" editable=”0”><![CDATA[this]]></highlight>
</action>
</actions>
</root>
Setting editable="0" will not open the highlight options when clicked on the highlighted text or 
link.
View single page multiple files
Pass multiple files comma separated
Example:
http://localhost:18680/convert2swf?source=Sample.doc,test.txt
27
Chapter 6
Events to/from Viewer
Prizm Content Connect Plus is built in such a way that it can be truly integrated and embedded 
into your application. Events are JavaScript AJAX calls that Viewer can generate when certain 
actions occur. Developers can also send JavaScript AJAX events to Viewer from their code and 
have Viewer perform certain actions without reloading the whole page.
Sending events to Viewer
To send events to viewer you have to follow the following steps –
1)
Pass a FlashVar to ViewerEnterprise.swf to indicate you will be sending events to Viewer
sendViewerEvents=Yes
2)
In your page where you call ViewerEnterprise.swf, add the following code
<script src="swfobject.2.2.js" language="javascript"></script> 
<script type="text/javascript">  
var params = { 
wmode: 'opaque',
scale: 'noscale',
allowFullScreen: true,
allowScriptAccess: 'always',
bgcolor: '#ffffff'
}; 
var attributes = {  
id: ‘ViewerEnterprise’,  
name: ViewerEnterprise’
}; 
var flashvars = {  
documentname: '<? echo $document; ?>',
saveDocumentLocation: 'savedocument.php’,
sendViewerEvents:'Yes'
}; 
swfobject.embedSWF("ViewerEnterprise.swf?<? echo time();?>", "documentviewer", "620", "800", 
"10.0.0", false, flashvars, params, attributes); 
</script>
<noscript>
Javascript needs to be enabled to view the document in viewer.
</noscript>
<div id="documentviewer"></div>
sendTextToFlash function is used to interact with Viewer and following events can be sent:
Event
Details
Next
Move to next page
Previous
Move to pervious page
ZoomIn
Zoom In on the document
ZoomOut
Zoom Out on document
FitToWidth
Set Zoom=100%
MoveDown
Move the page down
MoveUp
Move the page up
MoveLeft
Move the page left
MoveRight
Move the page right
28
Print
Print the document
Rotate
Rotate the document by 90 degree
Example:
<a href=javascript:ViewerEnterprise.sendTextToFlash("Previous")>Previous</a>
<a href=javascript:ViewerEnterprise.sendTextToFlash("Next")>Next</a>
<a href=javascript:ViewerEnterprise.sendTextToFlash("ZoomIn")>Next</a>
Calling Viewer Methods
Method
Details
alert
Show an alert box in the viewer with a message
assignHighlightColo
r
Assign a color through javascript for text selection
loadHighlights
Passing Highlights XML to Viewer through JavaScript
clearHighlights
Clear loaded highlights XML
Showing an alert box in the Viewer
alert(“text to be shown in alert box”)
Example:
<a href=javascript: ViewerEnterprise.alert(“text to be shown in alert box”)>Show Alert</a>
Assigning text selection color via javascript
assignHighlightColor(hexcode of color)
Example:
<a href=javascript: ViewerEnterprise.assignHighlightColor (0xFFFF00)>Set Color</a>
Passing Highlights XML to Viewer through JavaScript
loadHighlights(XML_TO_ADD)
clearHighlights() 
Example:
ViewerEnterprise.loadHighlights( "<root><actions><action type='addHighlight'>  <highlight 
documentname='PowerCfg.odt' id='AE40B90F8A971CF262C3090970DEC151' userid='' tooltip='' 
mode='ByText' occurance='1' page='0' allowDelete='true' color='16776960' start='0' end='0' 
annotation='0'><![CDATA[paper]]></highlight></action></actions></root>" );
ViewerEnterprise.clearHighlights();
Receiving events from Viewer
Viewer can send events when certain actions are performed in the viewer.
To receive the events follow these steps :
1)
Pass a FlashVar to ViewerEnterprise.swf to indicate you will be sending events to Viewer
29
getViewerEvents=Yes
2)
Add the javascript code in your page as shown below
<script src="swfobject.2.2.js" language="javascript"></script> 
<script type="text/javascript">  
var params = { 
wmode: 'opaque',
scale: 'noscale',
allowFullScreen: true,
allowScriptAccess: 'always',
bgcolor: '#ffffff'
}; 
var attributes = {  
id: ‘ViewerEnterprise’,  
name: ViewerEnterprise’
}; 
var flashvars = {  
documentname: '<? echo $document; ?>',
saveDocumentLocation: 'savedocument.php’,
getViewerEvents:'Yes'
}; 
swfobject.embedSWF("ViewerEnterprise.swf?<? echo time();?>", "documentviewer", "620", "800", 
"10.0.0", false, flashvars, params, attributes); 
</script>
<noscript>
Javascript needs to be enabled to view the document in viewer.
</noscript>
<div id="documentviewer"></div>
The following events are sent by the Viewer
Event
Details
OnDocumentError(documentname, pagenumber)
A custom HTTP Status Error Code 500 
is returned from conversion url instead 
of converted swf
viewerOnDocumentZoom(documentname,zoom)
Zoom is pressed. 
Returns documentname & zoom size
viewerOnDocumentScroll(documentname)
Document is scrolled
viewerOnDocumentLoad(documentname)
Document is loaded in the viewer
viewerOnDocumentDownload(documentname)
Document is downloaded/Save button 
was pressed
viewerOnDocumentRotate(documentname)
Document is rotated by 90 degree
viewerOnDocumentPrint(documentname)
Print button was clickec
viewerOnDocumentFullScreen(documentname)
Document is viewed in Full Screen 
Mode
viewerOnSelectText(documentname,pagenumber,startp
os,endpos,selecetdtext)
Text is selected on document.
Returns Document Name, Page 
Number, Start Character Position of 
Text Highlighted, End Character 
Position of Text Highlighted, Selected 
Text Contents
viewerOnDocumentTextSelected(documentname)
After text selection is complete
viewerOnInternalLinkClick(pageClicked)
An internal link in document is clicked. 
Like bookmark or link to another page 
in the document
viewerOnExternalLinkClick(linkUrl)
An external link in document is clicked. 
Like www.google.com is a link in 
30
Documents you may be interested
Documents you may be interested