c# winforms pdf viewer control : Convert selected pages of pdf to word control software system web page windows winforms console aspEasyPDF6-part1186

' Adds a graphic on the page
PDF.AddText " My first graphic on a PDF<br> "
PDF.AddGraphic " C:\inetpub\images\test.jpg "
PDF.BinaryWrite
' destroy it
setpdf = nothing
%>
Only for professional version
<!--#include file ="easypdf.inc"-->
<%  ' Create the component
set PDF = server.createobject("aspPDF.EasyPDF")
' Adds a graphic on the page
PDF.AddText " The Google logo:<br> "
' Sets the proxy if we have a proxy server
PDF.SetProperty csPropIntProxyServer, " 192.1.1.1:80 "
PDF.AddGraphic "
http://www.google.com/images/logo.gif "
PDF.BinaryWrite
' destroy it
setpdf = nothing
%>
See Also
AddGraphicPos
csPropGraphZoom
csPropGraphWZoom
csPropGraphHZoom
csPropGraphJPGQuality    
csPropGraphImageIndex
- aspEasyPDF - 
61 / 325
Generated with aspEasyPDF library using demo sample CHM2PDF
Convert selected pages of pdf to word - control software system:C# PDF Page Extract Library: copy, paste, cut PDF pages in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Easy to Use C# Code to Extract PDF Pages, Copy Pages from One PDF File and Paste into Others
www.rasteredge.com
Convert selected pages of pdf to word - control software system:VB.NET PDF Page Extract Library: copy, paste, cut PDF pages in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Detailed VB.NET Guide for Extracting Pages from Microsoft PDF Doc
www.rasteredge.com
AddGraphicPos
Function explain
Name
AddGraphicPos 
Parameters
as Double , Y as Double , Filename as
String
Result
Boolean 
From version  1.0
Draws an image to the x, y coordinate on the actual page. 
See full information on  
AddGraphic
function along with some samples.
Syntax
PDF .AddGraphicPos X, Y, FileName
See Also
AddGraphic
csPropGraphZoom
csPropGraphWZoom
csPropGraphHZoom
- aspEasyPDF - 
62 / 325
Generated with aspEasyPDF library using demo sample CHM2PDF
control software system:C# PDF Page Insert Library: insert pages into PDF file in C#.net
page2 }; // Specify a position for inserting the selected pages. doc2.InsertPages( pages, pageIndex); // Output the new document Insert Blank Page to PDF File in
www.rasteredge.com
control software system:VB.NET PDF Page Insert Library: insert pages into PDF file in vb.
As String = Program.RootPath + "\\" Output.pdf" Dim doc1 As doc1.GetPage(2) Dim pages = New PDFPage Specify a position for inserting the selected pages.
www.rasteredge.com
AddEllipse
Function explain
Name
AddEllipse 
Parameters
as Double , Y as Double, X1 as Double , Y1 as
Double
Result
(none)
From version  
2.00
Draws an Ellipse / Circle on the coordinates of the actual page, see properties that affect the appearance of the shadow
colors
and fill colors.
To set the filled color use the constant 
csPropGraphFillColor
with the 
csPropGraphFilled
to indicate that the ellipse
is filled, if you don't set 
csPropGraphFilled
the ellipse will be transparent.
X,Y is the first coordinate point and X1,Y1 is the second coordinate point, you can not specify the height and width of
the graphic but you can do a small function to calculate it. See example. 
Syntax
PDF .AddEllipse X, Y, X1, Y1
Example in ASP
<% 
' Create the component
set PDF = server.createobject(" aspPDF.EasyPDF
")
PDF.AddEllipse 10,10, 50, 50
PDF.BinaryWrite
set pdf = nothing
%>
See Also
AddLine
AddBox
AddBoxRounded
csPropGraphFillColor
csPropGraphFilled
csPropGraphLineColor
csPropGraphDashLine
csPropGraphWL
- aspEasyPDF - 
63 / 325
Generated with aspEasyPDF library using demo sample CHM2PDF
control software system:C# Word - Insert Blank Word Page in C#.NET
doc1 = new DOCXDocument(inputFilePath1); // Specify a position for inserting the selected page. Add and Insert Multiple Word Pages to Word Document Using C#.
www.rasteredge.com
control software system:C# PDF Page Rotate Library: rotate PDF page permanently in C#.net
270; // Rotate the selected page. PDFDocument.RotatePage(inputFilePath, pageIndex, rotateInDegree); How to Use C#.NET Demo Code to Rotate All PDF Pages in C#
www.rasteredge.com
- aspEasyPDF - 
64 / 325
Generated with aspEasyPDF library using demo sample CHM2PDF
control software system:C# WPF PDF Viewer SDK to annotate PDF document in C#.NET
1. Highlight text. Click to highlight selected PDF text content. 2. Underline text. Click to underline selected PDF text. 3. Wavy underline text.
www.rasteredge.com
control software system:VB.NET PDF Image Redact Library: redact selected PDF images in vb.
Create PDF from Tiff; C#: Convert PDF to Word; C#: Convert C#: Convert PDF to HTML; C#: Convert PDF to Jpeg; C# C# File: Split PDF; C# Page: Insert PDF pages; C#
www.rasteredge.com
AddEventObj
Function explain
Name
AddEventObj 
Parameters
EventType as Integer , Name as String, Script as String , ScriptType as
String
Result
Boolean 
From version  
2.00
Professional feature " 
Adds an event to an object, the object must have been created before adding the event.
Event Type
Number
name
Description; when is called?
0
aaOnMouseIn
When the mouse enters on the object zone
1
aaOnMouseOut
When then mouse leaves the object zone
2
aaOnMouseDown
When the user press the mouse button
3
aaOnMouseUp
When the user release the mouse button
4
aaOnFocusEnter
When the user focus the object ( TAB key )
5
aaOnFocusExit
When the user leaves the object ( this is the best event to perform
actions )
6
aaOnVisible
When the object is visible to client
7
aaOnUnVisible
When the object is being hidden ( moving from one page to another )
8
aaOnKeyPress
When the user press a key on the object
9
aaOnDrawField
When the object is being drawed
10
aaOnValueChange
When the object has been changed
The function has been programmed in a way that it can be add more useful script languages or even types, at the
moment there are two languages supported; JavaScript and aspEasyPDF Script.
JavaScript
It fully supports the JavaScript, please read the Adobe® documentation to known how to use the language in
combination of a PDF document. You should download the Acrobat JavaScript document from adobe.
Some samples:
PDF.AddEventObj aaOnMouseUp, " form.buton ", " app.alert({cMsg: ""Error! Try again!"",cTitle: ""Acme Testing
Service""}); ", " JavaScript ";
PDF.AddEventObjaaOnMouseUp, " form.buton ", " this.getField(""form.editme"").value=""MITData, S.C.P.""; ", "
J ";
- aspEasyPDF - 
65 / 325
Generated with aspEasyPDF library using demo sample CHM2PDF
control software system:C# PDF Image Redact Library: redact selected PDF images in C#.net
C#.NET convert PDF to text, C#.NET convert PDF to images pages extract, copy, paste, C#.NET rotate PDF pages, C#.NET in C#.NET class to darken selected image on
www.rasteredge.com
control software system:VB.NET PDF insert image library: insert images into PDF in vb.net
PDF document. Add images to any selected PDF page in VB.NET. Ability to put image into defined location on PDF page. Provide image
www.rasteredge.com
aspEasyPDF
This is combination of Acrobat® and JavaScript language in an easy language to interact with the document. The best
part is that is very easy to remember and use, and the worse is that is quite limited and it only accepts one line.
JavaScript can how big you want but the aspEasyPDF script is just one instruction. ( This will change on future version )
Some samples:
PDF.AddEventObj aaOnMouseUp, " form.buton ", " SubmitForm(""http:/127.0.0.1/pdf_print_vars.asp"",
""form.checkbox"", ""form.editme"") ", " aspEasyPDF Script ";
PDF.AddEventObjaaOnMouseUp, " form.buton ", " Hide(""form.checkbox"", true) ", " A ";
Funtions explanations:
FINDDIALOG
Show the Find Dialog.
Syntax:  FindDialog()
HIDE
Hides or Shows an object
Syntax:  Hide( objectname,  booleanvalue)
Sample: Hide( " frm.UserName ", false )
MOVETO
Moves to from the current location to a different place, the values can be:
FirstPage
NextPage
PrevPage
LastPage
GoBack
GoForward
Syntax:  MoveTo( wherestring )
Sample: MoveTo( " FirstPage " )
- aspEasyPDF - 
66 / 325
Generated with aspEasyPDF library using demo sample CHM2PDF
control software system:VB.NET PDF - Annotate PDF with WPF PDF Viewer for VB.NET
1. Highlight text. Click to highlight selected PDF text content. 2. Underline text. Click to underline selected PDF text. 3. Wavy underline text.
www.rasteredge.com
control software system:VB.NET PDF - Annotate PDF Online with VB.NET HTML5 PDF Viewer
Click to highlight selected PDF text content. Fill color and transparency are able to be set in properties. 3. Click to underline selected PDF text.
www.rasteredge.com
PRINT
Show the Print Dialog. For security reasons Acrobat® will never print automatically a document.
Syntax:  Print()
RESETFORM
Set the default values of all objects
Syntax:  ResetForm()
SAVEAS
Show the SaveAs Dialog. 
Syntax:  SaveAs()
SUBMITFORM
Submits the objects forms values to an URL to be processed. You must specify the URL address and the list
of all objects to be send on the POST command.
Syntax:  SubmitForm( URLaddress,  list of form names)
Sample: SubmitForm( "http:/127.0.0.1/pdf_print_vars.asp", "form.checkbox", "form.editme" )
ZOOM
Zooms the page, the values can be:
FitPage
FitVisible
ZoomViewIn
ZoomViewOut
Syntax:  Zoom( zoomstring )
Sample: Zoom( " FitPage " )
- aspEasyPDF - 
67 / 325
Generated with aspEasyPDF library using demo sample CHM2PDF
See Also
AddFormObj
NOTICE:Adobe® Acrobat® is copyrighted of Adobe Systems Incorporated.
- aspEasyPDF - 
68 / 325
Generated with aspEasyPDF library using demo sample CHM2PDF
AddHTML
Function explain
Name
AddHTML 
Parameters
HTMLCode  as String
Result
(none)
From version  1.10
Professional feature " 
This is the most powerful option from the Pro version, it enables you to read HTML language and render it directly on
the PDF without using concatenated methods to make the same draw. We have seen codes reduced from the standard
version to the PRO version in 60% to 80% less sentences as the HTML offers you to render it directly with just one
sentence.
See supported HTML tags
The parameter can be a string containing html sentences, a file or  an url that retrieves remote information and the it
process it. Processing URL is quite slow as it has to get it trough the network but you can linked to an ASP page that
produces and output and the PDF interprets it to render it to PDF.
Some notes, you can not use the AddHTML
method as the AddText
as it works a little different. AddText
and AddHTML
writes directly to the document without knowing what will be on the next sentence, this makes a powerful way on
working on fast a real docs. But what about tables on html?, you can not use the AddHTML
to work in different
sentence, you must pass all the table contents on a variable and then to the AddHTML
Syntax
PDF .AddHTML Html as String
Example
<% 
' Create the component
set PDF = server.createobject(" aspPDF.EasyPDF ")
' Adds html from an URL
PDF.AddHTML " http://www.mysite.com/asp/clauses.asp?data=10
"
PDF.BinaryWrite
' destroy it
setpdf = nothing
%>
Tables example
<% 
' Create the component
set PDF = server.createobject(" aspPDF.EasyPDF ")
' Do not use different addHtml sentence to compose the table, just use a variable
s = " <table width=""100%""> "
s = s & " <tr>  "
s = s & " <td>Mi field 1</td><td>Mi result</td>  "
s = s & " </tr>  "
s = s & " </table> "
PDF.AddHTML s
- aspEasyPDF - 
69 / 325
Generated with aspEasyPDF library using demo sample CHM2PDF
PDF.BinaryWrite
' destroy it
setpdf = nothing
%>
See Also
AddHTMLPos
csHTML_FontName
csHTML_FontSize
- aspEasyPDF - 
70 / 325
Generated with aspEasyPDF library using demo sample CHM2PDF
Documents you may be interested
Documents you may be interested