Free Support Forum - aspose.com

Layers Created with Adobe Acrobat Not Visible in Chrome or Edge

I have an inventory of developed PDF files created with Adobe Acrobat. They consist of graphical images with various illustrations and labels embedded in layers. The maps are rarely updated or modified.

With the new browser standards, Edge, Chrome and Fox Fire will not allow Adobe Reader Plugin and their built in reader will not display layers or allow annotation. I’m looking for a way to present the PDFs over the web by converting the PDF documents to pure HTML and Java Script, so they will be displayed properly within the new browsers.

I ran the example in .net C# to convert pdf to html. The resulting HTML output had no ability to view individual layers as in Adobe Reader. Is there anything that Aspose can do to help me find a solution?

amespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

    private void button1_Click(object sender, EventArgs e)
    {
        // load the file to be converted
        string dir = null;
        dir = @"C:\!Burn\";
       

        var pdf = new Aspose.Pdf.Document(@"C:\!Burn\NorthAmerica Physical Regions.pdf");
        // save in HTML format
        HtmlSaveOptions htmlOptions = new HtmlSaveOptions();
        htmlOptions.ConvertMarkedContentToLayers = true;
        pdf.Save(dir + "output.html", htmlOptions);
        // pdf.Save(dir + "output.html", Aspose.Pdf.SaveFormat.Html);
    }
}

}

@HobartJr,

Please send us your source PDF document. We will investigate your scenario in our environment, and share our findings with you.