PdfOptions Class |
Namespace: Aspose.PSD.ImageOptions
The PdfOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | PdfOptions | Initializes a new instance of the PdfOptions class |
Name | Description | |
---|---|---|
![]() | BufferSizeHint |
Gets or sets the buffer size hint which is defined max allowed size for all internal buffers.
(Inherited from ImageOptionsBase.) |
![]() ![]() | DefaultReplacementFont |
Gets or sets the default replacement font (font that will be used to draw text when exporting to raster, if existing layer font in PSD file is not presented in system).
To take proper name of default font can be used next code snippet:
System.Drawing.Text.InstalledFontCollection col = new System.Drawing.Text.InstalledFontCollection();
System.Drawing.FontFamily[] families = col.Families;
string defaultFontName = families[0].Name;
PsdLoadOptions psdLoadOptions = new PsdLoadOptions() { DefaultReplacementFont = defaultFontName });
(Inherited from ImageOptionsBase.) |
![]() | Disposed |
Gets a value indicating whether this instance is disposed.
(Inherited from DisposableObject.) |
![]() | FullFrame |
Gets or sets a value indicating whether [full frame].
(Inherited from ImageOptionsBase.) |
![]() | MultiPageOptions |
The multipage options
(Inherited from ImageOptionsBase.) |
![]() | PageSize |
Gets or sets the size of the page.
|
![]() | Palette |
Gets or sets the color palette.
(Inherited from ImageOptionsBase.) |
![]() | PdfCoreOptions |
The PDF core options
|
![]() | PdfDocumentInfo |
Gets or sets metadata for document.
|
![]() | ProgressEventHandler |
Gets or sets the progress event handler.
(Inherited from ImageOptionsBase.) |
![]() | ResolutionSettings |
Gets or sets the resolution settings.
(Inherited from ImageOptionsBase.) |
![]() | Source |
Gets or sets the source to create image in.
(Inherited from ImageOptionsBase.) |
![]() | VectorRasterizationOptions |
Gets or sets the vector rasterization options.
(Inherited from ImageOptionsBase.) |
![]() | XmpData |
Gets or sets the XMP metadata container.
(Inherited from ImageOptionsBase.) |
Name | Description | |
---|---|---|
![]() | Clone |
Clones this instance.
(Inherited from ImageOptionsBase.) |
![]() | Dispose |
Disposes the current instance.
(Inherited from DisposableObject.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from DisposableObject.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ReleaseManagedResources |
Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.
(Inherited from ImageOptionsBase.) |
![]() | ReleaseUnmanagedResources |
Releases the unmanaged resources. Make sure no managed resources are released here, since they may have been already released.
(Inherited from DisposableObject.) |
![]() | ToString | (Inherited from Object.) |
![]() | VerifyNotDisposed |
Verifies that the current instance is not disposed.
(Inherited from DisposableObject.) |
Name | Description | |
---|---|---|
![]() | xmpData |
XMP metadata of image.
(Inherited from ImageOptionsBase.) |
[C#] string sourceFilePath = "rect2_color.ai"; string outputFilePath = "rect2_color.ai_output.pdf"; using (AiImage image = (AiImage)Image.Load(sourceFilePath)) { image.Save(outputFilePath, new PdfOptions()); }
[C#] // Support saving PSB as PDF string sourceFileName = "sample.psb"; string outFileName = "sample.pdf"; using (PsdImage image = (PsdImage)Image.Load(sourceFileName)) { image.Save(outFileName, new PdfOptions()); }
[C#] // Saving PSD into PDF does not provide selectable text string sourceFileName = "text.psd"; string outFileName = "text.pdf"; using (PsdImage image = (PsdImage)Image.Load(sourceFileName)) { image.Save(outFileName, new PdfOptions()); }
[C#] string[] sourcesFiles = new string[] { @"1.psd", @"little.psb", @"psb3.psb", @"inRgb16.psd", @"ALotOfElementTypes.psd", @"ColorOverlayAndShadowAndMask.psd", @"ThreeRegularLayersSemiTransparent.psd" }; for (int i = 0; i < sourcesFiles.Length; i++) { string sourceFileName = sourcesFiles[i]; using (PsdImage image = (PsdImage)Image.Load(sourceFileName)) { string outFileName = "PsdToPdf" + i + ".pdf"; image.Save(outFileName, new PdfOptions()); } }