Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
이번 릴리스에서는 PDF를 DICOM 이미지로 변환하는 기능이 추가되었습니다.
private static void PdfToDicom()
{
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdf_Images();
// Open PDF document
using (var document = new Aspose.Pdf.Document(dataDir + "PagesToImages.pdf"))
{
var dicom = new Aspose.Pdf.Devices.DicomDevice();
FileStream outStream = new FileStream(dataDir + "PdfToDicom_out.dcm", FileMode.Create, FileAccess.ReadWrite);
dicom.Process(document.Pages[1], outStream);
}
}
22.09부터 서명에 주제 라벨의 순서를 수정하는 속성을 추가하는 기능이 지원됩니다 (E=, CN=, O=, OU=).
private static void SignPdfWithModifiedOrderOfSubjectRubrics(string pfxFilePath, string password)
{
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdf_SecuritySignatures();
// Instantiate PdfFileSignature object
using (var fileSign = new Aspose.Pdf.Facades.PdfFileSignature())
{
// Bind PDF document
fileSign.BindPdf(dataDir + "DigitallySign.pdf");
var rect = new System.Drawing.Rectangle(100, 100, 400, 100);
var signature = new Aspose.Pdf.Forms.PKCS7Detached(pfxFilePath, password);
// Set signature custom appearance
signature.CustomAppearance = new Aspose.Pdf.Forms.SignatureCustomAppearance()
{
UseDigitalSubjectFormat = true,
DigitalSubjectFormat = new Aspose.Pdf.Forms.SubjectNameElements[] { Aspose.Pdf.Forms.SubjectNameElements.CN, Aspose.Pdf.Forms.SubjectNameElements.O }
//or
//DigitalSubjectFormat = new Aspose.Pdf.Forms.SubjectNameElements[] { Aspose.Pdf.Forms.SubjectNameElements.OU, Aspose.Pdf.Forms.SubjectNameElements.S, Aspose.Pdf.Forms.SubjectNameElements.C }
};
// Sign PDF file
fileSign.Sign(1, true, rect, signature);
// Save PDF document
fileSign.Save(dataDir + "SignPdfWithModifiedOrderOfSubjectRubrics_out.pdf");
}
}
22.5부터 PDF에서 SubScript 및 SuperScript 텍스트를 추출하는 기능이 지원됩니다.
PDF 문서에 H2O와 같은 SubScript 및 SuperScript 텍스트가 포함되어 있다면, PDF에서 텍스트를 추출할 때 해당 형식 정보도 함께 추출해야 합니다 (추출된 일반 텍스트에 포함). PDF에 이탤릭체 텍스트가 포함되어 있다면, 추출된 콘텐츠에도 포함되어야 합니다.
private static void ExtractTextSuperscript()
{
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdf_Text();
// Open PDF document
using (var document = new Aspose.Pdf.Document(dataDir + "TextWithSubscriptsSuperscripts.pdf"))
{
// Use TextFragmentAbsorber with no parameters to get all text
var absorber = new Aspose.Pdf.Text.TextFragmentAbsorber();
absorber.Visit(document.Pages[1]);
// Iterate through text fragments to find superscript text
foreach (var textFragment in absorber.TextFragments)
{
if (textFragment.TextState.Superscript)
{
Console.WriteLine(String.Format("Text {0} at {1} is superscript!", textFragment.Text, textFragment.Position));
}
}
}
}
이번 릴리스에는 Aspose.PDF for .NET에 대한 정보가 포함되어 있습니다:
예시
private static void ConvertPdfToOds()
{
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdf();
// Open PDF document
using (var document = new Aspose.Pdf.Document(dataDir + "input.pdf"))
{
// Instantiate ExcelSaveOptions object
var saveOptions = new Aspose.Pdf.ExcelSaveOptions
{
// Specify the desired table file format
Format = Aspose.Pdf.ExcelSaveOptions.ExcelFormat.ODS
};
// Save the file in ODS format
document.Save(dataDir + "PDFToODS_out.ods", saveOptions);
}
}
PDF to XMLSpreadSheet2003: SubScript 및 SuperScript에서 텍스트 인식;
PDF to Excel: SubScript 및 SuperScript에서 텍스트 인식;
문서를 저장할 때 UR 서명 제거;
문서를 저장할 때 MarkInfo에서 Suspects 플래그 제거;
문서를 저장할 때 Info 제거;
이번 릴리스에는 다음 업데이트가 포함되어 있습니다:
AFRelationship 지원;
PDF 헤더 검증;
문서를 저장할 때 adbe.x509.rsa_sha1 서브필터 제거;
필드를 숫자 및 날짜 형식으로 포맷;
FDF 2.0에서 RC4 암호화 사용 금지.
22.2 버전부터 PdfFileSignature를 사용하여 LTV로 문서에 서명할 수 있으며, 해시를 SHA1에서 SHA256으로 변경할 수 있는 기능이 추가되었습니다.
private static void SignPdfWithSha256(string pfxFilePath, string password)
{
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdf_SecuritySignatures();
// Instantiate PdfFileSignature object
using (var fileSign = new Aspose.Pdf.Facades.PdfFileSignature())
{
// Bind PDF document
fileSign.BindPdf(dataDir + "DigitallySign.pdf");
var rect = new System.Drawing.Rectangle(300, 100, 1, 1);
var signature = new Aspose.Pdf.Forms.PKCS7(pfxFilePath, password)
{
UseLtv = true,
TimestampSettings = new Aspose.Pdf.TimestampSettings("http://freetsa.org/tsr", string.Empty, Aspose.Pdf.DigestHashAlgorithm.Sha256)
};
// Sign PDF file
fileSign.Sign(1, false, rect, signature);
// Save PDF document
fileSign.Save(dataDir + "SignPdfWithSha256_out.pdf");
}
}
이제 Aspose.PDF for .NET은 가장 인기 있는 문서 형식 중 하나인 Portable Document Format (PDF) 버전 2.0에서 문서를 로드하는 기능을 지원합니다.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.