Class NotebookSaveOptions

Class NotebookSaveOptions

Nama dari : Aspose.Note.Saving Perhitungan: Aspose.Note.dll (25.4.0)

Kelas dasar abstrak yang mewakili opsi penyimpanan notebook untuk format tertentu.

public abstract class NotebookSaveOptions

Inheritance

object NotebookSaveOptions

Derived

NotebookSaveOptions

anggota yang diwarisi

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Menunjukkan cara menyimpan notebook berlapis dalam format pdf.

// The path to the documents directory.
                                                              string dataDir = RunExamples.GetDataDir_NoteBook();

                                                              // Load a OneNote Notebook
                                                              var notebook = new Notebook(dataDir + "Notizbuch �ffnen.onetoc2");

                                                              // Save the Notebook
                                                              dataDir = dataDir + "ConvertToPDFAsFlattened_out.pdf";
                                                              notebook.Save(
                                                                  dataDir,
                                                                  new NotebookPdfSaveOptions
                                                                  {
                                                                      Flatten = true
                                                                  });

Menunjukkan cara menyimpan notebook dalam format pdf dengan opsi yang ditentukan.

// The path to the documents directory.
                                                                           string dataDir = RunExamples.GetDataDir_NoteBook();

                                                                           // Load a OneNote Notebook
                                                                           var notebook = new Notebook(dataDir + "Notizbuch �ffnen.onetoc2");

                                                                           var notebookSaveOptions = new NotebookPdfSaveOptions();

                                                                           var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;

                                                                           documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();

                                                                           dataDir = dataDir + "ConvertToPDF_out.pdf";

                                                                           // Save the Notebook
                                                                           notebook.Save(dataDir, notebookSaveOptions);

Menunjukkan bagaimana untuk menyimpan notebook berlapis sebagai gambar.

// The path to the documents directory.
                                                         string dataDir = RunExamples.GetDataDir_NoteBook();

                                                         // Load a OneNote Notebook
                                                         var notebook = new Notebook(dataDir + "Notizbuch öffnen.onetoc2");

                                                         var notebookSaveOptions = new NotebookImageSaveOptions(SaveFormat.Png);

                                                         var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;

                                                         documentSaveOptions.Resolution = 400;
                                                         notebookSaveOptions.Flatten = true;

                                                         dataDir = dataDir + "ConvertToImageAsFlattenedNotebook_out.png";

                                                         // Save the Notebook
                                                         notebook.Save(dataDir, notebookSaveOptions);

Constructors

NotebookSaveOptions()

protected NotebookSaveOptions()

Properties

DeferredSaving

Dapatkan atau menetapkan nilai yang menunjukkan apakah anak-anak dokumenharus diselamatkan secara eksplisit.

public bool DeferredSaving { get; set; }

Nilai Properti

bool

Remarks

Nilai default adalah ‘fake’, jadi dokumen anak akan disimpan secara implisit.Value ’true’ menunjukkan bahwa pengguna harus menyimpan nod anak dari setiap notebook secara eksplisit.Jika notebook diselamatkan untuk streaming, nilai itu selalu ‘kebenaran’ meskipun telah ditetapkan dengan jelas oleh pengguna untuk ‘false’.

Flatten

Dapatkan atau menetapkan nilai yang menunjukkan apakah hierarki anak-anak notebook disimpan.

public bool Flatten { get; set; }

Nilai Properti

bool

Examples

Menunjukkan cara menyimpan notebook berlapis dalam format pdf.

// The path to the documents directory.
                                                              string dataDir = RunExamples.GetDataDir_NoteBook();

                                                              // Load a OneNote Notebook
                                                              var notebook = new Notebook(dataDir + "Notizbuch �ffnen.onetoc2");

                                                              // Save the Notebook
                                                              dataDir = dataDir + "ConvertToPDFAsFlattened_out.pdf";
                                                              notebook.Save(
                                                                  dataDir,
                                                                  new NotebookPdfSaveOptions
                                                                  {
                                                                      Flatten = true
                                                                  });

Menunjukkan bagaimana untuk menyimpan notebook berlapis sebagai gambar.

// The path to the documents directory.
                                                         string dataDir = RunExamples.GetDataDir_NoteBook();

                                                         // Load a OneNote Notebook
                                                         var notebook = new Notebook(dataDir + "Notizbuch öffnen.onetoc2");

                                                         var notebookSaveOptions = new NotebookImageSaveOptions(SaveFormat.Png);

                                                         var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;

                                                         documentSaveOptions.Resolution = 400;
                                                         notebookSaveOptions.Flatten = true;

                                                         dataDir = dataDir + "ConvertToImageAsFlattenedNotebook_out.png";

                                                         // Save the Notebook
                                                         notebook.Save(dataDir, notebookSaveOptions);

SaveFormat

Dapatkan format di mana notebook disimpan.

public abstract SaveFormat SaveFormat { get; }

Nilai Properti

SaveFormat

Methods

GetDocumentSaveOptions()

Dapatkan opsi simpanan untuk semua dokumen anak notebook.

public abstract SaveOptions GetDocumentSaveOptions()

Returns

SaveOptions

Sesuai dengan Aspose.Note.SaveOptions.

 Indonesia