HTML.title
11
Value
no value returned.
Author(s)
Eric Lecoutre
References
AsciiMathML:http://www1.chapman.edu/~jipsen/mathml/asciimath.xml
See Also
HTMLInitFile,HTML
Examples
## Not run:
fic = HTMLInitFile()
HTML.title("sample page",1,file=fic)
HTML("First paragraph",file=fic)
cat("Some text and then an equation:",file=fic,append=TRUE)
HTML(as.latex("\int_{-\infty}^{1}f(x)dx") ,file=fic)
cat(". Nice isnt it?",file=fic,append=TRUE)
HTML(as.latex("\int_{-\infty}^{1}f(x)dx",inline=FALSE) ,file=fic)
HTML(as.latex("\int_{-\infty}^{1}f(x)dx",inline=FALSE,count=TRUE) ,file=fic)
HTML(as.latex("\int_{-\infty}^{1}f(x)dx",inline=FALSE,label="My equation") ,file=fic)
cat("file:", fic, "is created")
browseURL(fic)
## End(Not run)
HTML.title
Writes a title in a target HTMLoutput
Description
Atitle is a string with the S3 class "title". The function as.title gives this class to an object,
so that title method of HTML could apply to it. However, it is also possibly to call this method,
explicitly, providing a plain string.
Usage
## S3 method for class title
HTML(x, HR = 2, CSSclass=NULL,
file = HTMLGetFile(), append=TRUE,...)
as.title(x)
Pdf add signature field - C# PDF Form Data fill-in Library: auto fill-in PDF form data in C#.net, ASP.NET, MVC, WinForms, WPF
Online C# Tutorial to Automatically Fill in Field Data to PDF
convert pdf to fill in form; convert word form to pdf fillable form
Pdf add signature field - VB.NET PDF Form Data fill-in library: auto fill-in PDF form data in vb.net, ASP.NET, MVC, WinForms, WPF
VB.NET PDF Form Data fill-in library: auto fill-in PDF form data in vb.net, ASP.NET, MVC, WinForms, WPF
convert pdf to form fill; converting a word document to pdf fillable form
12
HTML.title
Arguments
x
string
HR
rank attribute of the HTML <H?>tag
CSSclass
CSSclass to use for personalised reports
file
the target HTML file
append
logical. If ’TRUE’outputwill be appended to ’file’; otherwise, it will overwrite
the contents of ’file’
...
...
Value
no value returned.
Note
Fora discussion about .HTML.file default value forfile argument,refer toHTMLStart
Author(s)
Eric Lecoutre
See Also
HTML
Examples
## Write a title in the file /test.html.
## Target file may be changed when submitting this code...
myfile <- paste(tempfile(),".html",sep="")
tit1 <- as.title("This is method 1")
HTML(tit1, file=myfile)
HTML.title("This is method 2",file=myfile, HR=3)
cat("\n Test output written in: ",myfile)
C# PDF Digital Signature Library: add, remove, update PDF digital
things. Add a signature or an empty signature field in any PDF file page. Search unsigned signature field in PDF document. Prepare
convert word to pdf fillable form; attach file to pdf form
VB.NET PDF Digital Signature Library: add, remove, update PDF
things. Add a signature or an empty signature field in any PDF file page. Search unsigned signature field in PDF document. Prepare
create a fillable pdf form in word; convert excel spreadsheet to fillable pdf form
HTMLbr
13
HTMLbr
Facility functions to write HTML code
Description
Write <br>, <li> and <hr> tags, which are often used, to an output file.
Usage
HTMLbr(x=1, file = HTMLGetFile(), append=TRUE)
HTMLli(txt="", file = HTMLGetFile(), append=TRUE)
HTMLhr(file = HTMLGetFile(), Width = "100%", Size = "1",
CSSclass=NULL, append=TRUE)
Arguments
x
numberof <br> to put
txt
text to appear after the <li> tag
file
HTML target output file
Width
value of the width HR optional argument, in pixel or percent
Size
value of the size HR optional argument
append
logical. If ’TRUE’outputwill be appended to ’file’; otherwise, it will overwrite
the contents of ’file’
CSSclass
CSSclass to use for personalised reports
Value
no value returned.
Note
Fora discussion about .HTML.file default value forfile argument,refer toHTMLStart
Author(s)
Eric Lecoutre
See Also
HTML
C# PDF insert image Library: insert images into PDF in C#.net, ASP
field. Access to freeware download and online C#.NET class source code. How to insert and add image, picture, digital photo, scanned signature or logo into PDF
change font pdf fillable form; adding a signature to a pdf form
VB.NET PDF insert image library: insert images into PDF in vb.net
Import graphic picture, digital photo, signature and logo into PDF Add images to any selected PDF page in VB.NET. Insert images into PDF form field in VB.NET.
convert pdf fillable forms; convert word form to pdf with fillable
14
HTMLChangeCSS
Examples
## Insert a line to a HTML file
## Change the path/name of the file to redirect to your test file
myfile <- paste(tempfile(),".html",sep="")
HTMLhr(file=myfile)
cat("\n Test output written in: ",myfile)
HTMLChangeCSS
Change the current CSS file for dynamic use of package
Description
When using in dynamic mode, a call to HTMLStart copy the R2HTML.css file to the specified
output directory (temp by default). HTMLChangeCSS copy a new CSS file to this destination (or to
working directory). Then, the produced HTML files are now based on this new CSS.
Usage
HTMLChangeCSS(newCSS = "R2HTML", from = NULL)
Arguments
newCSS
Name of the CSSto use (without the extension)
from
Source directory where to search the CSS file
Value
Aboolean: wether this has been done or not.
Note
In order to work properly, this assumes you hae used R2HTML.css file (the default one), as this is
this file which will be replaced by the new one.
Author(s)
Eric Lecoutre
See Also
HTMLStart
How to C#: Basic SDK Concept of XDoc.PDF for .NET
You may add PDF document protection functionality into your C# program. To be specific, you can edit PDF password and digital signature, and set PDF file
converting pdf to fillable form; convert excel to fillable pdf form
VB.NET PDF: Basic SDK Concept of XDoc.PDF
You may add PDF document protection functionality into your VB.NET program. To be specific, you can edit PDF password and digital signature, and set PDF file
best pdf form filler; convert word to pdf fillable form online
HTMLCSS
15
Examples
## Not run:
HTMLStart()
(x=diag(3))
HTMLChangeCSS("Pastel")
# refresh the browser
## End(Not run)
HTMLCSS
Insert HTML code to refer to an external CSS file
Description
Allow to use CSS file in a report
Usage
HTMLCSS(file = HTMLGetFile(), append = TRUE, CSSfile = "R2HTML.css")
Arguments
file
the target HTML file
append
logical. If ’TRUE’outputwill be appended to ’file’; otherwise, it will overwrite
the contents of ’file’
CSSfile
name of the CSSfile to refer
Value
no value returned.
Author(s)
Eric Lecoutre
References
Forinformation about CSS, have a look at W3 website http://www.w3.org/Style/CSS/
Examples
myfile <- file.path(tempdir(),"tmp.html")
HTMLCSS(myfile,CSSfile="myownCSS.CSS")
VB.NET PDF Library SDK to view, edit, convert, process PDF file
NET program. Password, digital signature and PDF text, image and page redaction will be used and customized. PDF Annotation Edit.
change pdf to fillable form; pdf signature field
C# Create PDF Library SDK to convert PDF from other file formats
you can add some additional information to generated PDF file. What's more, you can also protect created PDF file by adding digital signature (watermark) on
convert word document to pdf fillable form; attach image to pdf form
16
HTMLgrid
HTMLgrid
Creates a
HTML
grid
using
ActiveWidget grid
-
www.activewidgets.com
Description
All HTMLgrid functions do use the component ActiveWidget grid. Basically, we use this compo-
nent to display data, so the functions export a data.frame. Data could be stored within the HTML
file (HTMLgrid_inline) or in an external raw text file which would be required asynchronously
(HTMLgrid).
Usage
HTMLgrid(x, file = HTMLGetFile(), append = TRUE,
includeref = FALSE, align = "center", digits = getOption("R2HTML.format.digits"),
nsmall = getOption("R2HTML.format.nsmall"),
big.mark = getOption("R2HTML.format.big.mark"),
big.interval = getOption("R2HTML.format.big.interval"),
decimal.mark = getOption("R2HTML.format.decimal.mark"),
asDF = TRUE, browse = FALSE, classes = NULL, showimages = TRUE)
HTMLgrid_inline(x,file = HTMLGetFile(), append=TRUE,
includeref=FALSE, align="center", digits=getOption("R2HTML.format.digits"),
nsmall = getOption("R2HTML.format.nsmall"),
big.mark = getOption("R2HTML.format.big.mark"),
big.interval = getOption("R2HTML.format.big.interval"),
decimal.mark = getOption("R2HTML.format.decimal.mark"),
asDF=TRUE,browse=FALSE, classes=sapply(x,class), showimages=TRUE)
HTMLgrid_summary(x,file=NULL,append=TRUE, digits=getOption("R2HTML.format.digits"),
nsmall = getOption("R2HTML.format.nsmall"),
big.mark = getOption("R2HTML.format.big.mark"),
big.interval = getOption("R2HTML.format.big.interval"),
decimal.mark = getOption("R2HTML.format.decimal.mark"), browse=FALSE)
HTMLgrid_references(file=)
Arguments
x
adata.frame
file
target HTLM output - see details below
append
logical. If ’TRUE’outputwill be appended to ’file’; otherwise, it will overwrite
the contents of ’file’
includeref
logical. If ’TRUE’, references to necessary CSS+Javascript files will be in-
cludes. See details.
align
"center","left" or "right"
digits
numberof digits to use for rounding
C# PDF Convert to Images SDK: Convert PDF to png, gif images in C#
image files including all PDF contents, like watermark and signature in .NET. C#.NET DLLs Solution for Converting Images to PDF in C# Add necessary references:
convert an existing form into a fillable pdf form; convert fillable pdf to html form
C# PDF remove image library: remove, delete images from PDF in C#.
Support removing vector image, graphic picture, digital photo, scanned signature, logo, etc. Remove Image from PDF Page Using C#. Add necessary references:
create a fillable pdf form; convert pdf form fillable
HTMLgrid
17
nsmall
number of digits which will always appear to the right of the decimal point in
formatting real/complex numbers in non-scientific formats. Allowed values ’0
<= nsmall <= 20’
big.mark
character; if not empty used as mark between every ’big.interval’ decimals be-
fore (hence ’big’)the decimal point
big.interval
see ’big.mark’above; defaults to 3
decimal.mark
the character used to indicate the numeric decimal point
asDF
logical. If ’TRUE’,output will be considered as a data frame (which also mean
by default we show icons for data type)
browse
logical. If ’TRUE’, the output file will directly be called within a browser.
classes
vector of classes for the object. If NULL, the default, will be created using real
classes. Could be used to bypass defaukt formatting associated with each class
showimages
logicial. Display or not little icons in columns headers
Details
Those exportation methods require severall external files, including the runtime version of Ac-
tiveWidgets grid. To include the necessary references, you can use HTMLgrid_references. Be
careful: if you intend to put multiple grids on a same output, the references has to be present only
once in the output. \ If you set the file argument to NULL, a new temp file will be created.
Value
file
target HTLM output
Note
Presentation relies on pure CSS + Javascript. It may be possible than future upgrade change the
presentation ofgrids created with this version.
Author(s)
Eric Lecoutre
References
ActiveWidgets Grid 1.0 - http://www.activewidgets.com
Examples
data(iris)
fic <- HTMLInitFile(useGrid=TRUE,useLaTeX=FALSE)
fic <- HTMLgrid_inline(iris,file=fic)
cat("\n Browse file fic:",fic)
## Not run: browseURL(fic)
18
HTMLInitFile
HTMLInitFile
Begins / Ends a new HTML report output
Description
HTMLInitFile handles the beginning and HTMLEndFile the ending of a HTML report, by writing
the HTML <body><head><title></title></head>...</body> tags and their options. When working
manually, the user may need to use it’s own functions or to explicitly write to a file using cat("",
file=).
HTMLInitFile and HTMLSetFile sets the default file path to be used by HTML functions, and
HTMLGetFile retrieves it.
Usage
HTMLInitFile(outdir = tempdir(), filename="index", extension="html",
HTMLframe=FALSE, BackGroundColor = "FFFFFF", BackGroundImg = "",
Title = "R output", CSSFile="R2HTML.css", useLaTeX=TRUE, useGrid=TRUE)
HTMLEndFile(file = HTMLGetFile())
HTMLSetFile(file)
HTMLGetFile()
Arguments
outdir
directory to store the output
filename
target HTML report filename
extension
target HTML report extension (htm, html,...)
HTMLframe
should the output be handled by frames [boolean]
BackGroundColor
option bgcolor forHTML tag <body>
BackGroundImg option background for HTML tag <body>
Title
string to pass to HTML <title>tag
CSSFile
path and name of a CSS file to use
useLaTeX
boolean - add required references to javascript AsciiMathML in order to use
as.latex
useGrid
boolean - add required references to javascript grid in order to use R2HTML
grid fonctions
file
target HTML file to set as default or to end
Value
physical path of the main HTML file that will serve for the report.
Author(s)
Eric Lecoutre
HTMLInsertGraph
19
See Also
HTML, as.latex, HTMLgrid
Examples
# Store in target the name of a output file
dir.create(file.path(tempdir(),"R2HTML"))
target <- HTMLInitFile(file.path(tempdir(),"R2HTML"),"index", BackGroundColor="#BBBBEE")
# Use target to write a dataframe
HTML(as.title("Here is the data frame"),file=target)
HTML("<br>Dont forget to use the CSS file in order to benefit from fixed size police",
file=target)
tmp <- as.data.frame(matrix(rnorm(100),ncol=10))
HTML(tmp,file=target)
HTMLEndFile()
HTMLInsertGraph
Insert a graph in a HTML report
Description
Write the HTML <img>tag to an output, so that a existant graph could be displayed in the HTML
report
Usage
HTMLInsertGraph(GraphFileName="", Caption="", GraphBorder=1,
Align="center", WidthHTML=500, HeightHTML=NULL,
file=HTMLGetFile(), append=TRUE,...)
Arguments
GraphFileName Name of the target graph (GIF, JPEG or PNG)
Caption
If non empty, text to be written under the graph,as its caption
GraphBorder
Size of the border,in pixels
Align
Alignment of the graph (center, left orright)
WidthHTML
Width of the image in HTML
HeightHTML
Height ofthe image in HTML (NULL for not specified)
file
Name of the target HTML file (the report)
append
logical. If ’TRUE’outputwill be appended to ’file’; otherwise, it will overwrite
the contents of ’file’
...
...
20
HTMLplot
Details
The steps to add a graph to a HTML file are the following: first create the graph, by using a device
convenient forweb pages, such as GIF, JPEG or PNG. Ensure to write it in the same directory than
the HTML file. Then call HTMLInsertGraph.
Value
no value returned.
Author(s)
Eric Lecoutre
See Also
HTMLplot
Examples
directory=getwd()
HTMLoutput=file.path(directory,"output.html")
graph1="graph1.png"
# Write graph to a file
## Not run: png(file.path(directory,graph1))
## Not run: plot(table(rpois(100,5)), type = "h", col = "red", lwd=10,main="rpois(100,lambda=5)")
## Not run: dev.off()
# Insert graph to the HTML output
HTMLInsertGraph(graph1,file=HTMLoutput,caption="Sample discrete distribution plot")
HTMLplot
Insert a graphic into an HTML output
Description
Exports the active graphic to a JPEG orGIF file and add it to a target HTML output,by writing the
<IMG> tag.
Usage
HTMLplot(Caption = "", file = HTMLGetFile(), append = TRUE,
GraphDirectory = ".", GraphFileName = "", GraphSaveAs = "png", GraphBorder = 1,
Align = "center", Width = 500, Height = 500, WidthHTML = NULL, HeightHTML = NULL,
GraphPointSize = 12, GraphBackGround = "white", GraphRes = 72, plotFunction = NULL, ...)
Documents you may be interested
Documents you may be interested