Word/PDF Sketchup ruby API
-
Hello everyone,
i'm exploring the possibilities given by Sketchup Ruby API, and i have a question is it possible to generate a Word or PDF documents that contains information extracted from Sketchup models ?
thank you so much.
-
Hello,
for those who are interested i found the solution to my question:
i installed the Prawn library using the ruby console in sketchup : Gem.install("prawn")
then i used this code to generate an example of a pdf file:
require 'prawn'
Prawn::Document.generate('C:\Users\laptop-acer01\Desktop\test.pdf') do
text 'this is a test file'
text 'end of file.'
end
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement