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

<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>" );
ViewerEnterpriseAnnotation.clearHighlights();
Receiving events 
The Viewer can send events when certain actions are performed by the user.
To receive events, follow these steps:
Pass a FlashVar to ViewerEnterprise.swf to indicate you will be sending events to Viewer
getViewerEvents=Yes
Add the javascript code in your page as shown below
<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 %>',
getViewerEvents:'Yes',
}
}
);
$(document).ready(
function () {
$('#documentviewer').html(documentviewer);
}
);
</script>
The following events are sent by the Viewer
Event
Details
willSaveAnnotations(xml)
Fired when Save Annotations Button is 
clicked.
Request for saving annotations is being 
sent to server.
Argument xml is the annotation xml
hasSavedAnnotations(xml)
Fired when Save Annotations Button button 
is clicked.
After the annotations have been saved on 
the server.
Argument xml is the annotation xml
onAnnotationDrawn(annotationType)
Called when shape is drawn
Valid annotationType arguments returned:
41
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
delete metadata from pdf; modify pdf metadata
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
metadata in pdf documents; pdf metadata online
circle, circle_filled, rectangle
rectangle_filled, rectangle_trans, line, 
arrow, text, stamp
42
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.
adding metadata to pdf files; analyze pdf metadata
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.
extract pdf metadata; pdf xmp metadata
Chapter 7
Generating Thumbnails 
Prizm Content Connect Plus has a built-in script to generate thumbnail images of the various 
pages of documents. These thumbnails can be displayed as .swf image files in the default AJAX-
based Viewer client, or as .png image files in the Zero Footprint Client, Mobile Client, and various 
other applications.
For creating a batch process or other custom application, thumbnails can be generated using 
convert2swfclient or by using the WebService.
Thumbnail related arguments:
wtmtext           adds watermark on each page 
(Note – Watermark feature requires 
full license key.)
wtmfont              watermark font, default: Helvetica
wtmsize           watermark size, default: 130
wtmalpha         watermark opacity (1-100), default: 10
Generating thumbnails using convert2swfclient
Example 1:
To create a thumbnail of page 1 of sample.tiff:
java -jar convert2swfclient.jar source=sample.tiff thumbnail=100x100 pages=1
Example 2:
To create a thumbnail of all pages of sample.tiff: 
java -jar convert2swfclient.jar source=sample.tiff thumbnail=100x100 
Example 3:
(Note – Watermark feature requires full license key.)
To create a thumbnail of page 6 of sample.tiff, specify target location, and add watermark 
“Approved” on each thumbnail:
java -jar convert2swfclient.jar source=c:\tempcache\sample.tiff target=c:\tempcache\ 
thumbnail=100x100 wtmtext=Approved wtmfont=Helvetica wtmsize=50 wtmalpha=70
Generating thumbnails using the WebService
Example 1
:
To create a thumbnail of page 1 of sample.tiff: 
http://localhost:18680/convert2swf?source=c:/temp/sample.tiff&thumbnail=100x100&pages=1
Example 2:
To create a thumbnail of all pages of sample.tiff:
java -jar convert2swfclient.jar source=sample.tiff thumbnail=100x150 
http://localhost:18680/convert2swf?source=c:/temp/sample.tiff&thumbnail=100x150
43
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.
add metadata to pdf programmatically; pdf metadata reader
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.
batch pdf metadata; pdf metadata online
Chapter 8
How Annotations Work
Annotation tools are available in the Review Tab in the Viewer user interface to give your users 
the ability to create annotations or markups on documents.  This requires the pages specified in 
the settings xml to work correctly:
The settingsenterprise.xml file defines the various interaction points needed for annotations to 
work.
<settings>
<conversionFileURL>convertpage.aspx</conversionFileURL>
<getFastPagesURL>getfastpagecount.aspx</getFastPagesURL>
<getTotalPagesURL>gettotalpagecount.aspx</getTotalPagesURL>
<annotationsFilesURL>listmarkup.aspx</annotationsFilesURL>
<annotationsOpenURL>openmarkup.aspx</annotationsOpenURL>
<annotationsSaveURL>savemarkup.aspx</annotationsSaveURL>
</settings>
conversionFileURL
This is the file which does the page conversion and returns the binary. This should already be set 
up as a part of Prizm Content Connect Plus installation.
getFastPagesURL
This is the file which calculates the fast page count in the document and returns it.
This should already be set up as a part of Prizm Content Connect Plus installation.
getTotalPagesURL
This is the file which calculates the total pages in the document and returns it.
This should already be set up as a part of Prizm Content Connect Plus installation.
annotationsFilesURL: This is the file on the server that the viewer will call to list existing 
annotations when a user clicks on “load markups” button.
Arguments Passed (POST):   
documentname – name of the document specified as a flash variable 
Return Values:
xml – xml containing list of annotations related to the document
<annotationFiles>
<annotation name="documenttest-test 1.xml" label="test 1" id="1"/>
<annotation name="documenttest-test 2.xml" label="test 1" id="2"/>
<annotation name="documenttest-test 3.xml" label="test 1" id="3"/>
</annotationFiles>
name – name of the annotation file
label – label of the annotation file which is shown to the user and could be the name of file itself
id – id of the annotation file which could be anything numeric.
annotationsOpenURL
This is the file which the viewer calls when a user clicks on an annotation label from the list of 
annotations received from annotationsFilesURL.
44
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
read pdf metadata java; remove metadata from pdf file
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
remove metadata from pdf online; online pdf metadata viewer
Arguments Passed (POST):   
documentname – name of the document specified as a flash variable 
annotationName - name of the annotation file as returned by xml from annotationsFilesURL 
annotationId - id of the annotation file as returned by xml from annotationsFilesURL
annotationLabel- label of the annotation file as returned by xml from annotationsFilesURL
Return Values:
Annotation XML file in binary format.
annotationsSaveURL
This is the file on the server that the viewer will call when a user clicks on “Save” button to save 
annotations.
Arguments Passed:   
documentname – name of the document specified as a flash variable 
annotations - the annotation related data in xml form. POST format.
annotationName - the name of the annotation. POST format.
Return Values:
xml specifying the file was saved successfully.
<root>
<saveAnnotationResponse saved='1'/>
</root>
45
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
view pdf metadata; remove pdf metadata online
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.
pdf metadata editor online; remove metadata from pdf
Chapter 9
Translations
Prizm Content Connect Plus includes real-time translation functionality driven by a readily 
available toolbar control and integrated user interface. Use this tool to enable effective 
multilingual collaboration among users across the globe, with no downloads or copy controls 
required. The translation tool allows your users to view document content from right within the 
viewer in any language they choose.
The translation tool provides support for the following languages:
Afrikaans
Albanian
Arabic
Belarusian
Bulgarian
Catalan
Chinese
Croatian
Czech
Danish
Dutch
English
Estonian
Filipino
Finnish
French
Galician
German
Greek
Haitian Creole
Hebrew
Hindi
Hungarian
Icelandic
Indonesian
Irish
Italian
Japanese
Korean
Latvian
Lithuanian
Macedonian
Malay
Maltese
Norwegian
Persian
Polish
Portuguese
Romanian
Russian
Serbian
Slovak
Slovenian
Spanish
Swahili
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Welsh
Yiddish
A translation service provider is required.  
Translation Variables
Name
Description
Value
translationTool
Turns translation on/off
Yes/No
translationPoweredBy
Allows you to write 
Powered By text. Serves 
the legal requirement by 
some free translation 
engines like Google.
langFrom
Sets the language 
selections. This the set 
of languages from which 
translation can occur
langFrom= (any of supported list, comma 
delimited)
langTo
Sets the language 
selections. This the set 
of languages to which 
translation can occur
langTo= (any of supported list, comma 
delimited)
tanslationServiceURL
The url which performs 
the translation and 
returns the translated 
text
tanslationServiceURL=/translate/default.a
spx
Sample Code (Using SWF Object):
<script src="swfobject.2.2.js" language="javascript"></script> 
<script type="text/javascript">  
var params = { 
wmode: 'opaque',
scale: 'noscale',
46
allowFullScreen: true,
allowScriptAccess: 'always',
bgcolor: '#ffffff'
}; 
var attributes = {  
id: 'ViewerEnterprise',  
name: 'ViewerEnterprise'
}; 
var flashvars = {  
documentname: '<%=document %>',
translationTool:'Yes',
langFrom:'English,Afrikaans,Albanian,Arabic,Belarusian,Bulgarian,Chinese,Croatian,Czech,Danish,
Dutch,Estonian,Filipino,Finnish,French,Galician,German,Greek,Hebrew,Hindi,Hungarian,Icelandic,In
donesian,Irish,Italian,Japanese,Korean,Latvian,Lithuanian,Macedonian,Malay,Maltese,Norwegian,Per
sian,Polish,Portuguese,Romanian,Russian,Spanish,Serbian,Slovak,Slovenian,Swahili,Swedish,Thai,
Turkish,Ukrainian,Vietnamese,Welsh,Yiddish',
langTo:'Afrikaans,Albanian,Arabic,Belarusian,Bulgarian,Chinese,Croatian,Czech,Danish,Dutch,Engli
sh,Estonian,Filipino,Finnish,French,Galician,German,Greek,Hebrew,Hindi,Hungarian,Icelandic,Indon
esian,Irish,Italian,Japanese,Korean,Latvian,Lithuanian,Macedonian,Malay,Maltese,Norwegian,Persia
n,Polish,Portuguese,Romanian,Russian,Spanish,Serbian,Slovak,Slovenian,Swahili,Swedish,Thai,Tur
kish,Ukrainian,Vietnamese,Welsh,Yiddish',
translationPoweredBy:'Powered by Google Translate',
tanslationServiceURL:/ translate/Default.aspx'
}; 
swfobject.embedSWF("ViewerEnterprise.swf?<%=Now & Rnd() %>", "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>
Example Translation Service (ASP. net) (Using Google API Translate)
Note- If translation does not work in the provided sample code, make translate directory a new 
virtual directory under a different “AppPool” in IIS
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="translate._Default" 
%>
<%@ Import Namespace="Google.API.Translate" 
%>
<% 
Dim charlimit As Integer = 1920
Dim langFrom As String
langFrom = Request.Form("langFrom")
Dim langTo As String
langTo = Request.Form("langTo")
If langFrom = "" Then
langFrom = "English"
End If
If langTo = "" Then
langTo = "Hindi"
End If
Dim myLanguage,code,langToCode
myLanguage = langTo
Select Case myLanguage
Case "Afrikaans"
code="af"
Case "Albanian"
code="sq"
Case "Arabic"
code="ar"
Case "Belarusian"
code="be"
Case "Bulgarian"
code="bg"
Case "Catalan"
code="ca"
Case "Chinese"
code="zh-CN"
Case "Croatian"
code="hr"
47
Case "Czech"
code="cs"
Case "Danish"
code="da"
Case "Dutch"
code="nl"
Case "English"
code="en"
Case "Estonian"
code="et"
Case "Filipino"
code="tl"
Case "Finnish"
code="fi"
Case "French"
code="fr"
Case "Galician"
code="gl"
Case "German"
code="de"
Case "Greek"
code="el"
Case "Hebrew"
code="iw"
Case "Hindi"
code="hi"
Case "Hungarian"
code="hu"
Case "Icelandic"
code="is"
Case "Indonesian"
code="id"
Case "Irish"
code="ga"
Case "Italian"
code="it"
Case "Japanese"
code="ja"
Case "Korean"
code="ko"
Case "Latvian"
code="lv"
Case "Lithuanian"
code="lt"
Case "Macedonian"
code="mk"
Case "Malay"
code="ms"
Case "Maltese"
code="mt"
Case "Norwegian"
code="no"
Case "Persian"
code="fa"
Case "Polish"
code="pl"
Case "Portuguese"
code="pt"
Case "Romanian"
code="ro"
Case "Russian"
code="ru"
Case "Serbian"
code="sr"
Case "Slovak"
code="sk"
Case "Slovenian"
code="sl"
Case "Spanish"
code="es"
Case "Swahili"
code="sw"
Case "Swedish"
code="sv"
Case "Thai"
code="th"
48
Case "Turkish"
code="tr"
Case "Ukrainian"
code="uk"
Case "Vietnamese"
code="vi"
Case "Welsh"
code="cy"
Case "Yiddish"
code="yi"
End Select
langToCode=code
Dim translatedtext As String
Dim client As TranslateClient = New TranslateClient("test") 
Dim text As String
Dim newtext As String
Dim intpos As Integer
Dim endpos As Integer
Dim x As Integer
text = Request.Form("text")
If (text = ""Then
text = "There was some problem in translation. Could not get the text to translate"
End If
translatedtext = ""
intpos = 0
endpos = 0
If text.Length < charlimit Then
translatedtext = client.Translate(text.Replace("Impactfrom""Impact from"), "en", langToCode, "html")
Else
Dim tlength As Integer = CInt(text.Length / charlimit) - 1
For x = 0 To tlength            
If x * charlimit + charlimit <= text.Length Then
endpos = charlimit
Else
endpos = text.Length - x * charlimit
End If            
newtext = text.Substring(x * charlimit, endpos)
intpos = endpos            
translatedtext = translatedtext & client.Translate(newtext.Replace("Impactfrom""Impact from"), "en", langToCode, 
"html")    
Next        
End If
Response.Write("<root>")
Response.Write("<translation from='" & langFrom & "' to='" & langTo & "'>")
Response.Write(translatedtext)
Response.Write("</translation>")
Response.Write("</root>")
%>   
49
Chapter 10
Localizing the Viewer
To localize Prizm Content Connect Plus, simply pass a Flash Variable with the location of the XML 
file containing the language translations, as demonstrated below.
For example, to display German, simply pass FlashVar as
locale=german.
where german is the german.xml residing at same location as ViewerEnterprise.swf 
XML shown below is a sample xml for locale=english
To generate xml for any other language or change the text, simply replace the xml nodes with 
local language text. Example for locale=hindi you can have xml node 
PreviousPage 
as 
<PreviousPage>
पछल 
 
ष
</PreviousPage>
<tooltips>
<PreviousPage>Previous</PreviousPage>
<DateFormat>MMMM D, YYYY</DateFormat>
<CurrentPage>Current Page</CurrentPage>
<TotalPages>Total Pages</TotalPages>
<NextPage>Next Page</NextPage>
<ZoomIn>Zoom In</ZoomIn>
<ZoomOut>Zoom Out</ZoomOut>
<FitToWidth>Fit To Width</FitToWidth>
<Rotate>Rotate</Rotate>
<ZoomSlider>Zoom Slider</ZoomSlider>
<CurrentZoom>Current Zoom</CurrentZoom>
<TextToSearch>Text to search</TextToSearch>
<StartSearch>Search / Next result</StartSearch>
<SearchResults>Search Results</SearchResults>
<PreviousSearchResult>Previous search results</PreviousSearchResult>
<NextSearchResult>Next search result</NextSearchResult>
<CloseSearch>Close search</CloseSearch>
<SelectText>Select text</SelectText>
<PrintDocument>Print document</PrintDocument>
<FullScreen>Go fullscreen</FullScreen>
<Save>Save</Save>
<ThumbNailView>Thumbnail view</ThumbNailView>
<HighlightColor>Highlight color</HighlightColor>
<CopyText>Copy text</CopyText>
<CustomBtn1></CustomBtn1>
<CustomBtn2></CustomBtn2>
<CustomBtn3></CustomBtn3>
<TranslateText>Translate Text</TranslateText>
<ChangeLanguage>Change Language</ChangeLanguage>
<Close>Close</Close>
<TranslatedFrom>Translated From</TranslatedFrom>
<To>To</To>
<From>From</From>
<TranslatingPleaseWait>Translating, please wait...</TranslatingPleaseWait>
<PrintThisRange>print this range</PrintThisRange>
<PrintAllPages>print all pages</PrintAllPages>
<PrintCurrentPage>print current page</PrintCurrentPage>
<RangeDescription>Enter a single page, or a range of pages. Examples: 5-12 or 5 or 3,2,5</RangeDescription>
<CancelPrinting>cancel printing</CancelPrinting>
<TranslationSettings>Translation Settings</TranslationSettings>
<FullScreenSearchWarning>Please perform search outside of full screen mode.</FullScreenSearchWarning>
<AnnotationSaveSuccessMsg>Annotations saved!</AnnotationSaveSuccessMsg>
<AnnotationErrorGettingFiles>Error getting annotation files from server :</AnnotationErrorGettingFiles>
<AnnotationErrorSavingFiles>Error saving annotations to server :</AnnotationErrorSavingFiles>
<AnnotationErrorGettingAnnotations>Error getting annotations from server :</AnnotationErrorGettingAnnotations>
<AnnotationsClickFileToOpen>Click on file to open...</AnnotationsClickFileToOpen>
<Cancel>Cancel</Cancel>
<SaveBtn>Save</SaveBtn>
50
Documents you may be interested
Documents you may be interested