Rpoppler (version 0.1-0)

PDF_fonts: PDF font information

Description

Obtain the fonts used in a Portable Document Format (PDF) file and further information about these fonts.

Usage

PDF_fonts(file)

Value

A data frame inheriting from PDF_fonts (which has a useful print method), with the following variables:

name

the full name of the font (character)

type

the font type (Type 1, Type 3, etc.; character)

file

the file name of the font (character; empty if the font is embedded)

emb

whether the font is embedded in the PDF file or not (logical)

sub

whether the font is a subset of another font (logical)

Arguments

file

A character string giving the path to a PDF file, or an object of class "PDF_doc" giving a reference to a PDF file.

Examples

Run this code
file <- system.file(file.path("doc", "Sweave.pdf"), package = "utils")
PDF_fonts(file)

Run the code above in your browser using DataLab