Enum SaveFormat
名称: Aspose.Note 合計: Aspose.Note.dll (25.4.0)
文書が保存されている形式を指定します。
public enum SaveFormat
{
Docx, // <-- no changes here
Pdf, // <-- no changes here
FlatOpcml, // <-- no changes here
Dot, // <-- no changes here
Rtf, // <-- no changes here
Text, // <-- no changes here
Html, // <-- no changes here
Mhtml // <-- no changes here
}
Fields
Bmp = 2
出力がBMPファイルであることを指定します。
Gif = 4
出力がGIFファイルであることを指定します。
Html = 8
出力がHTMLファイルであることを指定します。
Jpeg = 3
出力がJPEGファイルであることを指定します。
One = 7
出力が OneNote ファイルであることを指定します。
Pdf = 6
出力がPDFファイルであることを指定します。
Png = 1
出力がPNGファイルであることを指定します。
Tiff = 5
出力が TIFF ファイルであることを指定します。
Examples
SaveFormat リストを使用してドキュメントを保存する方法を示します。
string inputFile = "Sample1.one";
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
string outputFile = "SaveDocToOneNoteFormatUsingSaveFormat_out.one";
Document document = new Document(dataDir + inputFile);
document.Save(dataDir + outputFile, SaveFormat.One);
PDF形式のドキュメントをデフォルト設定で保存する方法を示します。
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(dataDir + "Aspose.one");
dataDir += "SaveWithDefaultSettings_out.pdf";
oneFile.Save(dataDir, SaveFormat.Pdf);
SaveFormat を使用して JPEG 形式で画像としてドキュメントを保存する方法を示します。
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(dataDir + "Aspose.one");
dataDir += "SaveToJpegImageUsingSaveFormat_out.jpg";
oneFile.Save(dataDir, SaveFormat.Jpeg);
GIF形式でドキュメントを保存する方法を示します。
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(dataDir + "Aspose.one");
dataDir += "SaveToImageDefaultOptions_out.gif";
oneFile.Save(dataDir, SaveFormat.Gif);
JPEG形式で画像としてドキュメントを保存する際に画像の品質を設定する方法を示します。
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document doc = new Document(dataDir + "Aspose.one");
dataDir += @"\SetOutputImageResolution_out.jpg";
doc.Save(dataDir, new ImageSaveOptions { Quality = 100 }.WithFormat(SaveFormat.Jpeg));
ImageSaveOptions を使用して Bmp 形式で画像としてドキュメントを保存する方法を示します。
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(dataDir + "Aspose.one");
dataDir += "SaveToBmpImageUsingImageSaveOptions_out.bmp";
oneFile.Save(dataDir, new ImageSaveOptions { SaveFormat = SaveFormat.Bmp });
画像としてドキュメントを保存する際に画像解像度を設定する方法を示します。
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document doc = new Document(dataDir + "Aspose.one");
dataDir += "SetOutputImageResolution_out.jpg";
doc.Save(dataDir, new ImageSaveOptions { Resolution = 220, SaveFormat = SaveFormat.Jpeg });
グレイスケール画像として文書を保存する方法を示します。
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(dataDir + "Aspose.one");
dataDir += "SaveAsGrayscaleImage_out.png";
oneFile.Save(dataDir, new ImageSaveOptions { SaveFormat = SaveFormat.Png, ColorMode = ColorMode.GrayScale });
PackBits 圧縮を使用して Tiff 形式の画像としてドキュメントを保存する方法を示します。
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(Path.Combine(dataDir, "Aspose.one"));
var dst = Path.Combine(dataDir, "SaveToTiffUsingPackBitsCompression.tiff");
oneFile.Save(dst, new ImageSaveOptions(SaveFormat.Tiff)
{
TiffCompression = TiffCompression.PackBits
});
Jpeg 圧縮を使用して Tiff 形式の画像としてドキュメントを保存する方法を示します。
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(Path.Combine(dataDir, "Aspose.one"));
var dst = Path.Combine(dataDir, "SaveToTiffUsingJpegCompression.tiff");
oneFile.Save(dst, new ImageSaveOptions(SaveFormat.Tiff)
{
TiffCompression = TiffCompression.Jpeg,
Quality = 93
});
CCITT グループ 3 ファックス 圧縮を使用して Tiff 形式の画像として文書を保存する方法を示します。
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(Path.Combine(dataDir, "Aspose.one"));
var dst = Path.Combine(dataDir, "SaveToTiffUsingCcitt3Compression.tiff");
oneFile.Save(dst, new ImageSaveOptions(SaveFormat.Tiff)
{
ColorMode = ColorMode.BlackAndWhite,
TiffCompression = TiffCompression.Ccitt3
});
Otsuの方法を使用して文書をバイナリーイメージとして保存する方法を示します。
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(dataDir + "Aspose.one");
dataDir += @"\SaveToBinaryImageUsingOtsuMethod_out.png";
oneFile.Save(dataDir, new ImageSaveOptions(SaveFormat.Png)
{
ColorMode = ColorMode.BlackAndWhite,
BinarizationOptions = new ImageBinarizationOptions()
{
BinarizationMethod = BinarizationMethod.Otsu,
}
});
固定限界を使用して文書をバイナリーイメージとして保存する方法を示します。
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(dataDir + "Aspose.one");
dataDir += "SaveToBinaryImageUsingFixedThreshold_out.png";
oneFile.Save(dataDir,
new ImageSaveOptions(SaveFormat.Png)
{
ColorMode = ColorMode.BlackAndWhite,
BinarizationOptions = new ImageBinarizationOptions()
{
BinarizationMethod = BinarizationMethod.FixedThreshold,
BinarizationThreshold = 123
}
});