mvc open pdf file in new window : Convert pdf to word for editing text control Library platform web page asp.net .net web browser msmanual9-part1876

xmlpdfusermanualpage86of101
XMLPDF5.5.7ProgrammersGuide
November2006
26:Reference
Thiselementhasnoattributes.
26.17 <graphic>
Thiselementisacontainerfor<boxes>and<segment>elementsandshould
appearonlyindocumenttemplateXML.
SeeSection 26.5, "<boxes>"foranexampleofthiselement.
Thiselementhasnoattributes.
26.18 <header>
Summaryofattributes
Attribute
Description
widths
Setsthewidthsofcolumns.
border-width-all
border-width-inner
border-width-outer
border-width-top
border-width-bottom
border-width-left
border-width-right
Setsthewidthsoftheheaderborder.
border-color-all
border-color-inner
border-color-outer
border-color-top
border-color-bottom
border-color-left
border-color-right
Setsthecolorofheaderborder. See
Section 15, "Colors"
padding-all
padding-inner
padding-outer
padding-top
padding-bottom
padding-left
padding-right
Sets cellpadding. Paddingistheamountof space
betweenthe border of acellandthetextor image init.
The header element is used to define a table header. It must appear inside a
<table>element.
The header element is very similar to a <table> element. It contains <row>
elements whichinturncontain<cell>elements.
Thetableheaderis repeatedateachtimethetable is brokenbyapage break.
Thisisanexample of aheader element.
<table border-width-all='.1' indent-left='3cm'
indent-right='3cm' padding-all='2'>
<header fill-color='blue'>
<row>
<cell>header one</cell>
<cell>header two</cell>
</row>
</header>
<row>
<cell>one</cell>
<cell>two</cell>
</row>
</table>
www.xmlpdf.com
Convert pdf to word for editing text - control Library platform:C# PDF Convert to Text SDK: Convert PDF to txt files in C#.net, ASP.NET MVC, WinForms, WPF application
C# PDF to Text (TXT) Converting Library to Convert PDF to Text
www.rasteredge.com
Convert pdf to word for editing text - control Library platform:VB.NET PDF Convert to Text SDK: Convert PDF to txt files in vb.net, ASP.NET MVC, WinForms, WPF application
VB.NET Guide and Sample Codes to Convert PDF to Text in .NET Project
www.rasteredge.com
xmlpdfuser manual page87of101
XMLPDF5.5.7ProgrammersGuide
November 2006
26:Reference
Thisproduces thefollowingtable:
header one
header two
one
two
Note thatthenumber of columns in atable header canbe differenttothe number
of columnsinthetable body.
26.19 <image>
Summary of attributes
Attribute
Description
anti-aliasing
SpecifieswhetherthePDF readerwill apply
anti-aliasingtothe image. Anti-aliasingremoves
jaggedbordersandlines, especiallywhentheimageis
viewedathighzoom levels. Bydefaultanti-aliasingis
on.
Thefollowingtwoimagesareloadedfrom the same
file,theone onthelefthasanti-aliasing='false',the one
ontherightusesthedefaultsetting.
directory
Specifiesthe nameofa directoryinwhichtolookfor
thenamedfile. Thisattribute is optional. If itis used
thenthedirectoryname is prependedtothefile-name
valueinorder tomakeafullpathtothe image file.
dpi
Avaluewhichdefinestheimagedots per inchvalue,
typically72or 300.ThisappliesonlytoJPEGand
SVGimages.Thisvaluechangesthesizeoftheimage
whenitisstoredinthe PDFfile. Thedefaultvalueis
thevalue storedintheimagefile.
file-name
Specifiesthe nameofthefilewhichcontains theimage.
Fromversion3.0thiscanbeafullURLsuchas
http://www.xmlpdf.com/images/download.gif withthe
imagebeingretrievedfromtheURL.
image-name
Specifiesalogicalnamewhichisusedtouniquely
identifythe image withinthe document. Thisvalueis
usedontheshow-imageelementtosaywhichimage to
display.
image-type
Asof version1.8of theXMLPDF librarythisattribute
isnolongerused. Theimagefile is readtodetermine
thetypeof theimage.
quality
Avaluewhichdefinestheimagequality.Thisapplies
onlytoJPEG and SVG images.Thisvaluechanges
thecompressionlevelof theimagewhenitisstoredin
thePDF file. Thevaluerangesfrom1to100, with1
givinglowestqualityandhighestcompressionand100
givingthehighestqualityandlargestimagesize. The
defaultis 100.
www.xmlpdf.com
control Library platform:C# HTML5 PDF Viewer SDK to view, annotate, create and convert PDF
multiple file formats or export PDF to Word, Tiff and RasterEdge provide HTML5 PDF Viewer and Editor to help C# users to view, annotate, convert and edit
www.rasteredge.com
control Library platform:VB.NET PDF Convert to Word SDK: Convert PDF to Word library in vb.
Why do we need to convert PDF to Word file in VB.NET class PDF to Word conversion lies in the fact that compared to PDF document format, Word file is
www.rasteredge.com
xmlpdfuser manual page88of101
XMLPDF5.5.7ProgrammersGuide
November 2006
26:Reference
The <image> elementmustoccur inside an <images> elementbeforethe image
isreferencedbya<show-image> element.
See Section 18, "Images" for examples on how to include an image in the
document.
PNG, GIF and JPEG formats are supported by XMLPDF. Interlaced or
transparentversionsof theseformatsarenotsupported.
26.20 <images>
This element is a container for <image> elements and should appear only in
documenttemplateXML.
SeeSection 18, "Images"for anexampleofthis element.
Thiselementhas noattributes.
26.21 <if>
Summary of attributes
Attribute
Description
condition
Specifiesthe nameofconditionwhichistestedtosee if
thecontentof thiselementshouldbeincludedinthe
PDF file.
The if elementis usedtocontrol whatparts of adocument shouldbeincludedin
the PDF file at the time of generation. This allows you to include or exclude
parts of the document template XML depending on data values specified in the
data XML.
The if elementcontains other blocklevelelements suchas <table>, <block> and
other <if>elements.
SeeSection 22.2, "Conditional processing"foranexample of this element.
26.22 <ifnot>
Summary of attributes
Attribute
Description
condition
Specifiesthe nameofconditionwhichistestedtosee if
thecontentof thiselementshouldbeincludedinthe
PDF file.
Theifnotelementisusedtocontrolwhatpartsof adocumentshould be included
inthe PDF file atthe timeof generation. This allows you toinclude or exclude
parts of the document template XML depending on data values specified in the
data XML.
The ifnotelement contains other block level elements such as <table>, <block>
andother<if> elements.
SeeSection 22.2, "Conditional processing"foranexample of this element.
www.xmlpdf.com
control Library platform:VB.NET PDF: Basic SDK Concept of XDoc.PDF
VB.NET programmers can convert Word, Excel, PowerPoint Tiff, Jpeg Conversely, conversion from PDF to Word (.docx) and paste, cut, rotate, and save PDF page(s
www.rasteredge.com
control Library platform:How to C#: Basic SDK Concept of XDoc.PDF for .NET
C# programmers can convert Word, Excel, PowerPoint Tiff, Jpeg, Bmp Conversely, conversion from PDF to Word (.docx) and paste, cut, rotate, and save PDF page(s
www.rasteredge.com
xmlpdfuser manual page89of101
XMLPDF5.5.7ProgrammersGuide
November 2006
26:Reference
26.23 <info>
Summary of attributes
Attribute
Description
field
Thefieldtoinsertintothedocument. Currentvalid
valuesare'version'toinsertthecurrentXMLPDF
versionand'date'toinsertthedate.
flags
Whenfield='date',thiscanbeusedtospecifiythedate
format. This canbeanyvaluespecifiedfor the
java.text.SimpleDateFormatclass. Seeexamples
below.
Thiselementis replacedinthe PDF filebythe fieldspecified.
Examples ofdateformattingare:
Field Flags
Result
date
yyyy.MM.ddG 'at'hh:mm:ss z
2003.05.29G at11:44:20+12
date
EEE,MMMd, ''yy
EEE, May29, 03
date
h:mm a
11:44a
date
hh'o''clock'a, zzzz
11oclocka, +12:00
date
K:mm a,z
K:44a,+12
26.24 <link>
Summary of attributes
Attribute
Description
url
Specifiesthe URL thislinkpointsto. This canbe
either ahyperlinksuchas 'http://www.xmlpdf.com'ora
mailtolinksuchas 'mailto:support@xmlpdf.com'
Thelinkelementisusedtoinsert ahyperlinkinto thePDF document. Whenthe
user clicks on the linktheir browser will be launched and willgotothe specified
url.
Click onthewww.xmlpdf.com linkatthebottomleftof this page toseehow this
works.
The link element contains text which appears in the document. This text is
independent of the url attribute. For example the link atthe bottom of this page
iscreatedwiththefollowingXML:
<link url='http://www.xmlpdf.com'>
www.xmlpdf.com
</link>
26.25 <merge>
Summary of attributes
Attribute
Description
source-element-name Specifiesthe nameoftheelementtobemergedfrom
thedataXML.
This element is used to include an element from the data XML into the PDF
document.
The value of the source-element-name attribute must match the name of a
<source-element> elementinthedataXML.
www.xmlpdf.com
control Library platform:C# TIFF: TIFF Editor SDK to Read & Manipulate TIFF File Using C#.
Convert Tiff file to bmp, gif, png, jpeg, and scanned PDF with high fidelity in C#. 2. Render text to text, PDF, or Word file. Tiff Metadata Editing in C#.
www.rasteredge.com
control Library platform:VB.NET PDF Library SDK to view, edit, convert, process PDF file
Able to render and convert PDF document to/from to integrate and perform PDF text extraction feature in offers robust APIs for editing PDF document hyperlink
www.rasteredge.com
xmlpdfuser manual page90of101
XMLPDF5.5.7ProgrammersGuide
November 2006
26:Reference
The mergeelement is replacedcompletelyby the contents of the source-element
element from the data XML. The source-element element can contain any
amountof XML, for instancethe documentXML mightcontaina table element
and the header for the table, and all of the rows mightbe mergedfrom the data
XMLwithasingle mergeelement.
SeeSection 22, "Merging Data"foranexample of mergingdata.
26.26 <new-page>
Summary of attributes
Attribute
Description
next-page-number
Specifiesthe number of thenextpage. Thisisoptional.
Thiselementcauses animmediatepagebreakinthePDF document.
Setting the next-page-number attribute will change the page number of the
followingpage. Thisis usedin this manualtomake the secondphysicalpagebe
page number 1insteadof 2.
The total number of pages in the document retrieved by the
forward reference elementisalsoadjusted.
26.27 <next-page>
Summary of attributes
Attribute
Description
orientation
Specifiesthe orientationof thenextpageandall
followingpages untilanother <next-page> elementis
found. Thisattributeisoptional. If itappears its value
mustbe'portrait'or 'landscape'.
margin-left
Sets theleftmarginfor thenextandfollowingpages.
margin-right
Sets therightmarginfor thenextandfollowingpages.
margin-top
Sets thetopmarginforthenextandfollowingpages.
margin-bottom
Sets thebottommarginfor thenextandfollowing
pages.
This element sets parameters for the nextpage. Itdoes not cause a page break,
this is doneusingthe<new-page> element.
26.28 <page-footer>
Thepage-footer elementdefinesa tablewhichisrepeatedatthe endof eachpage
fromthepointatwhichitappears.
The page footer can be changed at any point by putting another page-footer
elementintheXML.
The page-footer element has the same attributes and contents as a <table>
element. SeeSection 26.40, "<table>"for more details.
In addition to the normal table attributes the first-page and last-page attributes
can also be used to limit the range of pages on which this page footer will be
displayed.
26.29 <page-header>
The page-header element defines a table which is repeated at the start of each
page from thepointatwhichitappears.
www.xmlpdf.com
control Library platform:VB.NET PDF Converter Library SDK to convert PDF to other file
MS Word 2003, 2007 and above versions are supported For how to convert PDF to HTML document in VB.NET application, a simple and easy VB Conversion of PDF to Text.
www.rasteredge.com
control Library platform:VB.NET PDF File Merge Library: Merge, append PDF files in vb.net
Merge Microsoft Office Word, Excel and PowerPoint data to PDF form. mature library SDK which adds powerful Portable Document Format (PDF) editing solutions and
www.rasteredge.com
xmlpdfuser manual page91of101
Thisispage91
XMLPDF5.5.7ProgrammersGuide
November 2006
26:Reference
The page header can be changed at any point by putting another page-header
elementintheXML.
The page-header element has the same attributes and contents as a <table>
element. SeeSection 26.40, "<table>"for more details.
In addition to the normal table attributes the first-page and last-page attributes
can also be used to limit the range of pages onwhich this page header will be
displayed.
26.30 <page-number>
This element is used to insert the current page number intothe document. For
instancethe followingXML:
<block>
This is page <page-number/>
</block>
Producesthis output:
Thiselementhas noattributes.
26.31 <restore>
This element is used to restore the values of text formatting attributes such as
font-sizeandfont-namewhichhavebeenchangedusinga <set> element.
SeeSection 11.2, "Changing fonts"for anexampleof this.
Thiselementhas noattributes.
www.xmlpdf.com
control Library platform: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 Keep Microsoft Office Word, Excel and PowerPoint links in PDF document.
www.rasteredge.com
control Library platform:VB.NET TIFF: Read, Edit & Process TIFF with VB.NET Image Document
Windows and mobile viewers establishing; text & graphics Started with VB.NET TIFF Editing, VB.NET powerful & profession imaging controls, PDF document, image to
www.rasteredge.com
xmlpdfuser manual page92of101
XMLPDF5.5.7ProgrammersGuide
November 2006
26:Reference
26.32 <row>
Summary of attributes
Attribute
Description
align
Specifiesthe textalignment fortext whichappears
insidecellswhichare inthis row. See
Section 13.2, "Horizontal alignment"
background-gray
Specifiesgrayshadingwhichappears inthe
backgroundallcells intherow. This is expressedasa
percentagebetween0and100,as in
background-gray='20'.Smallernumbers aredarker.
Thefollowingnestedtable showscolumns with
background-grayvalues of 20, 40and60respectively.
20
40
60
border-color-all
border-color-inner
border-color-outer
border-color-top
border-color-bottom
border-color-left
border-color-right
Sets thecolor of row borders. Thesecolorsare
inheritedbycellsinthe row. If colors are notspecified
ontherow elementtheywillbeinheritedfrom thetable
elementcontainingtherow.
border-width-all
border-width-inner
border-width-outer
border-width-top
border-width-bottom
border-width-left
border-width-right
Sets thewidthsof row borders. If border widths arenot
specifiedonthe row elementtheywillbeinherited
fromtable elementcontainingtherow.
class
Specifiesthe class ofthis row sothatstyles which
matchthe class willautomaticallybeapplied. See
Section 19, "Styles"
fill-color
Specifiesbackgroundcolor of therow. See
Section 15, "Colors".
Thefollowingnestedtable showscolumns with
fill-color values of 'red'and'blue'respectively.
red
blue
font-name
Specifiesthe font faceofthis row.See
Section 11, "Fonts"
font-size
Specifiesthe font size of this row. See
Section 11, "Fonts"
padding-all
padding-inner
padding-outer
padding-top
padding-bottom
padding-left
padding-right
Sets cellpaddingforcellsinthis row. Paddingisthe
amountof spacebetweentheborderof acellandthe
textor image init.
text-color
Specifiesthe foregroundcolor of textof cells inthe
row. SeeSection 15, "Colors".
Thefollowingnestedtable showscolumns with
fill-color values of 'red'and'blue'and
text-color='white'.
www.xmlpdf.com
xmlpdfuser manual page93of101
XMLPDF5.5.7ProgrammersGuide
November 2006
26:Reference
Attribute
Description
red
blue
Rows are used in <table>, <header>, <page-header> and <page-footer>
elements. Rows contain cells which contain text or images. See
Section 26.8, "<cell>".
Any attribute set on a row will be inherited by the cells in that row unless
overriddenbyanattributespecifiedonthecellitself.
26.33 <sequence-get>
Summary of attributes
Attribute
Description
name
Specifiesthe nameofthesequencetoget thevalue
from.
This element is used to get current value of a sequence defined by a
define-sequence element as described in Section 26.12, "<define-sequence>".
This gets the current value of the element andinserts itintothe document. The
sequencevalueisalsoincremented.
26.34 <segment>
Summary of attributes
Attribute
Description
x1
xcoordinateof startpointof line
x2
xcoordinateof endpoint of line
y1
ycoordinateof startpointof line
y2
ycoordinateof endpoint of line
width
widthofthelinesegmentinpoints
Linescanbedrawnonthe pageusingthe<segment> element.
Each segment has an start point defined in by values x1,y1 and and end point
definedby x2,y2. These x andy values are absolute coordinates in points, with
0,0beingatthe bottom leftcorner of thepage.
For examplethis pageas acropmarkdrawnnearthebottom leftcorner.
ThiswasdrawnwiththefollowingXML:
<graphic>
<segment width='1' x1='90' x2='110' y1='100' y2='100' />
<segment width='1' x1='100' x2='100' y1='110' y2='90' />
</graphic>
www.xmlpdf.com
xmlpdfuser manual page94of101
XMLPDF5.5.7ProgrammersGuide
November 2006
26:Reference
26.35 <show-image>
Summary of attributes
Attribute
Description
align
Specifiesthe textalignment tousefor this block. See
Section 13.2, "Horizontal alignment"
class
Specifiesthe class ofthis blocksothatstyleswhich
matchthe class willautomaticallybeapplied. See
Section 19, "Styles"
image-name
Specifiesthe nameoftheimagetoinsertatthispointin
thedocument.
indent-left
Specifiesthe leftindentationof thetext. Indentationis
theamountof spacebetweenthemarginof thepage
andtheedgeofthetext,image or table. Thedistance
fromtheleftedge of the pagetothe contentisthe
left-marginvaluefromthedocumentelementplus the
indent-leftvalueoftheblock.
indent-right
Specifiesthe rightindentationof the text. Indentation
istheamountof space betweenthemarginofthepage
andtheedgeofthetext,image or table. Thedistance
fromtherightedgeofthepage tothecontentis the
right-marginvalue from thedocumentelementplusthe
indent-rightvalueof theblock.
scale-width
Specifiesthe widthof theimage. This is optionalandis
usedtochange thedefaultsize of the image. If only
one of scale-widthandscale-heightareusedtheaspect
ratiooftheimageispreserved.
scale-height
Specifiesthe heightof theimage. This is optionaland
isusedtochangethe defaultsizeoftheimage. If only
one of scale-widthandscale-heightareusedtheaspect
ratiooftheimageispreserved.
space-before
Sets theamountof whitespacewhichappears before
thecontentof theblock.
space-after
Sets theamountof whitespacewhichappears after the
contentof theblock. Thespacebetweentwoblocksis
thespace-after of the firstblockplus thespace-before
of thesecondblock.
space-required
Sets theamountof spacewhichmustbepresentonthe
page for theblocktobe output. If thatamountof space
isnotavailable thewholeblockismovedtothenext
page. Thisis useful topreventheadersbeingoutputby
themselves atthebottomof thepage.
Images are included in the document using an image element as described in
Section 18, "Images"and Section 26.19, "<image>". Theycanthenbedisplayed
at a given point by using a show-image element with the name attribute
correspondingtothenamegivenontheimageelement.
An image can be displayed any number of times using a single image element
andmultipleshow-image elements.
Ashow-image element can be used both inside a document element to display
the image inline like a text block or inside a cell element to display the image
insidea table.
www.xmlpdf.com
xmlpdfuser manual page95of101
XMLPDF5.5.7ProgrammersGuide
November 2006
26:Reference
Images displayedwithina tablewillbe scaledtofitthecellwidth. Images inthe
mainbodyof the documentcanberesizedusing thescale-widthandscale-height
attributes.
Thefollowingexampleshows animageatitsdefaultsize:
andwithindent-left='5cm'andident-right='5cm',sothe imageis scaledtofitthe
widthavailable:
and with scale-width='100'so the image is scaled and the aspect ratio is
preserved:
andwith scale-width='100'and scale-height='200'so the imageis scaledandthe
aspectratiois notpreserved:
www.xmlpdf.com
Documents you may be interested
Documents you may be interested