- On Windows, the pptx file will not be overwritten if it is edited.
run_autonum
gained new argument start_at.tab.topcaption
is now supported byopts_current_table()
- fix issue with document properties that are null
The sections are now corrected as follow, each section will be completed with the values of the default section if the value is missing. This should solve issue that lot of users have with page breaks when using sections. Now page breaks should disappear.
- alt-text for images
- On Windows, the docx file will not be overwritten if it is edited.
fp_text
gained arguments to specify different fonts when mixing CJK and latin characters:cs.family
,eastasia.family
,hansi.family
.
- fix issue with document properties where values have to be html-escaped
- new chunk function
hyperlink_ftext()
.
- drop cairo usage and let user settings do the job
- fix annotate_base that was not presenting the correct informatons (thanks to John Harrold).
- new function
body_add_plot()
andbody_add_caption()
- new function
run_bookmark()
to create a run with a bookmark. - new function
body_set_default_section()
that changes default section properties of a Word document.
- fix #333: issue with &, <, > in
to_wml.block_table
. - fix davidgohel/officedown#41: when a space was in the path, pandoc send the short path format
instead of the real path name, it needed to be transformed with
normalizePath
.
- The documentation has been rewritten and can now be found at the following URL: https://ardata-fr.github.io/officeverse/.
run_word_field
will supersedrun_seqfield
.- argument
prop
offtext()
now default to NULL
- revert PR#319 that introduced a major issue with repeated images in Word document.
- remove defunct functions (ph_with_*at) and set deprecated as defunct (other ph_with_*at)
- fix sections issue with page margin (it effected also officedown).
- fix issue #320 (with URL encoding in .rel files).
- fix encoding issue with ftext
- explicit coding of bold, italic and uunderline attributes
- ftext with a name for chunk style is fixed
- change_styles - support for run/character, paragraph and table styles.
- new function
table_stylenames()
to define columns stylenames to be used in tables, it benefits toblock_table
andbody_add_table
. - line spacing is now a feature of
fp_par
- run_autonum, run_seqfield and run_reference can now be formatted with
an object of class
fp_text
.
- added
body_end_block_section
andbody_add.block_section
so that users are free to add any section they want
- Use pandoc.exe when platform is windows
- pandoc availability is now checked (for solaris and CRAN policy)
- new argument
level_list
in functionph_with.block_list
; you can now format block_list as lists in PowerPoint. - functions
body_add_table
,ph_with.data.frame
,body_add.data.frame
get new argumentalignment
for column alignments.
- run_reference now bookmarks only the number.
- fix issues with invisible images when using ph_location_fullsize and a blank layout
- Embedded files in initial Word document were lost when they were read and printed
- fix run_reference issue with characters '-', '_'.
- enrich table blocks (
block_table()
) with table parameters such as width, layout. Seeprop_table()
. - new function
plot_layout_properties()
to help identifying placeholders on layouts
- fix border issues with word paragraphs
- reverse changes to
body_add_blocks
andbody_add_gg
as it generated issues with cursor - let pptx template have an empty master slide
- internals ; drop digest from dependencies
- new function
get_reference_value
to read reference template used by R Markdown. fp_par
now have an argument "keep_with_next" that specifies that the paragraph (or at least part of it) should be rendered on the same page as the next paragraph when possible.- new experimental function
body_add
and associated methods
- internals ; drop Rcpp and htmltools dependencies
- fix ph_with.external_img #265 (placeholder properties were not used)
- fix ph_add_text when paragraph was empty and no content was rendered
- support now for template generated from google docs thanks to Adam Lyon
- ph_location results can now be assigned and used as normal objetcs (and not only as quosures).
id_chr
is now depreacted in favor ofid
in functionph_remove
,ph_slidelink
,ph_hyperlink
,ph_add_text
,ph_add_par
,ph_add_fpar
.
- fix ph_with.xml_document so that placeholders' labels are not forgotten (for rvg, flextable, etc.)
- fix underline text issue when used with powerpoint (#229).
- fix slip_in_text issue by escaping HTML entities (#234).
- fix issue with move_slide (#223).
- new method
ph_with.xml_document
that will replaceph_with
andph_with_at
.
- fix properties inheritance with
ph_with
function.
- new function
sanitize_images
to avoid file size inflation when replacing images - svg support (will require rsvg package)
- fix
external_img
size issue with methodph_with
. - fix bg inheritance when using `ph_with functions.
- new generic function
ph_with()
and functionph_location*()
to ease insertion of elements. - new function
slide_size()
provide size of slides.
- fix issue with fonts when east asian characters are used in Word.
- new function
change_styles()
to change paragraph styles in a Word document. - new function
move_slide()
: move a slide in a presentation. - fix body_add_docx examples
- fix issue with text underlined and justified paragraphs in Word.
- skip errored test on macOS that can be read on CRAN check page.
- all examples are now generated in
tempdir()
.
- fix function
body_add_fpar()
when argumentstyle
was used. slide_summary
was using a bad xpath query.- fixed character encoding issue for filename whith windows OS
- function cursor_bookmark now let set the cursor in a text box thanks to Noam Ross. cursor_forward and cursor_backward can now fail if cursor is on a textbox but an error message will explain it to the user.
- Word documents support now footnotes.
- Word section functions have been refactored.
- New functions for replacement in headers and footers in Word documents.
See functions
headers_replace*
andfooters_replace*
- PowerPoint processing optimisation when generating more than few slides.
- fix an issue with
layout_properties
when master layout is empty.
- rdocx objects support external docx insertion
- Word margins can be modified now (thanks to Jonathan Cooper)
- New function
ph_fpars_at()
to add several formated paragraphs in a new shape. - Function annotate_base will generate a slide to identify the placeholder indexes, master names and indexes.
- fix issue with duplicated lines in layout_properties(#103)
- new argument par_default in ph_add_fpar so fpar par. properties can be kept as is.
- fix issue with images when duplicated
basename()
s
- fix issue #97 with function
pptx_summary()
- new function
body_replace_all_text()
to replace any text in a Word document - new functions for xlsx files (experimental).
- new functions
ph_with_gg()
andph_with_gg_at()
to make easier production of ggplot objects in PowerPoint - new functions
ph_with_ul()
to make easier production of unordered lists of text in PowerPoint
- an error is raised when adding an image with blank(s) in its basename (i.e. /home/user/bla bla.png).
- decrease execution time necessary to add elements into big slide deck
- fix encoding issue in function "*_add_table"
- fix an issue with complex slide layouts (there is still an issue left but don't know how to manage it for now)
- Functions slide_summary and layout_properties now return inches.
- new function
body_replace_at
to replace text inside bookmark - argument header for
body_add_table
andph_with_table
. layout_properties
now returns placeholder id when available.
- an error is now occurring when an incorrect index is used with ph_with_* functions.
- function
ph_empty_at
can now make new shapes inherit properties from template
- drop gdtools dependency
- new function
body_default_section
- fp_border supports width in double precision
- characters <, > and & are now html encoded
- on_slide index is now the correct slide number id.
- drop dplyr deprecated verbs from code
- rename
break_column
tobreak_column_before
.
body_end_section
is supposed to only work with cursor on a paragraph, an error is raised now if ending a section on something else than a paragraph.
- read_pptx run faster than in previous version thanks to some code refactoring
- new function media_extract to extract a media file from a document object. This function can be used to access images stored in a PowerPoint file.
- drop magick dependence
- new functions
docx_summary
andpptx_summary
to import content of an Office document into a tidy data.frame. - new function
docx_dim()
is returning current page dimensions. - new functions
set_doc_properties
anddoc_properties
to let you modify/access metadata of Word and PowerPoint documents. - cursor can now reach paragraphs with a bookmark (functions
body_bookmark
andcursor_bookmark
). - Content can be inserted at any arbitrary location in PowerPoint (functions
ph_empty_at
,ph_with_img_at
andph_with_table_at
).
- cast all columns of data.frame as character when using ph_with_table and body_add_table
- fix pptx when more than 9 slides
- argument
style
of functionsbody_add*
andslip_in*
now will use docx default style if not specified - new function body_add_gg to add ggplots to Word documents
- new function test_zip for diagnostic purpose
- classes
docx
andpptx
have been renamedrdocx
andpptx
to avoid conflict with package ReporteRs.