KNOWLEDGE BASE

Error "Option 'pagesize' has a bad value" Exporting to PDF using tabcmd


Published: 26 Feb 2016
Last Modified Date: 29 Aug 2016

Issue

When exporting a pdf with tabcmd and the pagesize option is set to ledger or tabloid, tabcmd fails with one of the following errors: 


  *** Option 'pagesize' has a bad value of 'ledger'. Must be one of: unspecified
, letter, legal, note, folio, executive, a3, a4, a5, b4, b5, quarto


OR

  *** Option 'pagesize' has a bad value of 'tabloid'. Must be one of: unspecified
, letter, legal, note, folio, executive, a3, a4, a5, b4, b5, quarto

Environment

  • Tableau Server 9.0 - 9.3
  • Tabcmd

Resolution

Option 1

Upgrade to Tableau Server 10.0. For more information, see Upgrading Tableau Server

Option 2

Either use --width and --height options to manually set the pixel values, or use a comparable pagesize like A3.

Cause

This behavior is related to a known issue that has been fixed in a recent version.
Did this article resolve the issue?