Original_highlight.pdf contains two highlight annotations, the green is made with adobe reader, the yellow with aspose.
I flatten it with aspose > flattened_highlight.pdf : the output pdf seems valid, it displays correctly in adobe or foxit.
In Aspose, I can generate a PNG image and it’s fine.
But if I generate an SVG image from the flattened PDF, the yellow highlight generated with Aspose hide the text behind while the green highlight made with Adobe is correct.
Checking the svg file, there is a “blend-mode:multiply” used for the green highlight that allow the correct display.
Would you please share the code snippet that you are using to convert PDF into SVG? We will test the scenario in our environment and address it accordingly.
namespace Aspose.Pdf.Examples.CSharp.AsposePDF.DocumentConversion
{
public class PDFToSVG
{
public static void Run()
{
// ExStart:PDFToSVG
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();
// Load PDF document
Document doc = new Document(@"C:\TEST\bugreport\flattened_highlight.pdf");
// Instantiate an object of SvgSaveOptions
SvgSaveOptions saveOptions = new SvgSaveOptions();
// Do not compress SVG image to Zip archive
saveOptions.CompressOutputToZipArchive = false;
// Save the output in SVG files
doc.Save(@"C:\TEST\bugreport\from_sample.svg", saveOptions);
// ExEnd:PDFToSVG
}
}
}
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFNET-59267
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
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.