Spire.PDF 10.11.1 supports extracting video and audio from PDF documents

2024-11-06 08:34:09

We are delighted to announce the release of Spire.PDF 10.11.1. This version supports extracting video and audio from PDF documents. Besides, it enhances the conversion from PDF to images. Moreover, a lot of known issues are fixed successfully in this version, such as the issue that merging PDF documents failed. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPDF-7145 Supported the functionality to extract video and audio from PDF documents.
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(inputFile);
for (int i = 0; i < pdf.Pages.Count; i++)
{
	PdfPageBase page = pdf.Pages[i];
	PdfAnnotationCollection ancoll = page.Annotations;
	for (int j = 0; j < ancoll.Count; j++)
	{
		PdfRichMediaAnnotationWidget MediaWidget = ancoll[j] as PdfRichMediaAnnotationWidget;
		byte[] data = MediaWidget.RichMediaData;
		string embedFileName = MediaWidget.RichMediaName;
		File.WriteAllBytes(outputFile + embedFileName,data);
	}
}
Bug SPIREPDF-6786 Fixes the issue that highlighting text did not work correctly.
Bug SPIREPDF-7055 Fixes the issue that the program threw "Cannot find table 'loca' in the font file" when loading SVG.
Bug SPIREPDF-7114 Fixes the issue that merging PDF documents failed to work.
Bug SPIREPDF-7126 Fixes the issue that page size could not be set using PageSettings.PaperFormat when using ChromeHtmlConverter to convert HTML to PDF.
Bug SPIREPDF-7129 Fixes the issue that the result of PdfDocument.Conformance was incorrect.
Bug SPIREPDF-7133 Fixes the issue that the result of signature validity verification was incorrect.
Bug SPIREPDF-7144 Fixes the issue that the result of bookmark style modification was incorrect.
Bug SPIREPDF-7148 Optimizes the time consumption of PDF to image conversion.
Click the link to download Spire.PDF 10.11.1:
More information of Spire.PDF new release or hotfix: