c# pdf library nuget : Add metadata to pdf file application control tool html web page .net online Windows-DeveloperGuide-PCCPlus3-part666

(Required)
startPage
Page which should load when 
viewer opens
(Required)
1 to any. Cannot have 
value as 0 or any 
alphanumeric digits or 
negative numbers.
toolbarButtonSize
Changes the size of the buttons in 
the toolbar. 
36
Any numeric value 
hideToolbarCategories
Turns on/off the category names 
in the toolbar
Yes
Yes/No
toolbar
Removes toolbar all together
Yes
Yes/No
interfaceColor
Changes the toolbar color
0xff0000
Any hex code
saveDocument
(Requires setting of 
saveDocumentLocation)
Removes the save document 
options from all tabs
Yes
Yes/No
saveDocumentLocation
Works with save button and 
points to original document or any 
other document rendition (such as 
pdf)
Link to the Original 
Document or pdf format 
of Original Document
Example: 
http://www.testsite.com/ 
documents/originaldoc.d
oc
ignoreExternalLinks  
Turns off the external links on the 
document
No
If set to Yes, when 
external links are clicked, 
they will not be opened 
automatically.  
(Look at JavaScript 
events 
viewerOnExternalLinkClic
k & 
viewerOnInternalLinkClic
k for using in relation to 
this parameter)  
copyText
Disables the option to copy text to 
clipboard from the viewer
Yes
Yes/No
jsFullscreen 
Traps full screen button event.
Disables fullscreen event of 
viewer.
Setting jsFullscreen=Yes allows 
override of the fullscreen event.
Set jsFullscreen=Yes and then on 
JS event 
viewerOnDocumentFullScreen 
(documentname) change viewer 
height/width to needed.
No
Yes/No
searchTab      
Turns search tab on/off
Yes
Yes/No
viewTab          
Turns view tab on/off
Yes
Yes/No
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:’खज’
31
Add metadata to pdf file - add, remove, update PDF metadata in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Allow C# Developers to Read, Add, Edit, Update and Delete PDF Metadata
pdf keywords metadata; remove metadata from pdf
Add metadata to pdf file - VB.NET PDF metadata library: add, remove, update PDF metadata in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Enable VB.NET Users to Read, Write, Edit, Delete and Update PDF Document Metadata
preview edit pdf metadata; pdf metadata viewer online
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 tabs with custom buttons:
(Only 1 custom tab is allowed with up to 3 buttons)
Name
Description
customTabName
Name of custom tab
customTabCategoryNam
e
Category name for custom buttons. All buttons get added to 1 
category
customButton1Image
Image to appear on button
customButton1Url
URL to go to when button is clicked
32
C# PDF Password Library: add, remove, edit PDF file password in C#
This example shows how to add PDF file password with access permission setting. passwordSetting.IsAssemble = true; // Add password to PDF file.
remove metadata from pdf file; pdf metadata editor
VB.NET PDF File Compress Library: Compress reduce PDF size in vb.
Document and metadata. All object data. File attachment. Flatten visible layers. VB.NET Demo Code to Optimize An Exist PDF File in Visual C#.NET Project.
c# read pdf metadata; remove pdf metadata online
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 
highlightsLinksXMLURL 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.
Annotation Parameters 
Prizm Content Connect Plus can load optional annotation flash parameters to let you fully embed 
it, with markup capabilities, as a part of your application.
Given below is an example with code showing various variables.
33
C# PDF File Compress Library: Compress reduce PDF size in C#.net
Document and metadata. All object data. Flatten visible layers. C#.NET DLLs: Compress PDF Document. Add necessary references: RasterEdge.Imaging.Basic.dll.
pdf xmp metadata viewer; read pdf metadata online
VB.NET PDF insert image library: insert images into PDF in vb.net
using RasterEdge.XDoc.PDF; Have a try with this sample VB.NET code to add an image to the first page of PDF file. ' Open a document.
edit multiple pdf metadata; pdf xmp metadata editor
<script src="jquery-1.4.2.min.js” language="javascript"></script> 
<script src="jquery.swfobject.1-1-1.min.js" language="javascript"></script> 
<script>
documentviewer = $.flash.create(
{
swf: 'ViewerEnterpriseAnnotation.swf',
id:''ViewerEnterpriseAnnotation ',
height: 600,
width: 750,
wmode: 'window',
scale: 'noscale',
allowFullScreen: true,
allowScriptAccess: 'always',
hasVersion: 10,
hasVersionFail: function (options) {
alert("You do not have required flash version");
},
encodeParams: false,
bgcolor: '#ffffff',
flashvars: {
documentname: '<%=document %>',
saveAnnotation: 'No'
}
}
);
$(document).ready(
function () {
$('#documentviewer').html(documentviewer);
}
);
</script>
<div id="documentviewer"></div>
Annotation Variables 
Name
Description
Default 
Value
Values
reviewTab
Turns review tab on or off
Yes
Yes/No
turnOffClickMenu
Turns off the on click menu 
when set to Yes. On Click 
menu shows options such as 
“Add Link”, “Add Highlight”, 
“Copy Text” 
No
Yes/No
saveAnnotation
Enables users to save 
annotations, or disables save
Yes
Yes/No
openAnnotation
Enables or disables opening 
of annotation files by the 
users. 
Example use case: pre-load 
an annotation (use 
loadAnnotation) and disable 
opening other annotations
Yes
Yes/No
loadAnnotation
Pre-loads annotations
saveAnnotationAs
Forces annotation xml to be 
saved automatically by the 
defined name. (Disables the 
annotation save popup)
34
C# PDF File Merge Library: Merge, append PDF files in C#.net, ASP.
Add necessary references: using RasterEdge.XDoc.PDF; Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other
edit pdf metadata acrobat; pdf metadata viewer
VB.NET PDF File Split Library: Split, seperate PDF into multiple
1). ' Create output PDF file path list Dim outputFilePaths As New List(Of String) Dim i As Integer For i = 0 To splitIndex.Length outputFilePaths.Add(Program
batch edit pdf metadata; acrobat pdf additional metadata
stamps
Sets predefined Stamp 
values. If no stamp values 
are set, Stamp selector 
appears blank.
Required to 
be set.
stamps= APPROVED|
DENIED|REVIEW|
REJECTED
Pass stamps as text 
separated by a pipe 
delimiter “|”
printAnnotations
Turns on/off the print 
annotations option 
checkbox. (Print Annotation 
checkbox appears when 
users click on Print button in 
Viewer)
Yes
printAnnotations=No
35
VB.NET PDF File Merge Library: Merge, append PDF files in vb.net
by directly tagging the second PDF file to the target one, this PDF file merge function VB.NET Project: DLLs for Merging PDF Documents. Add necessary references
embed metadata in pdf; batch pdf metadata editor
C# PDF Library SDK to view, edit, convert, process PDF file for C#
PDF SDK for .NET allows you to read, add, edit, update, and delete PDF file metadata, like Title, Subject, Author, Creator, Producer, Keywords, etc.
add metadata to pdf; read pdf metadata java
Chapter 6
JavaScript events to and from the Viewer
Prizm Content Connect is built in such a way that it can be truly integrated and embedded 
into your application. Events are JavaScript AJAX calls that the Viewer can generate when 
certain actions occur. Developers can also send JavaScript AJAX events to the Viewer from 
their code and have the Viewer perform certain actions without reloading the whole page.
Sending events to the Viewer
To send events to the viewer, follow these steps:
1. Pass a FlashVar to ViewerEnterprise.swf to indicate you will be sending events to Viewer
sendViewerEvents=Yes
2. Add the following code to the page where you call ViewerEnterprise.swf:
<script>
documentviewer = $.flash.create(
{
swf: 'ViewerEnterprise.swf',
id:'ViewerEnterprise',
height: 600,
width: 750,
wmode: 'window',
scale: 'noscale',
allowFullScreen: true,
allowScriptAccess: 'always',
hasVersion: 10,
encodeParams: false,
bgcolor: '#ffffff',
flashvars: {
documentname: '<%=document %>',
sendViewerEvents:'Yes',
}
}
);
$(document).ready(
function () {
$('#documentviewer').html(documentviewer);
}
);
</script>
3.
The sendTextToFlash function is used to interact with the viewer.
2 arguments are required: Command:String and Argument:String or Number
Argument is 0 in all cases except:
For Command MovetoPage where argument is pageNumber
For Command Search where argument is String (the text to be searched)
The following events can be sent:
Event
Details
Next
Move to next page
Previous
Move to previous page
36
ZoomIn
Zoom In on the document
ZoomOut
Zoom Out on document
ZoomTo
Zoom to a certain specified size
FitToWidth
Set Zoom=100%
MoveDown
Move the page down
MoveUp
Move the page up
MoveLeft
Move the page left
MoveRight
Move the page right
Print
Print the document. Opens print dialog.
PrintAll
Print all pages in the document. Does not open the print 
dialog.
PrintRange
Print specific pages in document. Does not open the print 
dialog.
Rotate
Rotate the document by 90 degree
MovetoPage
Move to a specific page in document and pass page number
Search
Start search of the string
SearchResultMoveNext
Move to next search highlighted result
SearchResultMovePreviousMove to previous search highlighted result
SelectText
Turn on the text selector
getTotalPages
Return total pages in document. Calls 
turnOnTextSelection
Mimics the action of clicking the text selection button
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
assignHighlightColor
Assign a color through javascript for text selection
loadHighlights
Passing Highlights XML to Viewer through JavaScript
clearHighlights
Clear loaded highlights XML
gotoPage(pageNumbe
r )
Load a particular page in the viewer
Showing an alert box in 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>
Receiving Events from the Viewer
The Viewer can send events when certain actions are performed.
To receive the events follow these steps :
37
1)
Pass a FlashVar to ViewerEnterprise.swf to indicate you will be sending events to Viewer
getViewerEvents=Yes
2)
Add the JavaScript code in your page as shown below
<script>
documentviewer = $.flash.create(
{
swf: 'ViewerEnterprise.swf',
id:'ViewerEnterprise',
height: 600,
width: 750,
wmode: 'window',
scale: 'noscale',
allowFullScreen: true,
allowScriptAccess: 'always',
hasVersion: 10,
hasVersionFail: function (options) {
alert("You do not have required flash version");
},
encodeParams: false,
bgcolor: '#ffffff',
flashvars: {
documentname: '<%=document %>',
getViewerEvents:'Yes',
}
}
);
$(document).ready(
function () {
$('#documentviewer').html(documentviewer);
}
);
</script>
The following events are sent by ViewerEnterprise.swf:
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 clicked
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. 
38
Like www.google.com is a link in 
document and is clicked
onHighlightEvent(eventName , highlightXML)
This is the event passed by viewer 
when a certain text is selected by used 
and added as Highlight, Link, Tag or 
Redaction.
onPagesAllLoaded()
Fired when all pages in the document 
have been loaded
onThumbView()
Fired when user clicks on thumbnail 
view button
onFullView()
Fired when user comes out of the 
thumbnail view
tabChanged ( nameOfActivatedTab:String )
Event fired when tab is changed in the 
viewer
Highlight Events Sent by viewer
JavaScript method that is called : onHighlightEvent ( eventName , highlightXML ) 
eventNames 
highlightSaveMenuOpened
highlightAdd
highlightExistingMenuOpened
highlightMenuCancelled
highlightRemove
highlightOpenLink
Example:
<script language="javascript">
function viewerOnDocumentPrint(documentname)
{
alert(“document: ” + documentname);
}
function viewerOnSelectText(documentname,pagenumber,startpos,endpos,selecetdtext)
{
alert(startpos+" "+endpos);
}
function onHighlightEvent(eventName, highlightXML)
{
alert(eventName + "  " + highlightXML);
}
</script>
Annotation Events to/from Viewer
Sending Events 
To send Annotation Events to the Viewer, follow these steps:
1)
Pass a FlashVar to ViewerEnterprise.swf to indicate you will be sending events to Viewer
sendViewerEvents=Yes
39
2)
In your page where you call ViewerEnterprise.swf, add the following code
<script>
documentviewer = $.flash.create(
{
swf: 'ViewerEnterpriseAnnotation.swf',
id:'ViewerEnterpriseAnnotation',
height: 600,
width: 750,
wmode: 'window',
scale: 'noscale',
allowFullScreen: true,
allowScriptAccess: 'always',
hasVersion: 10,
encodeParams: false,
bgcolor: '#ffffff',
flashvars: {
documentname: '<%=document %>',
sendViewerEvents:'Yes',
}
}
);
$(document).ready(
function () {
$('#documentviewer').html(documentviewer);
}
);
</script>
Calling Viewer Methods
Method
Details
alert
Show an alert box in the viewer with a message
assignHighlightColor
Assign a color through javascript for text selection
loadHighlights
Passing Highlights XML to Viewer through JavaScript
clearHighlights
Clear loaded highlights XML
loadAnnotations
Passing Annotations XML to Viewer through JavaScript
removeAnnotations
Clear loaded annotations XML
saveAnnotation
Save loaded annotation Save loaded annotation
Showing an alert box in viewer
alert(“text to be shown in alert box”)
Example:
<a href=javascript: ViewerEnterpriseAnnotation.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: ViewerEnterpriseAnnotation.assignHighlightColor (0xFFFF00)>Set Color</a>
Passing Highlights XML to Viewer through JavaScript
loadHighlights(XML_TO_ADD)
clearHighlights() 
Example:
ViewerEnterpriseAnnotation.loadHighlights( "<root><actions><action type='addHighlight'> 
40
Documents you may be interested
Documents you may be interested