NEWS.md
$show()
method to PDFDocument
. In Rstudio, this will launch a PDF app to view the current document.clip_path()
or clip_rect()
on specific objectsstream
helper to ptag
to be more reminiscent of the tag
helper from shiny
obj$fill('black')
, however using update()
still works e.g. obj$update(fill = 'black')
attrib
handling.obj <- PDFRect$new(x=0, y=0, width=100, height=100)$translate(0, 100)
PDFDocument
add_rect()
has become just rect
add()
is now append()
Dictionary
or Stream
objects (with R6 objects to represent both).ptag
data structure can be used to build R6 PDFStream
objects of the required sub-class e.g. ptag()
will help create a PDFRect
object.dict
function can be used to build R6 PDFDict
objects.PDFDocument
class includes helper methods (e.g. add_rect()
) which will create a stream of dict object of the correct type and add it to the document.minipdf
will be much easier than before.