Class PdfSaveOptions

Class PdfSaveOptions

이름 공간 : Aspose.Note.Saving 모임: Aspose.Note.dll (25.4.0)

문서 페이지를 PDF로 제출할 때 추가 옵션을 지정할 수 있습니다.

public sealed class PdfSaveOptions : SaveOptions
   {
       private bool _embedFonts;
       private bool _embedAllFonts;
       private bool _compressContentStreams;
       private bool _encryptDocument;
       private EncryptionSettings _encryptionSettings;
       private string _password;
       private bool _isEncryptionEnabled;
       private bool _addOutline;
       private bool _optimizeForFastWebViewing;
       private bool _saveFormsFlattened;
       private bool _usePdfACompatibility;
       private PdfSaveOptions.TaggedPDFAutomatically _pdfAAutomaticProcessing;
       private int _pageNumbersStartFrom;
       private string _title;
       private string _author;
       private string _subject;
       private string _keywords;
       private string _creator;
       public bool EmbedFonts
       {
           get { return this._embedFonts; }
           set { this._embedFonts = value; }
       }
       public bool EmbedAllFonts
       {
           get { return this._embedAllFonts; }
           set { this._embedAllFonts = value; }
       }
       public bool CompressContentStreams
       {
           get { return this._compressContentStreams; }
           set { this._compressContentStreams = value; }
       }
       public bool EncryptDocument
       {
           get { return this._encryptDocument; }
           set { this._encryptDocument = value; }
       }
       public EncryptionSettings EncryptionSettings
       {
           get { return this._encryptionSettings; }
           set { this._encryptionSettings = value; }
       }
       public string Password
       {
           get { return this._password; }
           set { this._password = value; }
       }
       public bool IsEncryptionEnabled
       {
           get { return this._isEncryptionEnabled; }
           private set { this._isEncryptionEnabled = value; }
       }
       public bool AddOutline
       {
           get { return this._addOutline; }
           set { this._addOutline = value; }
       }
       public bool OptimizeForFastWebViewing
       {
           get { return this._optimizeForFastWebViewing; }
           set { this._optimizeForFastWebViewing = value; }
       }
       public bool SaveFormsFlattened
       {
           get { return this._saveFormsFlattened; }
           set { this._saveFormsFlattened = value; }
       }
       public bool UsePdfACompatibility
       {
           get { return this._usePdfACompatibility; }
           set { this._usePdfACompatibility = value; }
       }
       public PdfSaveOptions.TaggedPDFAutomatically PdfAAutomaticProcessing
       {
           get { return this._pdfAAutomaticProcessing; }
           set { this._pdfAAutomaticProcessing = value; }
       }
       public int PageNumbersStartFrom
       {
           get { return this._pageNumbersStartFrom; }
           set { this._pageNumbersStartFrom = value; }
       }
       public string Title
       {
           get { return this._title; }
           set { this._title = value; }
       }
       public string Author
       {
           get { return this._author; }
           set { this._author = value; }
       }
       public string Subject
       {
           get { return this._subject; }
           set { this._subject = value; }
       }
       public string Keywords
       {
           get { return this._keywords; }
           set { this._keywords = value; }
       }
       public string Creator
       {
           get { return this._creator; }
           set { this._creator = value; }
       }
   }
   public enum PdfSaveOptions.TaggedPDFAutomatically
   {
       Automatic,
       AutoDetectAndOptimize,
       AutoDetectOnly
   }

Inheritance

object SaveOptions PdfSaveOptions

상속 회원들

SaveOptions.SaveFormat , SaveOptions.FontsSubsystem , SaveOptions.PageIndex , SaveOptions.PageCount , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

편지 페이지 레이아웃을 사용하여 PDF 형식으로 문서를 저장하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document oneFile = new Document(dataDir + "OneNote.one");
   var dst = Path.Combine(dataDir, "SaveToPdfUsingLetterPageSettings.pdf");
   oneFile.Save(dst, new PdfSaveOptions() { PageSettings = PageSettings.Letter });

높이 제한없이 A4 페이지 레이아웃을 사용하여 PDF 형식으로 문서를 저장하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document oneFile = new Document(dataDir + "OneNote.one");
   var dst = Path.Combine(dataDir, "SaveToPdfUsingA4PageSettingsWithoutHeightLimit.pdf");
   oneFile.Save(dst, new PdfSaveOptions() { PageSettings = PageSettings.A4NoHeightLimit });

지정된 옵션으로 PDF 형식으로 노트북을 저장하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_NoteBook();
   var notebook = new Notebook(dataDir + "Notizbuch Öffnen.onetoc2");
   var notebookSaveOptions = new NotebookPdfSaveOptions();
   var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;
   documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();
   dataDir += "ConvertToPDF_out.pdf";
   notebook.Save(dataDir, notebookSaveOptions);

긴 OneNote 페이지가 PDF 형식으로 저장되면 페이지로 분할됩니다.이 샘플은 페이지의 붕괴에 위치한 개체의 분열 논리를 구성하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document doc = new Document(dataDir + "Aspose.one");
   var pdfSaveOptions = new PdfSaveOptions();
   pdfSaveOptions.PageSplittingAlgorithm = new KeepPartAndCloneSolidObjectToNextPageAlgorithm(100);
   pdfSaveOptions.PageSplittingAlgorithm = new KeepPartAndCloneSolidObjectToNextPageAlgorithm(400);
   dataDir += "PageSplittUsingKeepPartAndCloneSolidObjectToNextPageAlgorithm_out.pdf";
   doc.Save(dataDir);

PDF 형식으로 문서를 저장하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document oneFile = new Document(dataDir + "Aspose.one");
   PdfSaveOptions opts = new PdfSaveOptions
   {
      PageIndex = 0,
      PageCount = 1,
   };
   dataDir = dataDir + "SaveRangeOfPagesAsPDF_out.pdf";
   oneFile.Save(dataDir, opts);

특정 설정을 사용하여 PDF 형식의 문서를 저장하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document doc = new Document(dataDir + "Aspose.one");
   PdfSaveOptions opts = new PdfSaveOptions
   {
      ImageCompression = Saving.Pdf.PdfImageCompression.Jpeg,
      JpegQuality = 90
   };
   dataDir += "Document.SaveWithOptions_out.pdf";
   doc.Save(dataDir, opts);

긴 OneNote 페이지가 PDF 형식으로 저장되면 페이지로 분할됩니다.이 예제는 페이지의 붕괴에 위치한 개체의 분열 논리를 구성하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document doc = new Document(dataDir + "Aspose.one");
   var pdfSaveOptions = new PdfSaveOptions();
   pdfSaveOptions.PageSplittingAlgorithm = new AlwaysSplitObjectsAlgorithm();
   pdfSaveOptions.PageSplittingAlgorithm = new KeepPartAndCloneSolidObjectToNextPageAlgorithm();
   pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();
   float heightLimitOfClonedPart = 500;
   pdfSaveOptions.PageSplittingAlgorithm = new KeepPartAndCloneSolidObjectToNextPageAlgorithm(heightLimitOfClonedPart);
   pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(heightLimitOfClonedPart);
   pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(100);
   pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(400);
   dataDir += "UsingKeepSOlidObjectsAlgorithm_out.pdf";
   doc.Save(dataDir);

Constructors

PdfSave옵션()

public PdfSaveOptions()
   {
   }

Properties

ImageCompression

PDF 파일의 이미지에 적용되는 압축 유형을 얻거나 설정합니다.

public PdfImageCompression ImageCompression
   {
      get;
      set;
   }

부동산 가치

PdfImageCompression

Examples

특정 설정을 사용하여 PDF 형식의 문서를 저장하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document doc = new Document(dataDir + "Aspose.one");
   PdfSaveOptions opts = new PdfSaveOptions
   {
      ImageCompression = Saving.Pdf.PdfImageCompression.Jpeg,
      JpegQuality = 90
   };
   dataDir = dataDir + "Document.SaveWithOptions_out.pdf";
   doc.Save(dataDir, opts);

JpegQuality

PDF 문서 내에서 JPEG 이미지의 품질을 결정하는 값을 얻거나 설정합니다.값은 0에서 100까지 다양할 수 있으며, 0은 최악의 품질이지만 최대 압축을 의미하며, 100은 최고의 품위가지만 최소한의 압력을 의미합니다.

public int JpegQuality
   {
      get;
      set;
   }

부동산 가치

int

Examples

특정 설정을 사용하여 PDF 형식의 문서를 저장하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document doc = new Document(dataDir + "Aspose.one");
   PdfSaveOptions opts = new PdfSaveOptions
   {
      ImageCompression = Saving.Pdf.PdfImageCompression.Jpeg,
      JpegQuality = 90
   };
   dataDir = dataDir + "Document.SaveWithOptions_out.pdf";
   doc.Save(dataDir, opts);

Remarks

기본 값은 90입니다.

PageSettings

문서의 각 페이지에 대한 페이지 설정을 얻거나 설정합니다.기본적으로 CurrentUICulture에 의존합니다. *미국 문화는 문자 설정이 있고 다른 사람들은 A4 설정입니다.

public PageSettings PageSettings
   {
      get;
      set;
   }

부동산 가치

PageSettings

Examples

편지 페이지 레이아웃을 사용하여 PDF 형식으로 문서를 저장하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document oneFile = new Document(dataDir + "OneNote.one");
   var dst = Path.Combine(dataDir, "SaveToPdfUsingLetterPageSettings.pdf");
   oneFile.Save(dst, new PdfSaveOptions { PageSettings = PageSettings.Letter });

높이 제한없이 A4 페이지 레이아웃을 사용하여 PDF 형식으로 문서를 저장하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document oneFile = new Document(dataDir + "OneNote.one");
   var dst = Path.Combine(dataDir, "SaveToPdfUsingA4PageSettingsWithoutHeightLimit.pdf");
   oneFile.Save(dst, new PdfSaveOptions { PageSettings = PageSettings.A4NoHeightLimit });

PageSplittingAlgorithm

페이지 분할에 사용되는 알고리즘을 얻거나 설정합니다.

public PageSplittingAlgorithm PageSplittingAlgorithm
   {
      get;
      set;
   }

부동산 가치

PageSplittingAlgorithm

Examples

지정된 옵션으로 PDF 형식으로 노트북을 저장하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_NoteBook();
   var notebook = new Notebook(dataDir + "Notizbuch Öffnen.onetoc2");
   var notebookSaveOptions = new NotebookPdfSaveOptions();
   var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;
   documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();
   dataDir += "ConvertToPDF_out.pdf";
   notebook.Save(dataDir, notebookSaveOptions);

긴 OneNote 페이지가 PDF 형식으로 저장되면 페이지로 분할됩니다.이 샘플은 페이지의 붕괴에 위치한 개체의 분열 논리를 구성하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document doc = new Document(dataDir + "Aspose.one");
   var pdfSaveOptions = new PdfSaveOptions();
   pdfSaveOptions.PageSplittingAlgorithm = new KeepPartAndCloneSolidObjectToNextPageAlgorithm(100);
   pdfSaveOptions.PageSplittingAlgorithm = new KeepPartAndCloneSolidObjectToNextPageAlgorithm(400);
   dataDir += "PageSplittUsingKeepPartAndCloneSolidObjectToNextPageAlgorithm_out.pdf";
   doc.Save(dataDir);

긴 OneNote 페이지가 PDF 형식으로 저장되면 페이지로 분할됩니다.이 예제는 페이지의 붕괴에 위치한 개체의 분열 논리를 구성하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   Document doc = new Document(dataDir + "Aspose.one");
   var pdfSaveOptions = new PdfSaveOptions();
   pdfSaveOptions.PageSplittingAlgorithm = new AlwaysSplitObjectsAlgorithm();
   pdfSaveOptions.PageSplittingAlgorithm = new KeepPartAndCloneSolidObjectToNextPageAlgorithm();
   pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();
   float heightLimitOfClonedPart = 500;
   pdfSaveOptions.PageSplittingAlgorithm = new KeepPartAndCloneSolidObjectToNextPageAlgorithm(heightLimitOfClonedPart);
   pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(heightLimitOfClonedPart);
   pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(100);
   pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(400);
   dataDir += "UsingKeepSOlidObjectsAlgorithm_out.pdf";
   doc.Save(dataDir);
 한국어