how to use abcpdf in c# : Edit pdf metadata control application platform web page html asp.net web browser tiffpilot20-part252

TIFF Pilot For ASP.Net
Reference Guide Version 2.0
Version 2.01, October 2005
© Copyright 2001 -2005 Aquaforest Limited 
http://www.aquaforest.com/
Edit pdf metadata - 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
c# read pdf metadata; preview edit pdf metadata
Edit pdf metadata - 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
delete metadata from pdf; batch pdf metadata editor
1
CONTENTS
1
INTRODUCTION..........................................................................................................................2
1.1
S
ERVER 
R
EQUIREMENTS
............................................................................................................................2
1.2
S
UPPORTED 
TIFFF
ILE 
F
ORMATS
...............................................................................................................2
2
INSTALLATION AND CONFIGURATION..............................................................................2
2.1
I
NSTALLING 
T
IFF PILOT
..............................................................................................................................2
2.2
T
ESTING 
T
HE 
I
NSTALLATION
......................................................................................................................2
2.3
L
ICENSING
.................................................................................................................................................3
2.4
W
INDOWS 
2003U
SERS
..............................................................................................................................3
3
ACCESSING DOCUMENTS........................................................................................................5
3.1
A
CCESSING 
D
OCUMENTS VIA 
P
ATHS OR 
UNC
S
..........................................................................................5
3.2
A
CCESSING 
D
OCUMENTS ON 
R
EMOTE
F
ILE SYSTEMS
..................................................................................5
3.2.1
Related Security Issues.....................................................................................................5
3.3
A
CCESSING 
D
OCUMENTS VIA 
URL
S
...........................................................................................................5
3.4
D
IRECTORY 
D
OCUMENTS
...........................................................................................................................5
3.5
C
OMPOUND 
D
OCUMENTS
...........................................................................................................................6
3.6
XMLV
IRTUAL 
D
OCUMENTS
.....................................................................................................................6
3.6.1
document type...................................................................................................................6
3.6.2
document specifications....................................................................................................6
3.6.3
Referring to XML Virtual Documents :............................................................................6
3.6.4
Examples...........................................................................................................................7
3.7
S
ESSION
-
BASED 
XMLV
IRTUAL 
D
OCUMENTS
............................................................................................7
3.8
PDFA
NNOTATION 
B
OX 
F
EATURE
..............................................................................................................8
3.9
TIFFP
ILOT 
P
ARAMETER 
S
UMMARY
..........................................................................................................8
4
DATABASE-RESIDENT DOCUMENT IMAGES.....................................................................9
5
USING STAMPS..........................................................................................................................11
5.1
S
TAMP 
P
LACEMENT
.................................................................................................................................11
5.2
S
TAMP 
S
PECIFICATIONS
...........................................................................................................................12
6
TIFF PILOT DIRECTORIES.....................................................................................................13
6.1
R
OOT 
F
OLDER
.........................................................................................................................................13
6.2
S
UB 
F
OLDERS
..........................................................................................................................................13
6.3
T
EMPORARY 
F
ILES
...................................................................................................................................13
7
PRODUCT VERSION HISTORY..............................................................................................14
7.1
V
ERSION 
2.02..........................................................................................................................................14
How to C#: Modify Image Metadata (tag)
edit, C#.NET PDF pages extract, copy, paste, C#.NET rotate PDF pages, C#.NET search text in PDF, C#.NET edit PDF bookmark, C#.NET edit PDF metadata, C#.NET
pdf xmp metadata viewer; remove pdf metadata
C# TIFF: TIFF Metadata Editor, How to Write & Read TIFF Metadata
Tiff ›› C# Tiff: Edit Tiff Metadata. C# TIFF - Edit TIFF Metadata in C#.NET. Allow Users to Read and Edit Metadata Stored in Tiff Image in C#.NET Application.
pdf metadata viewer online; embed metadata in pdf
2
1
I
NTRODUCTION
Tiff Pilot provides dynamic TIFF to PDF conversion,  allowing a web site or intranet to convert TIFF 
files to PDF format “On The Fly”.  In addition the product can process TIFF images stored in a SQL 
Server database, as well as in regular files.
1.1
Server Requirements
IIS 5.0 or later with Version 5 of the MS Scripting Engines
Version 1.1 of the .Net Framework
Windows 2000/2003 or Windows XP Professional
Approximately 50MB of disk space
Acrobat reader 5.0 or later is recommended
1.2
Supported TIFF File Formats
CCITT Group 3 (1-D), Group 3 (2-D)
CCITT Group 4
CCITT RLE
Uncompressed (Bitonal)
JPEG Compression (“Type 6”)
LZW
2
I
NSTALLATION AND 
C
ONFIGURATION
2.1
Installing Tiff pilot
The source media zip file contains a Windows Installer setup.msi which will installTiff pilot under a 
specified virtual directory and web server.  By default the product will be installed under /tiffpilot on 
the default (port 80) web server – this typically maps to the directory c:\inetpub\wwwroot\tiffpilot.
2.2
Testing The Installation
To test the installation, run the test and sample pages fromhttp://yourserver/tiffpilot/tpstart.aspx  Any 
problems running this sample application should give evident error messages, but if you are unable to 
resolve a problem please contact support@aquaforest.com
See the section below for troubleshooting 
information.
Start Page :
C# PDF bookmark Library: add, remove, update PDF bookmarks in C#.
|. Home ›› XDoc.PDF ›› C# PDF: Edit PDF Bookmark. C#.NET PDF SDK - Edit PDF Bookmark and Outline in C#.NET. Empower Your C#
pdf metadata reader; online pdf metadata viewer
C# PDF Sticky Note Library: add, delete, update PDF note in C#.net
Note. |. Home ›› XDoc.PDF ›› C# PDF: Add Sticky Note. C#.NET PDF SDK - Add Sticky Note to PDF Page in C#.NET. Able to change font size in PDF comment box.
remove pdf metadata online; pdf metadata
3
Expected Installation Test Results :
2.3
Licensing
The software requires the user of a licence key file (key.txt in the Tiffpilot\bin directory).  The licence 
file is used to determine whether the software is a trial version or for permanent keys which version of 
the software has been licensed.  The downloaded product includes a trial license which has no time 
limit, but all document pages are stamped.  To see information relating to the product version and 
licence file, see the “Version Information” section of the test.aspx test page.
2.4
Windows 2003 Users
IIS 6 on Windows 2003 is by default “locked down” so that neither ASP nor CGI executables are able 
to run.  To configure IIS for use with Tiff pilot you will need to use the “Web Service Extensions” of 
IIS manager and ensure that ASP.Net Pages and either .exe CGI executables (in general) or the Tiff 
pilot executables (specifically) are allowed.  See below for an example configuration :
C# PDF Library SDK to view, edit, convert, process PDF file for C#
C#.NET: Edit PDF Metadata. PDF SDK for .NET allows you to read, add, edit, update, and delete PDF file metadata, like Title, Subject
acrobat pdf additional metadata; pdf metadata extract
VB.NET PDF Library SDK to view, edit, convert, process PDF file
PDF Metadata Edit. Offer professional PDF document metadata editing APIs, using which VB.NET developers can redact, delete, view and save PDF metadata.
remove metadata from pdf file; adding metadata to pdf
4
How to C#: Basic SDK Concept of XDoc.PDF for .NET
XDoc.PDF for .NET allows C# developers to edit hyperlink of PDF document Various PDF annotation features can be integrated into your C# project, such Metadata.
bulk edit pdf metadata; add metadata to pdf
VB.NET PDF Annotate Library: Draw, edit PDF annotation, markups in
VB.NET PDF - PDF Annotation in VB.NET. Guide to Draw, Add and Edit Various Annotations on PDF File in VB.NET Programming. Annotation Overview.
view pdf metadata; batch edit pdf metadata
simplest solution to this issue is to set the security properties of the following file using the IIS 
_vdoc>
ts_vdoc value
Description
file
A single document file
directory
A single directory document
multidoc
An ordered set of documents 
multifile
An ordered set of single path TIFF files
3.6.2
document specifications
Files are specified using either URLs such as
<ts_vdoc_url>samples/ccitt.tif</ts_vdoc_url>
Or Paths/UNCs such as
<ts_vdoc_path>\\YOUR-447023AE6B\IMAGES\directory1234\ccitt.tif</ts_vdoc_path>
3.6.3
Referring to XML Virtual Documents :
The FN parameters may be used to refer to the XML file and the VD parameter should be set as shown.
http://localhost/dev/ts2/tiffpilot.aspx?FN=c:\samples\vd3.xml&VD=path
7
3.6.4
Examples
Single File URL
<?xml version="1.0" encoding="ISO8859-1" ?> 
<ts_vdoc>
<ts_vdoc_type>file</ts_vdoc_type>
<ts_vdoc_url>samples/ccitt.tif</ts_vdoc_url>
</ts_vdoc>
Directory UNC
<?xml version="1.0" encoding="ISO8859-1" ?> 
<ts_vdoc>
<ts_vdoc_type>directory</ts_vdoc_type>
<ts_vdoc_path>\\YOUR-447023AE6B\IMAGES\directory1234</ts_vdoc_path>
</ts_vdoc>
Compound Document
<?xml version="1.0" encoding="ISO8859-1" ?> 
<ts_vdoc>
<ts_vdoc_type>multifile</ts_vdoc_type>
<ts_vdoc_url>samples/single_page_tiffs/p1_split_ab.tif</ts_vdoc_url>
<ts_vdoc_url>samples/single_page_tiffs/p1_split_ac.tif</ts_vdoc_url>
<ts_vdoc_url>samples/single_page_tiffs/p1_split_ad.tif</ts_vdoc_url>
</ts_vdoc>
3.7
Session-based XML Virtual Documents
Virtual XML documents may also be stored as an ASP.Net Session variable AT_VDOC.  In this case 
the following URL may be used.
http://localhost/dev/ts2/tiffpilot.aspx?VD=session
Here is an example of setting the AT_VDOC session variable :
<%
// Example Session Virtual Document
var s='<?xml version="1.0" encoding="ISO8859-1" ?> ';
s+='<ts_vdoc>';
s+='<ts_vdoc_type>multifile</ts_vdoc_type>';
s+='<ts_vdoc_url>samples/single_page_tiffs/p1_split_ac.tif</ts_vdoc_url>';
s+='<ts_vdoc_url>samples/single_page_tiffs/p1_split_aa.tif</ts_vdoc_url>';
s+='<ts_vdoc_url>samples/single_page_tiffs/p1_split_ab.tif</ts_vdoc_url>';
s+='</ts_vdoc>';
Session["AT_VDOC"]=s;
%>
8
3.8
PDF Annotation Box Feature
The PDF “Annotation Box” feature creates a fixed  “annotation” at the top of each page.  The 
annotation will be a text box (black background, white text) with contents determined by the 
parameters marked with an * below – an example is shown below.
3.9
TIFF Pilot Parameter Summary
Parameter
Allowable Values
Notes
FN
Fully qualified file name of the TIFF 
document or virtual document to be 
displayed.
Mandatory.
VD
If FN represents a virtual document, this should be 
set to path
PD
1.
Mandatory.
SN
Stamp Name
SV
Stamp Value
Value to be substituted for %s in the stamp 
definition string.
*AS
String
Annotation string.  May include %p which will be 
replaced by the page number., and %n which will 
be replaced by the total number of pages in the 
document.
*AH
Integer
Annotation “box” height (default value=13)
*AF
1-3
Font : 1=HELVETICA (default)  2=COURIER 
3=TIMES-ROMAN
*AZ
Integer
Font Size  (default value=9)
*AJ
1-3
Justification : 1=LEFT (default) 2=CENTER 
3=RIGHT
SF
Scale Factor
SF allows a scale factor to be applied to the image. 
So, for example SF=0.9 will scale the TIFF Images 
to 90% of their original size.
*only available when acess via tiffpilot.exe rather than tiffpilot.aspx
9
4
D
ATABASE
-R
ESIDENT 
D
OCUMENT 
I
MAGES
Tiff pilot 2.0 supports the access of document images stored in SQL Server 2000 image columns.  To 
configure the product for use with a database, the tpconfig.inc file in the Tiff pilot directory needs to be 
modified.
(a) Firstly, locate the following lines, and change GDI to DB
// Backend Config - Allowable Values : .NET or DB
var ts_backend=".NET";
(b) Then the default database settings need to be changed where necessary :
else if(ts_backend=="DB")
{
var ts_url_mappath=false; /* URL Should be mapped to path before passing to any 
of the following */
var ts_image_url="tssp.aspx"; /* Backend Image Processing */
var ts_an_url="tsspan.aspx"; /* Backend Annotation Processing */
var ts_info_url="tssp.aspx"; /* Image Info Delivery */
var ts_pdf_url="tssppdf.aspx"; /* Backend PDF Generation */
/* Default Database Settings */
/* Default Database Settings */
var ts_cstring="Server=127.0.0.1;User Id=sa;Password=;Initial 
Catalog=tiffserver_docs;";
var ts_image_table="tiffserver_docs_table";
var ts_image_table_key="doc_id";
var ts_image_column="doc_contents";
var ts_annotation_table="tiffserver_docs_table";
var ts_annotation_table_key="doc_id";
var ts_annotation_column="doc_annotations";
}
Variable
Description
ts_cstring
Database Connection String
ts_image_table
Name of the table containing the document images
ts_image_table_key
The key column of the table [A single key column is required]
ts_image_column
Name of the image column holding the document image
ts_annotation_table*
Name of the table to hold annotations
ts_annotation_table_key*
The key column of the table [A single key column is required]
ts_annotation_column*
Name of the text column to hold annotations
* A table is always required, even if TIFF Server has not been used to create the annotations.
Documents you may be interested
Documents you may be interested