Skip to content

Force flextable size (height and width) overall #362

@laresbernardo

Description

@laresbernardo

I've been trying to set a specific size (height and width) for a flextable output for hours and don't find the way to do it dynamically. I'm adding flextable table results to a PowerPoint deck using officer. I've tried several different ways and non seem to work perfectly for this single simple task. Is it not possible to force the whole table's size?

I have already tried:

  • width and height functions change columns' sizes, not the table. I do need the autofit functionality so I can't calculate ncols x X.
  • Using officer's ph_location_type(type = "body") (nor _label, nor _template), flextable doesn't follow the size of the object added in the template.
  • The link in the officer documentation for this topic doesn't work.
  • Using set_table_properties seems to be quite near but only to reduce size; it doesn't work for larger than 1 sizes.
  • flextable_dim only gives information but doesn't let you edit.
  • When I dump the flextable object into PowerPoint file, I can simply enlarge the object to fit the size I want manually and it renders OK, but shouldn't there be a way to set the size programmatically on fixed sizes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions