getTextFonts | R Documentation |
getTextFonts(page, fontInfo = getFontInfo(page), txtNodes = xpathSApply(page, xpathQ("//text", page)))
page |
an XML node corresponding to a page. |
fontInfo |
font information from the document |
txtNodes |
the text nodes for which we want the font information. |
A data.frame with elements
id |
|
size |
|
family |
|
color |
|
isItalic |
|
isBold |
|
isOblique |
|
name |
|
text |
f = system.file("samples/2Column.xml", package = "ReadPDF")
doc = readPDFXML(f)
f = getTextFonts(doc[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.