Incorrect
I said that:
(1)
File > Export… > 2D Graphic… > PDF is RASTER format
… as well as all other formats presented in the 2D Graphic export dialog.
EDIT: Wrong it is VECTOR for PDF (even on the PC.)
(2) Back to your original question:
model = Sketchup.active_model
#<Sketchup::Model:0x0000002e453e30>
show_summary = true
#=> true
status = model.export 'c:/my_export.pdf', show_summary
#=> false
The error above is that the pdf option must use an options hash.
The example shown (currently in the docs) is INCORRECT.
Should be:
# Export pdf file on a PC, showing a summary when complete.
options_hash = {
:show_summary => true,
:output_profile_lines => false,
:map_fonts => false,
:model_units => Length::Meter
}
status = model.export( 'c:/my_export.pdf', options_hash )
(I’ll log a API doc issue.)
And because Ruby collects hash arguments into a hash automatically, you can call it like:
status = model.export( 'c:/my_export.pdf', :show_summary => true )
# or for Ruby 2.0+ usng named arguments:
status = model.export( 'c:/my_export.pdf', show_summary: true )
… if say you only wanted to change 1 or 2 options from the defaults.
For all defaults, try:
status = model.export( 'c:/my_export.pdf', {} )
(A) BUT, it looks like it uses the current view, and the PDF page looks like RASTER output.
(B) It only outputs one page (the current scene page’s view.)
So, as said above, you should be looking for a 3rd party PDF library.