open pdf file in asp net c# : Adding text to pdf form Library software component .net winforms asp.net mvc 120xdorg4-part414

Creating an RTF Template    2-21
<sales year=2004>
<division>
<name>Groceries</name>
<totalsales>3810</totalsales>
<costofsales>2100</costofsales>
</division>
<division>
<name>Toys</name>
<totalsales>2432</totalsales>
<costofsales>1200</costofsales>
</division>
<division>
<name>Cars</name>
<totalsales>6753</totalsales>
<costofsales>4100</costofsales>
</division>
<division>
<name>Hardware</name>
<totalsales>2543</totalsales>
<costofsales>1400</costofsales>
</division>
<division>
<name>Electronics</name>
<totalsales>5965</totalsales>
<costofsales>3560</costofsales>
</division>
</sales>
This example will show how to insert a chart into your template to display it as a 
vertical bar chart as shown in the following figure: 
Adding text to pdf form - insert text into PDF content in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
XDoc.PDF for .NET, providing C# demo code for inserting text to PDF file
how to insert text box on pdf; adding text to pdf file
Adding text to pdf form - VB.NET PDF insert text library: insert text into PDF content in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Providing Demo Code for Adding and Inserting Text to PDF File Page in VB.NET Program
adding text pdf file; how to insert text box in pdf
2-22    Oracle XML Publisher Report Designer's Guide
Note the following attributes of this chart:
The style is a vertical bar chart.
The chart displays a background grid.
The components are colored.
Sales totals are shown as Y-axis labels.
Divisions are shown as X-axis labels. 
The chart is titled.
The chart displays a legend.
Each of these properties can be customized to suit individual report requirements.
Inserting the Dummy Image
The first step is to add a dummy image to the template in the position you want the 
chart to appear. The image size will define how big the chart image will be in the final 
document.
VB.NET PDF Text Box Edit Library: add, delete, update PDF text box
Link: Edit URL. Bookmark: Edit Bookmark. Metadata: Edit, Delete Metadata. Form Process. Provide VB.NET Users with Solution of Adding Text Box to PDF Page in VB
add text pdf file; add text to pdf acrobat
VB.NET PDF Page Insert Library: insert pages into PDF file in vb.
Support adding PDF page number. Offer PDF page break inserting function. DLLs for Adding Page into PDF Document in VB.NET Class. Add necessary references:
how to add a text box to a pdf; adding text to pdf document
Creating an RTF Template    2-23
Important: You must insert the dummy image as a "Picture" and not 
any other kind of object. 
The following figure shows an example of a dummy image:
The image can be embedded inside a for-each loop like any other form field if you want 
the chart to be repeated in the output based on the repeating data. In this example, the 
chart is defined within the sales year group so that a chart will be generated for each 
year of data present in the XML file.
Right-click the image to open the Format Picture palette and select the Web tab. Use the
Alternative text entry box to enter the code to define the chart characteristics and data 
definition for the chart. 
Adding Code to the Alternative Text Box
The following graphic shows an example of the XML Publisher code in the Format 
Picture Alternative text box:
C# PDF Text Box Edit Library: add, delete, update PDF text box in
Provide .NET SDK library for adding text box to PDF document in .NET WinForms application. Adding text box is another way to add text to PDF page.
how to add text to a pdf document using reader; adding text to pdf in preview
VB.NET PDF Library SDK to view, edit, convert, process PDF file
Support adding protection features to PDF file by adding password, digital signatures and redaction feature. Various of PDF text and images processing features
how to enter text into a pdf form; add text box in pdf document
2-24    Oracle XML Publisher Report Designer's Guide
The content of the Alternative text represents the chart that will be rendered in the final
document. For this chart, the text is as follows:
chart:
<Graph graphType = "BAR_VERT_CLUST">
<Title text="Company Sales 2004" visible="true" 
horizontalAlignment="CENTER"/>
<Y1Title text="Sales in Thousands" visible="true"/>
<O1Title text="Division" visible="true"/>
<LocalGridData colCount="{count(//division)}" rowCount="1">
<RowLabels>
<Label>Total Sales $1000s</Label>
</RowLabels>
<ColLabels>
<xsl:for-each select="//division">
<Label>
<xsl:value-of select="name"/>
</Label>
</xsl:for-each>
</ColLabels>
<DataValues>
<RowData>
<xsl:for-each select="//division">
<Cell>
<xsl:value-of select="totalsales"/>
</Cell>
</xsl:for-each>
</RowData>
</DataValues>
</LocalGridData>
</Graph>
C# PDF Annotate Library: Draw, edit PDF annotation, markups in C#.
Provide users with examples for adding text box to PDF and edit font size and color in text box field in C#.NET program. C#.NET: Draw Markups on PDF File.
how to add text fields to a pdf; how to add text fields to a pdf document
C# PDF insert image Library: insert images into PDF in C#.net, ASP
Insert images into PDF form field. To help you solve this technical problem, we provide this C#.NET PDF image adding control, XDoc.PDF for .NET.
add text to pdf using preview; how to enter text into a pdf
Creating an RTF Template    2-25
The first element of your chart text must be the chart: element to inform the RTF 
parser that the following code describes a chart object. 
Next is the opening <Graph> tag. Note that the whole of the code resides within the 
tags of the <Graph> element. This element has an attribute to define the chart type: 
graphType. If this attribute is not declared, the default chart is a vertical bar chart. BI 
Beans supports many different chart types. Several more types are presented in this 
section. For a complete listing, see the BI Beans graph DTD documentation. 
The following code section defines the chart type and attributes:
<Title text="Company Sales 2004" visible="true" 
horizontalAlignment="CENTER"/>
<Y1Title text="Sales in Thousands" visible="true"/>
<O1Title text="Division" visible="true"/>
All of these values can be declared or you can substitute values from the XML data at 
runtime. For example, you can retrieve the chart title from an XML tag by using the 
following syntax:
<Title text="{CHARTTITLE}" visible="true" horizontalAlighment="CENTER"/>
where "CHARTTITLE" is the XML tag name that contains the chart title. Note that the 
tag name is enclosed in curly braces.
The next section defines the column and row labels:
<LocalGridData colCount="{count(//division)}" rowCount="1">
<RowLabels>
<Label>Total Sales $1000s</Label>
</RowLabels>
<ColLabels>
<xsl:for-each select="//division">
<Label>
<xsl:value-of select="name"/>
</Label>
</xsl:for-each>
</ColLabels>
The LocalGridData element has two attributes: colCount and rowCount. These 
define the number of columns and rows that will be shown at runtime. In this example, 
a count function calculates the number of columns to render:
colCount="{count(//division)}"
The rowCount has been hard-coded to 1. This value defines the number of sets of data 
to be charted. In this case it is 1.
Next the code defines the row and column labels. These can be declared, or a value 
from the XML data can be substituted at runtime. The row label will be used in the 
chart legend (that is, "Total Sales $1000s"). 
The column labels for this example are derived from the data: Groceries, Toys, Cars, 
and so on. This is done using a for-each loop:
VB.NET PDF Text Add Library: add, delete, edit PDF text in vb.net
Edit URL. Bookmark: Edit Bookmark. Metadata: Edit, Delete Metadata. Form Process. Professional VB.NET Solution for Adding Text Annotation to PDF Page in
adding text field to pdf; adding text to a pdf in acrobat
C# PDF Page Insert Library: insert pages into PDF file in C#.net
By using reliable APIs, C# programmers are capable of adding and inserting (empty) PDF page or pages from various file formats, such as PDF, Tiff, Word, Excel
how to add text boxes to pdf; add text box in pdf
2-26    Oracle XML Publisher Report Designer's Guide
<ColLabels>
<xsl:for-each select="//division">
<Label>
<xsl:value-of select="name"/>
</Label>
</xsl:for-each>
</ColLabels>
This code loops through the <division> group and inserts the value of the <name> 
element into the <Label> tag. At runtime, this will generate the following XML:
<ColLabels>
<Label>Groceries</Label>
<Label>Toys</Label>
<Label>Cars</Label>
<Label>Hardware</Label>
<Label>Electronics</Label>
</ColLabels>
The next section defines the actual data values to chart:
<DataValues>
<RowData>
<xsl:for-each select="//division">
<Cell>
<xsl:value-of select="totalsales"/>
</Cell>
</xsl:for-each>
</RowData>
</DataValues>
Similar to the labels section, the code loops through the data to build the XML that is 
passed to the BI Beans rendering engine. This will generate the following XML:
<DataValues>
<RowData>
<Cell>3810</Cell>
<Cell>2432</Cell>
<Cell>6753</Cell>
<Cell>2543</Cell>
<Cell>5965</Cell>
</RowData>
</DataValues>
Additional Chart Samples
You can also display this data in a pie chart as shown in the following figure:
Creating an RTF Template    2-27
The following is the code added to the template to render this chart at runtime:
chart:
<Graph graphType="PIE">
<Title text="Company Sales 2004" visible="true"    
horizontalAlignment="CENTER"/>
<LocalGridData rowCount="{count(//division)}" colCount="1">
<RowLabels>
<xsl:for-each select="//division">     
<Label>
<xsl:value-of select="name"/>
</Label>
</xsl:for-each>
</RowLabels>
<DataValues>
<xsl:for-each select="//division">
<RowData>
<Cell>
<xsl:value-of select="totalsales"/>
</Cell>
</RowData>
</xsl:for-each>
</DataValues>
</LocalGridData>
</Graph>
Horizontal Bar Chart Sample
The following example shows total sales and cost of sales charted in a horizontal bar 
format. This example also adds the data from the cost of sales element (
<costofsales>) to the chart:
2-28    Oracle XML Publisher Report Designer's Guide
The following code defines this chart in the template:
chart:
<Graph graphType = "BAR_HORIZ_CLUST">
<Title text="Company Sales 2004" visible="true" 
horizontalAlignment="CENTER"/>
<LocalGridData colCount="{count(//division)}" rowCount="2">
<RowLabels>
<Label>Total Sales ('000s)</Label>
<Label>Cost of Sales ('000s)</Label>
</RowLabels>
<ColLabels>
<xsl:for-each select="//division">
<Label><xsl:value-of select="name"/></Label>
</xsl:for-each>
</ColLabels>
<DataValues>
<RowData>
<xsl:for-each select="//division">
<Cell><xsl:value-of select="totalsales"/></Cell>
</xsl:for-each>
</RowData>
<RowData>
<xsl:for-each select="//division">
<Cell><xsl:value-of select="costofsales"/></Cell>
</xsl:for-each>
</RowData>
</DataValues>
</LocalGridData>
</Graph>
To accommodate the second set of data, the rowCount attribute for the 
Creating an RTF Template    2-29
LocalGridData element is set to 2. Also note the DataValues section defines two 
sets of data: one for Total Sales and one for Cost of Sales.
Changing the Appearance of Your Chart
There are many attributes available from the BI Beans graph DTD that you can 
manipulate to change the look and feel of your chart. For example, the previous chart 
can be changed to remove the grid, place a graduated background, and change the bar 
colors and fonts as shown in the following figure:
The code to support this is as follows:
2-30    Oracle XML Publisher Report Designer's Guide
chart:
<Graph graphType = "BAR_HORIZ_CLUST">
<SeriesItems>
<Series id="0" color="#ffcc00"/>
<Series id="1" color="#ff6600"/>
</SeriesItems> 
<O1MajorTick visible="false"/>
<X1MajorTick visible="false"/>
<Y1MajorTick visible="false"/>
<Y2MajorTick visible="false"/>
<MarkerText visible="true" markerTextPlace="MTP_CENTER"/>
<PlotArea borderTransparent="true">
<SFX fillType="FT_GRADIENT" gradientDirection="GD_LEFT" 
gradientNumPins="300">
<GradientPinStyle pinIndex="1" position="1" 
gradientPinLeftColor="#999999" 
gradientPinRightColor="#cc6600"/>
</SFX>
</PlotArea>
<Title text="Company Sales 2004" visible="true">
<GraphFont name="Tahoma" bold="false"/>
</Title>
. . . 
</Graph>
The colors for the bars are defined in the SeriesItems section. The colors are defined 
in hexadecimal format as follows:
<SeriesItems>  
<Series id="0" color="#ffcc00"/>  
<Series id="1" color="#ff6600"/> 
</SeriesItems>
The following code hides the chart grid:
<O1MajorTick visible="false"/> 
<X1MajorTick visible="false"/> 
<Y1MajorTick visible="false"/> 
<Y2MajorTick visible="false"/>
The MarkerText tag places the data values on the chart bars:
<MarkerText visible="true" markerTextPlace="MTP_CENTER"/>
The PlotArea section defines the background. The SFX element establishes the 
gradient and the borderTransparent attribute hides the plot border:
<PlotArea borderTransparent="true">  
<SFX fillType="FT_GRADIENT" gradientDirection="GD_LEFT"   
gradientNumPins="300">  
<GradientPinStyle pinIndex="1" position="1"    
gradientPinLeftColor="#999999"    
gradientPinRightColor="#cc6600"/>  
</SFX> 
</PlotArea>
The Title text tag has also been updated to specify a new font type and size:
<Title text="Company Sales 2004" visible="true">  
<GraphFont name="Tahoma" bold="false"/> 
</Title>
Documents you may be interested
Documents you may be interested