Speichern eines Projekts als PDF in Ruby

Contents
[ Hide Show ]

** asspos

Um ein Projekt als PDF mit Aspose.Tasks Java für Ruby zu speichern, rufen Sie einfach SaveProjectaPdf Modul auf. Hier sehen Sie Beispielcode.

Rubincode

 1project = rjb :: import ('com.aspsient.tasks.project'). new ('test_tasks.mpp')
 2
 3options = rjb :: import ('com.aspsient.tasks.pdfsaveOptions'). Neu
 4
 5Optionen.SetFitContent (True)
 6
 7options.settimescale (rjb :: Import ('com.aspsis.tasks.timescale'). Monate)
 8
 9options.setPresentationFormat (rjb :: import ('com.aspsis.tasks.PresentationFormat'). TaskUsage)
10
11Optionen.SetlegendoneachPage (Falsch)
12
13project.save ("project.pdf", Optionen)
14
15Setzt "gespeichertes Projekt als PDF, bitte überprüfen Sie die Ausgabedatei."

Download Running Code

Download ein Projekt als PDF (Aspose.Tasks) von einem der folgenden erwähnten Social -Coding -Websites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.