custom_create_PDF {baRcodeR}R Documentation

Make QR codes and print labels

Description

Input a vector or data frame of ID codes to produce a PDF of QR-coded labels that can then be printed. The PDF setup is for the ULINE 1.75" * 0.5" WEATHER RESISTANT LABEL for laser printer; item # S-19297 (uline.ca)

Usage

custom_create_PDF(user = FALSE, Labels = NULL, name = "LabelsOut",
  ErrCorr = "H", Fsz = 2.5, Across = TRUE, ERows = 0, ECols = 0,
  trunc = TRUE, numrow = 20, numcol = 4, page_width = 8.5,
  page_height = 11, width_margin = 0.25, height_margin = 0.5,
  x_space = 215, y_space = 182)

barcode_make(Labels, trunc, ErrCorr, x_space, y_space, Fsz)

Arguments

user

logical. Run function using interactive mode (prompts user for parameter values) Default is FALSE

Labels

vector or data frame object containing label names (i.e. unique ID codes).

name

character. Name of the PDF output file. Default is "LabelsOut".

ErrCorr

error correction value. Level of damage from low to high: "L", "M", "Q", "H". Default is "H"

Fsz

numerical. Sets font size using a number between 2.2 and 4.7. Longer ID codes may not fit on the labels using larger font sizes. Default font size is 2.5

Across

logical. When TRUE, print labels across rows, left to right. When FALSE, print labels down columns, top to bottom. Default is TRUE.

ERows

number of rows to skip. Default is 0. Example: setting ERows to 6 will begin printing at row 7. ERows and ECols are useful for printing on partially-used label sheets.

ECols

number of columns to skip. Default is 0. Example: setting ECols to 2 will put the first label at column 3. ERows and ECols are useful for printing on partially-used label sheets.

trunc

logical. Text is broken into multiple lines for longer ID codes, to prevent printing off of the label area. Default is TRUE.

numrow

numerical. Number of rows per page. Default is 20.

numcol

numerical. Number of columns per page. Default is 4.

page_width

numerical. Width of page (in inches). Default is set to 8.5.

page_height

numerical. Height of page (in inches). Default is set to 11.

width_margin

numerical. The width margin of the page (in inches). Default is 0.25.

height_margin

numerical. The height margin of the page (in inches). Default is 0.5.

x_space

numerical. An integer between 190 - 250. This sets the distance between the QR code and text of each label. Default is 215.

y_space

numerical. An integer between 80 and 215. Default is 182.

Details

barcode_make is the helper function generating the actual QR code and creating the page layout for printed labels.

Value

a PDF file containing QR-coded labels, saved to the default directory.

See Also

create_PDF


[Package baRcodeR version 0.1.0 Index]