xlsx转为pdf文件时,图片自动缩小了。代码如下:
Workbook wb = new Workbook(xlsPath);
PdfSaveOptions saveOptions = new PdfSaveOptions
{
EmfRenderSetting = EmfRenderSetting.EmfPlusPrefer,
// Optional settings to improve image handling and quality in the PDF
OnePagePerSheet = false, // Set to true if you want each sheet on a single page
// ImageType = Aspose.Cells.Drawing.ImageType.Emf, // Use EMF for higher quality images in the output
AllColumnsInOnePagePerSheet = false, // Ensure column layout is preserved
Compliance = PdfCompliance.PdfA1b, // Optional: PDF/A compliance if needed
// Retain original images in headers/footers and other layers
CheckWorkbookDefaultFont = true// Ensures that default font settings don’t cause image omission
The issues you have found earlier (filed as CELLSNET-57226) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.