PDF
document.Extract PDF
document
layout_control(
line_overlap = 0.5,
char_margin = 2,
line_margin = 0.5,
word_margin = 0.1,
boxes_flow = 0.5,
detect_vertical = FALSE,
all_texts = FALSE
)
a double, if two characters have more overlap than this they are considered to be on the same line. The overlap is specified relative to the minimum height of both characters.
a double, if two characters are closer together than this margin they are considered part of the same line. The margin is specified relative to the width of the character.
a double, if two characters on the same line are further apart than this margin then they are considered to be two separate words, and an intermediate space will be added for readability. The margin is specified relative to the width of the character.
a double, if two lines are are close together they are considered to be part of the same paragraph. The margin is specified relative to the height of a line.
a double, Specifies how much a horizontal and vertical
position of a text matters when determining the order of text boxes.
The value should be within the range of -1.0
(only horizontal
position matters) to +1.0
(only vertical position matters).
You can also pass NULL
to disable advanced layout analysis,
and instead return text based on the position of the bottom left corner
of the text box.
a logical, If vertical text should be considered during layout analysis
a logical, If layout analysis should be performed on text in figures.
Returns a list with the layout control variables.
# NOT RUN {
layout_control()
# }
Run the code above in your browser using DataLab