PDF font information

Share:

Description

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

Usage

1

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.

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)

Examples

1
2
file <- system.file(file.path("doc", "Sweave.pdf"), package = "utils")
PDF_fonts(file)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.