open pdf from windows form c# : Remove text watermark from pdf online software SDK cloud windows winforms .net class RasterEdgeImagingDeveloperGuide11-part1686

The parameter type ImageType can be chosen for any supported image format mentioned in 
previous section.  You can also let your  program  choose the ImageType automatically using 
similar API as follows: 
public REImage(String filename) 
Demo code to construct an image source: 
L
i
s
t
<
R
E
Im
age>
 tm
p
Im
gL
i
s
=
ne
L
i
s
t
<
R
E
Im
age>
(); 
            Dir
ec
t
o
r
y
I
n
f
o
d
=
ne
w Dir
ec
t
o
r
y
I
n
f
o
(fil
epa
t
h
); 
             f
o
r
each
 (
F
il
e
I
n
f
o
 fil
e
 i
n
d
.G
e
t
F
il
e
s()) 
{
                // 
con
s
tr
uc
t im
age
s
ou
r
ce
 fr
o
m j
peg
and
png
 im
age
s
                if (fil
e
.
Ex
t
en
s
i
on
.
ToLo
w
e
r().
C
on
t
a
i
n
s(
"
j
peg"
) || 
fil
e
.
Ex
t
en
s
i
on
.
ToLo
w
e
r().
C
on
t
a
i
n
s(
"png"
))  
{
R
E
Im
age
 im
g
=
ne
R
E
Im
age
(fil
e
.
Fu
llN
a
m
e
); 
                    tm
p
Im
gL
i
s
t.A
dd
(im
g
); 
}
}
R
E
Im
age
[] Im
ageSou
r
ce
=
  tm
p
Im
gL
i
s
t.
To
Arr
ay
();
Create
Image
from
Bitmap
public REImage (Bitmap image) 
Imaging
Conversion
You can apply image conversion among image types like JPEG, GIF and PNG using the following 
APIs in REImage Class. 
public static void ConvertImage( ImageType targetType, String sourcePath, String targetPath) 
static void ConvertImage(ImageType targetType,Stream srcStream,Stream targetStream) 
Annotate
on
REImage
You can draw different kinds of predefined annotations onto REImages, and save them to file or 
stream. Below is the sample code: 
pub
li
c
s
t
a
ti
c
vo
i
d
Te
s
tR
E
Im
age
A
nno
t
a
ti
on
() 
Remove text watermark from pdf online - delete, remove text from PDF file in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Allow C# developers to use mature APIs to delete and remove text content from PDF document
how to delete text in a pdf file; erase text in pdf document
Remove text watermark from pdf online - VB.NET PDF delete text library: delete, remove text from PDF file in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
VB.NET Programming Guide to Delete Text from PDF File
how to delete text from pdf document; how to delete text in pdf file
{
  // i
nvoke
 t
h
i
s
 m
e
t
hod
on
l
y
once
a
t t
he
s
t
a
rt 
o
you
p
r
o
j
ec
t t
o
 r
eg
i
s
t
e
a
ll 
a
ss
e
m
b
li
e
s
you
 r
e
f
e
r
enced
 t
o
you
p
r
o
j
ec
W
o
r
k
R
eg
i
s
tr
y
.
R
e
s
e
t(); 
//
Load
an
P
NG fil
e
 t
o
R
E
Im
age
ob
j
ec
R
E
Im
age
 im
g
=
ne
R
E
Im
age
(@
"c
:\
s
a
m
p
l
eP
NG.
png"
, Im
ageType
.
P
NG); 
// 
c
r
ea
t
e
a
 li
ne
anno
t
a
ti
on
s
t
a
rti
ng
a
po
i
n
t (
0
.
0
and
end
 wit
h
po
i
n
t(
100
,
100
), 
no
t
e
t
ha
on
l
y
 t
he
 r
e
l
a
ti
ve
po
s
iti
on
o
f t
he
s
t
a
rt 
and
end
po
i
n
t i
s
u
s
ed
L
i
ne
A
nno
t
a
ti
on
anno
=
 A
nno
t
a
ti
on
G
ene
r
a
t
o
r.
Cr
ea
t
eL
i
ne
A
nno
t
a
ti
on
(
ne
L
i
nePo
i
n
t(
0
0
), 
ne
L
i
nePo
i
n
t(
100
100
)); 
   // 
s
e
t li
ne
s
tr
oke
co
l
o
and
s
t
y
l
e
anno
.
L
i
nePen
=
Pen
G
ene
r
a
t
o
r.
Cr
ea
t
eL
i
nePen
(
ne
R
E
C
o
l
o
r(
255
0
0
255
), 
5
.
0F
); 
anno
.
L
i
nePen
.
S
t
a
rtC
ap
=
ne
L
i
ne
C
ap
(); 
anno
.
L
i
nePen
.
S
t
a
rtC
ap
.
C
ap_
Wi
d
t
h
=
2
.
0
f; 
anno
.
L
i
nePen
.
S
t
a
rtC
ap
.
C
apS
t
y
l
e
=
L
i
ne
C
apS
t
y
l
e
.Di
a
m
ond
anno
.
Se
t
T
r
an
s
pa
r
ency
(
0
.
4
f); 
// 
d
r
a
w li
ne
anno
t
a
ti
on
on
 t
he
R
E
Im
age
The
po
s
iti
on
 i
s
 m
ea
s
u
r
ed
a
de
f
au
lt 
96
r
e
s
o
l
u
ti
on
 wit
h
 r
e
s
pec
t t
o
 t
he
 im
age
.A
nd
 t
he
r
e
f
o
r
e
 it i
s
s
ub
j
ec
t t
o
 t
he
change
o
f t
he
s
i
ze
o
f t
he
 tiff im
age
            im
g
.Dr
a
wA
nno
t
a
ti
on
(
ne
Po
i
n
t(
100
100
), 
anno
); 
             im
g
.
Save
(Im
ageType
.
P
NG, @
"c
:\
s
a
m
p
l
eP
NGA
nno
t
a
t
ed
.
png"
); 
}
See also Annotation 
Save
REImage
You can save REImage to file, stream and byte array with specified image type. Useful APIs in 
REImage Class: 
void Save(ImageType targetType, String fileName) 
void Save(ImageType targetType, Stream stream
˅
byte[] Save(ImageType targetType) 
Image
Convert
C# PDF Page Delete Library: remove PDF pages in C#.net, ASP.NET
Free online C# class source code for deleting specified PDF pages in .NET console application. Able to remove a single page from PDF document.
how to delete text from a pdf reader; delete text pdf preview
C# PDF Password Library: add, remove, edit PDF file password in C#
Support to add password to PDF document online or in C# String outputFilePath = Program.RootPath + "\\" Remove.pdf"; // Remove password in the input file and
remove text from pdf reader; how to delete text in pdf using acrobat professional
RasterEdge Imaging toolkit provides reliable encoding and decoding functions for raster images 
of different formats. With APIs provided, you can convert between different image formats with 
ease. You can also convert image source into PDF or TIFF Document using functions provided by 
the Document SDK. 
How
to
Convert
Between
Raster
Images
There are static APIs for you to implement image conversion. For example, you can convert a 
JPEG image file to PNG format using the following code. 
pub
li
c
s
t
a
ti
c
vo
i
d
Te
s
tR
E
Im
age
C
onve
rs
i
on
() 
{
//
you
need
 t
o
 i
nvoke
 t
h
i
s
 m
e
t
hod
on
l
y
once
a
t t
he
beg
i
nn
i
ng
o
you
code
 r
eg
i
s
t
e
a
ll 
a
ss
e
m
b
li
e
s
you
 r
e
f
e
r
enced
 t
o
you
p
r
o
j
ec
W
o
r
k
R
eg
i
s
tr
y
.
R
e
s
e
t(); 
 // 
C
onve
rt im
age
 i
n
P
NG f
o
rm
a
t t
o
 im
age
 i
n
J
PE
G(J
P
G) f
o
rm
a
and
s
ave
 it t
o
 t
a
r
ge
t fil
ePa
t
h
R
E
Im
age
.
C
onve
rtIm
age
(Im
ageType
.
J
PE
G, @
"c
:\
s
a
m
p
l
eP
NGA
nno
t
a
t
ed
.
png"
@
"c
:\
s
a
m
p
l
eP
NGA
nno
t
a
t
ed1
.j
pg"
); 
}
How
to
Convert
Raster
Images
to
PDF
or
TIFF
You can convert REImage source to PDF or TIFF Document using the following code: 
pub
li
c
s
t
a
ti
c
vo
i
d
Te
s
tIm
ageToP
D
F
() 
{
/ /
you
need
 t
o
 i
nvoke
 t
h
i
s
 m
e
t
hod
on
l
y
once
a
t t
he
beg
i
nn
i
ng
o
you
code
 r
eg
i
s
t
e
a
ll 
a
ss
e
m
b
li
e
s
you
 r
e
f
e
r
enced
 t
o
you
p
r
o
j
ec
W
o
r
k
R
eg
i
s
tr
y
.
R
e
s
e
t(); 
//C
on
s
tr
uc
t im
age
s
ou
r
ce
R
E
Im
age
 im
g1
=
ne
R
E
Im
age
(@
"c
:\
s
a
m
p
l
eP
NG.
png"
, Im
ageType
.
P
NG); 
R
E
Im
age
 im
g2
=
ne
R
E
Im
age
( @
"c
:\
s
a
m
p
l
eP
NGA
nno
t
a
t
ed1
.j
pg"
, Im
ageType
.
J
PE
G); 
R
E
Im
age
[] im
ageSou
r
ce
=
ne
R
E
Im
age
[
2
]; 
            im
ageSou
r
ce
[
0
=
 im
g1
            im
ageSou
r
ce
[
1
=
 im
g2
// 
c
r
ea
t
e
a
pd
docu
m
en
u
s
i
ng
 im
age
s
ou
r
ce
one
 im
age
pe
page
P
D
F
D
ocu
m
en
doc
=
ne
P
D
F
D
ocu
m
en
t(im
ageSou
r
ce
); 
doc
.
Save
(@
"c
:\
s
a
m
p
l
e
.
pd
f
"
); 
}
pub
li
c
s
t
a
ti
c
vo
i
d
Te
s
tIm
ageToT
I
FF
() 
{
//i
nvoke
 t
h
i
s
 m
e
t
hod
on
l
y
once
a
t t
he
beg
i
nn
i
ng
o
you
code
 r
eg
i
s
t
e
a
ll 
a
ss
e
m
b
li
e
s
you
 r
e
f
e
r
enced
 t
o
you
p
r
o
j
ec
W
o
r
k
R
eg
i
s
tr
y
.
R
e
s
e
t(); 
C# PDF bookmark Library: add, remove, update PDF bookmarks in C#.
Ability to remove and delete bookmark and outline entry.GetLocation()); Console.WriteLine("Text: " + entry.GetText NET Sample Code: Update PDF Document Outline
erase pdf text online; remove text from pdf acrobat
C# PDF metadata Library: add, remove, update PDF metadata in C#.
Add metadata to PDF document in C# .NET framework program. Remove and delete metadata from PDF file. Also a PDF metadata extraction control.
how to delete text in a pdf acrobat; delete text in pdf file online
//C
on
s
tr
uc
t im
age
s
ou
r
ce
R
E
Im
age
 im
g1
=
ne
R
E
Im
age
(@
"c
:\
s
a
m
p
l
eP
NG.
png"
, Im
ageType
.
P
NG); 
R
E
Im
age
 im
g2
=
ne
R
E
Im
age
(@
"c
:\
s
a
m
p
l
eP
NGA
nno
t
a
t
ed1
.j
pg"
, Im
ageType
.
J
PE
G); 
R
E
Im
age
[] im
ageSou
r
ce
=
ne
R
E
Im
age
[
2
]; 
            im
ageSou
r
ce
[
0
=
 im
g1
            im
ageSou
r
ce
[
1
=
 im
g2
// 
c
r
ea
t
e
a
T
I
FF
docu
m
en
u
s
i
ng
 im
age
s
ou
r
ce
one
 im
age
pe
page
T
I
FF
D
ocu
m
en
doc
=
ne
T
I
FF
D
ocu
m
en
t(im
ageSou
r
ce
); 
doc
.
Save
(@
"c
:\
s
a
m
p
l
e
.
T
I
FF"
); 
}
See Also Document Imaging. 
C# PDF url edit Library: insert, remove PDF links in C#.net, ASP.
Free online C# class source code for editing PDF hyperlink in Visual Studio .NET Easy to put link into specified position of PDF text, image and PDF table.
remove text watermark from pdf online; pdf editor delete text
C# PDF Convert to Word SDK: Convert PDF to Word library in C#.net
Quick to remove watermark and save PDF text, image, table, hyperlink and bookmark to Word Convert PDF to multiple MS Word formats such as .doc and .docx.
how to erase in pdf text; erase text from pdf
ImageProcessing
RasterEdge Imaging provides you with the ability to perform operations on existing REImage 
object  to  create  a  new  REImage  object.  These  functions  are  located  under 
RasterEdge.Imaging.Processing Assmebly. Generally speaking, there are three kinds of image 
processing operations available for you. 
Category 
Illustration 
Channels Processing
Operate on images with multiple components, like color images
s
Effects Processing 
Perform visual effects on images like mosaic or beveling 
Filters 
Perform mathematical filtering like high or low pass filtering 
Transforms 
Perform coordinate transforms or depth transforms like rotate or 
ripple 
APIs  to  perform  these  operations  are  in  the  ImageProcessing  Class  located  in 
RasterEdge.Imaging.Processing assembly. 
C# PDF File Compress Library: Compress reduce PDF size in C#.net
NET framework. Remove bookmarks, annotations, watermark, page labels and article threads from PDF while compressing. C# class demo
how to edit and delete text in pdf file; how to erase pdf text
C# PDF Text Redact Library: select, redact text content from PDF
Edit Bookmark. Metadata: Edit, Delete Metadata. Watermark: Add Watermark to PDF. Call the Redact SDK API to remove or redact sensitive text that is visible
delete text from pdf online; remove text from pdf
Annotations
Introduction
to
Annotations
RasterEdge Annotation is a managed .NET Assembly that can perform annotation capabilities to 
markup, draw, and visualize  objects on  an  image or document. Annotation objects include 
primitive shapes (lines, rectangle, polygon and ellipse), text, callout, rubber stamp, hotspot, Free 
HandEmbedded images and hot spots. You can set properties of these annotations, and add 
these annotations onto REImage and Document. 
With Windows Forms viewer control or ASP.NET AJAX driven Webviewer, these annotations can 
be independently resized, moved, rotated, and placed on different layers. Annotation can be 
imported  or  exported  from/to  an  xml  file.  Try  our  online  Demo  at  
http://www.rasteredge.com/demo/online-document-viewer/ for more detailed information. 
Features of Annotation Assembly 
x
Draw an arbitrary number of annotation objects to an image or document 
x
Object Oriented Design for every annotation object 
x
Annotation objects can be moved, resized, and rotated independently from image or 
document 
x
GDI+ graphics allows any object to be rendered at variable transparency 
x
Save or load annotations as a separate XML file 
x
Annotations can be rotated along with image in 90 degree increments 
x
Individual points from annotations supporting points (Freehand, Polygon, etc.) can be 
repositioned 
x
Able to change shape of annotation object 
x
Annotations can be burned onto image with a single method 
x
Render annotation object to REImage for further operation 
x
Various properties can be set when creating an annotation object 
Following is a list of supported annotations by RasterEdge Annotation assembly. 
x
Rectangle 
x
Ellipse 
x
Line 
x
Freehand 
x
Freehand Lines 
x
Text 
x
Rectangular HotSpot 
x
Freehand HotSpot 
C# HTML5 PDF Viewer SDK to create PDF document from other file
Image: Remove Image from PDF Page. Image: Copy, Paste Metadata: Edit, Delete Metadata. Watermark: Add Watermark to PDF. rotate PDF pages, C#.NET search text in PDF
pull text out of pdf; how to delete text from pdf
x
Embedded Image  
x
Referenced Image 
x
Polygon 
x
Lines 
x
Rubber Stamp 
x
Callout Annotation 
Requirements
Assemblies you need: 
RasterEdge.Imaging.Annotation.dll 
RasterEdge.Imaging.Basic.dll 
Namespace: 
u
s
i
ng
R
a
s
t
e
r
Edge
.Im
ag
i
ng
.A
nno
t
a
ti
on
u
s
i
ng
R
a
s
t
e
r
Edge
.Im
ag
i
ng
.
B
a
s
i
c
Generate
an
AnnotationObject
You can generate an Annotation object programmatically without using a graphics interface.  
When generating an annotation, a number of properties can be set. Following is an example to 
generate a hotspot annotation object. 
Note: In RasterEdge Imaging, Annotation is represented as an Annotation object derived from 
the supper class AnnotaionBasic. Since some APIs are inherited from this super class, a type 
conversion may be needed. 
First, add reference to 
R
a
s
t
e
r
Edge
.Im
ag
i
ng
.A
nno
t
a
ti
on
.
Example code: 
using
R
a
s
t
e
r
Edge
.Im
ag
i
ng
.A
nno
t
a
ti
on
How to Generate an Annotation Object Programmatically 
C# 
// 
s
e
anno
t
a
ti
on
s
i
ze
// 
s
e
xand
y
coo
r
d
i
na
t
e
o
f t
he
 ri
gh
t t
op
ve
rt
ex
o
f t
h
i
s
anno
t
a
ti
on
 r
ec
t
ang
l
e
// t
he
ac
t
ua
s
hape
o
f r
ubbe
r
S
t
a
m
p
 i
s
con
t
a
i
ned
 i
n
 t
h
i
s
 r
ec
t
ang
l
e
.  
fl
oa
x
=
120
.
0
f; 
fl
oa
y
=
120
.
0
f; 
fl
oa
t wi
d
t
h
=
300
.
0
f; 
fl
oa
he
i
gh
=
100
.
0
f; 
s
tri
ng
 t
ex
=
"
t
h
i
s
 i
s
R
ubbe
r
S
t
a
m
p
anno
t
a
ti
on"
Fon
t f
on
=
ne
Fon
t(
"
Ari
a
l
"
12
.
0F
Fon
t
S
t
y
l
e
.It
a
li
c
); 
 A
nno
t
a
ti
on
Br
u
s
h
 f
on
tBr
u
s
h
=
ne
w A
nno
t
a
ti
on
Br
u
s
h
(); 
            f
on
tBr
u
s
h
.
F
ill
Type
=
F
ill
Type
.
So
li
d
            f
on
tBr
u
s
h
.
So
li
d_
C
o
l
o
=
R
E
C
o
l
o
r.
F
r
o
mAr
gb
(
Sy
s
t
e
m.Dr
a
wi
ng
.
C
o
l
o
r.
Bl
ue
.
To
Ar
gb
()); 
R
ubbe
r
S
t
a
m
p
A
nno
t
a
ti
on
anno
=
 A
nno
t
a
ti
on
G
ene
r
a
t
o
r.
Cr
ea
t
e
R
ubbe
r
S
t
a
m
p
A
nno
t
a
ti
on
(
x
y
, wi
d
t
h
he
i
gh
t, 
t
ex
t, f
on
t, f
on
tBr
u
s
h
); 
anno
.O
u
t
L
i
ne
=
ne
L
i
nePen
(); 
anno
.O
u
t
L
i
ne
.
Br
u
s
h
=
ne
w A
nno
t
a
ti
on
Br
u
s
h
(); 
anno
.O
u
t
L
i
ne
.
Br
u
s
h
.
F
ill
Type
=
F
ill
Type
.
So
li
d
anno
.O
u
t
L
i
ne
.
Br
u
s
h
.
So
li
d_
C
o
l
o
=
ne
R
E
C
o
l
o
r(
255
10
100
100
); 
anno
.O
u
t
L
i
ne
.Wi
d
t
h
=
2
.
0
f; 
anno
.
F
ill 
=
ne
w A
nno
t
a
ti
on
Br
u
s
h
(); 
anno
.
F
ill.
F
ill
Type
=
F
ill
Type
.
So
li
d
anno
.
F
ill.
So
li
d_
C
o
l
o
=
ne
R
E
C
o
l
o
r(
255
20
20
20
); 
anno
.
C
o
r
ne
rR
ad
i
u
s
=
1000
f; 
//
s
e
t t
he
ove
r
a
ll tr
an
s
pa
r
ency
, t
h
i
s
va
l
ue
ha
s
an
ove
r
a
ll im
pac
on
a
ll 
//
co
l
o
rs
 r
e
l
a
t
ed
 t
o
 t
h
i
s
anno
t
a
ti
on
. N
o
t
e
 t
he
de
f
au
lt 
va
l
ue
 i
s
1
 w
h
i
ch
// i
s
co
m
p
l
e
t
e
 tr
an
s
pa
r
ency
anno
.
Se
t
T
r
an
s
pa
r
ency
(
0
.
4
f); 
Burn
Annotation
to
Document
or
Image
Once you generate an Annotation object, you can add and burn it onto documents like PDF, TIFF 
and Word, then save it in native file format. You can also burn annotation on to documents 
using REImage objects. 
How
to
Burn
Annotation
Object
to
Document
(PDF,
TIFF,
WORD,
EXECEL,
PPT)
Example Code: 
pub
li
c
s
t
a
ti
c
vo
i
d
Te
s
t
P
D
F
A
dd
A
nno
t
a
ti
on
() 
{
//
u
s
e
code
 i
n
p
r
ev
i
ou
s
s
ec
ti
on
 t
o
gene
r
a
t
e
a
 r
ubbe
s
t
a
rm
p
anno
t
a
i
on
R
ubbe
r
S
t
a
m
p
A
nno
t
a
ti
on
anno
=
Te
s
tA
nno
t
a
ti
on
.
add
R
ubbe
r
S
t
a
m
p
A
nno
t
a
ti
on
(); 
//l
oad
an
P
D
F
 D
ocu
m
en
P
D
F
D
ocu
m
en
doc
=
ne
P
D
F
D
ocu
m
en
t(@
"c
:\R
E
Im
age
.
pd
f
"
); 
// 
add
 t
h
i
s
anno
t
a
ti
on
 i
n
 t
he
 firs
page
doc
.G
e
t
Page
(
0
).A
dd
A
nno
t
a
ti
on
(
ne
Po
i
n
t
F
(
100
f, 
100
f), 
anno
); 
// 
s
ave
 t
h
i
s
anno
t
a
t
ed
pd
f t
o
 fil
e
doc
.
Save
(@
"c
:\
anno
t
a
t
ed
.
pd
f
"
); 
}
pub
li
c
s
t
a
ti
c
vo
i
d
Te
s
tW
o
r
d
A
nno
t
a
ti
on
() 
{
//
u
s
e
code
 i
n
p
r
ev
i
ou
s
s
ec
ti
on
 t
o
gene
r
a
t
e
a
 r
ubbe
s
t
a
rm
p
anno
t
a
i
on
R
ubbe
r
S
t
a
m
p
A
nno
t
a
ti
on
anno
=
Te
s
tA
nno
t
a
ti
on
.
add
R
ubbe
r
S
t
a
m
p
A
nno
t
a
ti
on
(); 
//l
oad
an
 W
o
r
d
 D
ocu
m
en
DOCXD
ocu
m
en
doc
=
ne
w DOCXD
ocu
m
en
t(@
"c
:\
Te
s
tW
o
r
d
.
docx"
); 
C
on
s
o
l
e
.Writ
eL
i
ne
(
doc
.G
e
t
Page
C
oun
t()); 
// 
add
 t
h
i
s
anno
t
a
ti
on
 i
n
 t
he
 firs
page
doc
.G
e
t
Page
(
0
).A
dd
A
nno
t
a
ti
on
(
ne
Po
i
n
t
F
(
100
f, 
100
f), 
anno
); 
// 
s
ave
 t
h
i
s
anno
t
a
t
ed
 w
o
r
d
 t
o
 fil
e
doc
.
Save
(@
"c
:\
anno
t
a
t
ed
.
docx"
); 
}
pub
li
c
s
t
a
ti
c
vo
i
d
Te
s
t
T
I
FF
A
nno
t
a
ti
on
() 
{
 //
u
s
e
code
 i
n
p
r
ev
i
ou
s
s
ec
ti
on
 t
o
gene
r
a
t
e
a
 r
ubbe
s
t
a
rm
p
anno
t
a
i
on
R
ubbe
r
S
t
a
m
p
A
nno
t
a
ti
on
anno
=
Te
s
tA
nno
t
a
ti
on
.
add
R
ubbe
r
S
t
a
m
p
A
nno
t
a
ti
on
(); 
//l
oad
a
 tiff D
ocu
m
en
T
I
FF
D
ocu
m
en
doc
=
ne
T
I
FF
D
ocu
m
en
t(@
"c
:\
s
a
m
p
l
eT
iff.tiff
"
); 
C
on
s
o
l
e
.Writ
eL
i
ne
(
doc
.G
e
t
Page
C
oun
t()); 
// 
add
 t
h
i
s
anno
t
a
ti
on
 i
n
 t
he
 firs
page
o
f t
he
 tiff 
docu
m
en
doc
.G
e
t
Page
(
0
).A
dd
A
nno
t
a
ti
on
(
ne
Po
i
n
t
F
(
100
f, 
100
f), 
anno
); 
// 
s
ave
 t
h
i
s
anno
t
a
t
ed
 tiff t
o
 fil
e
doc
.
Save
(@
"c
:\
anno
t
a
t
ed
.
T
iff
"
); 
}
See Also PDF Annotation 
See Also TIFF Annotation 
See Also WORD Annotation 
How
to
Burn
Annotations
on
Imgaes
Once you get a REImage object and an annotation object, you can draw annotations onto it and 
save it to different image types. 
Example code: 
pub
li
c
s
t
a
ti
c
vo
i
d
Te
s
tR
E
Im
age
A
nno
t
a
ti
on
() 
{
     // i
nvoke
 t
h
i
s
 m
e
t
hod
on
l
y
once
 i
n
 t
he
beg
i
nn
i
ng
o
you
code
 r
eg
i
s
t
e
a
ll 
a
ss
e
m
b
li
e
s
you
 r
e
f
e
r
enced
 t
o
you
p
r
o
j
ec
W
o
r
k
R
eg
i
s
tr
y
.
R
e
s
e
t(); 
             //
Load
an
P
NG fil
e
 t
o
R
E
Im
age
ob
j
ec
R
E
Im
age
 im
g
=
ne
R
E
Im
age
(@
"c
:\
s
a
m
p
l
eP
NG.
png"
, Im
ageType
.
P
NG); 
// 
c
r
ea
t
e
a
 li
ne
anno
t
a
ti
on
s
t
a
rti
ng
a
po
i
n
t (
0
.
0
and
end
 wit
h
po
i
n
t(
100
,
100
), 
no
t
e
 t
ha
on
l
y
 t
he
 r
e
l
a
ti
ve
po
s
iti
on
o
f t
he
s
t
a
rt 
and
end
po
i
n
t i
s
u
s
ed
L
i
ne
A
nno
t
a
ti
on
anno
=
 A
nno
t
a
ti
on
G
ene
r
a
t
o
r.
Cr
ea
t
eL
i
ne
A
nno
t
a
ti
on
(
ne
L
i
nePo
i
n
t(
0
0
), 
ne
L
i
nePo
i
n
t(
100
100
)); 
               // 
s
e
t li
ne
s
tr
oke
co
l
o
and
s
t
y
l
e
anno
.
L
i
nePen
=
Pen
G
ene
r
a
t
o
r.
Cr
ea
t
eL
i
nePen
(
ne
R
E
C
o
l
o
r(
255
0
0
255
), 
5
.
0F
); 
anno
.
L
i
nePen
.
S
t
a
rtC
ap
=
ne
L
i
ne
C
ap
(); 
anno
.
L
i
nePen
.
S
t
a
rtC
ap
.
C
ap_
Wi
d
t
h
=
2
.
0
f; 
anno
.
L
i
nePen
.
S
t
a
rtC
ap
.
C
apS
t
y
l
e
=
L
i
ne
C
apS
t
y
l
e
.Di
a
m
ond
anno
.
Se
t
T
r
an
s
pa
r
ency
(
0
.
4
f); 
// 
d
r
a
w li
ne
anno
t
a
ti
on
on
 t
he
R
E
Im
age
The
po
s
iti
on
 i
s
 m
ea
s
u
r
ed
a
de
f
au
lt 
96
r
e
s
o
l
u
ti
on
 wit
h
 r
e
s
pec
t t
o
 t
he
 im
age
.A
nd
 t
he
r
e
f
o
r
e
 it i
s
s
ub
j
ec
t t
o
 t
he
change
o
f t
he
s
i
ze
o
f t
he
 tiff im
age
            im
g
.Dr
a
wA
nno
t
a
ti
on
(
ne
Po
i
n
t(
100
100
), 
anno
); 
             im
g
.
Save
(Im
ageType
.
P
NG, @
"c
:\
s
a
m
p
l
eP
NGA
nno
t
a
t
ed
.
png"
); 
}
Annotations
on
ASP.NET
DocumentViewer
or
Windows
Form
DocumentViewer
Using our ASP.NET or Windows Form Document Viewer, you can annotate on a document with 
graphics interface. RasterEdge.Imaging.WebViewer assembly contains web controls that you can 
embed in your ASP.NET project by copying a couple of lines of JavaScript. Try our online demo at 
http://www.rasteredge.com/demo/online-document-viewer/ for more detailed information. For 
WinForm project, there are controls located in RasterEdge.Imaging.WinControl assembly and 
you can add to your own project. 
Annotation
Assemblies
Documents you may be interested
Documents you may be interested