Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Aspose.Pdf for .NET with Cumulative update package 2 for SQL Server NOT WORK properly

$
0
0
Hello,

We had ssrs installed in a machine with Cumulative Update Package 1 for SQL Server 2012 Service Pack 2

Everything works fine until we updated to Cumulative Update Package 2 for SQL Server 2012 Service Pack 2. 

Things like, for example, search and replace text in pdf stop working.

private MemoryStream Aspose_UpdateReportStringNumberOfPages(MemoryStream report)
        {
            MemoryStream ouputPdfDoc = new MemoryStream();
            Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(report);

            int pageCount = pdfDocument.Pages.Count;

            foreach (Page page in pdfDocument.Pages)
            {
                TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber("§PN§");
                page.Accept(textFragmentAbsorber);

                if (textFragmentAbsorber.TextFragments.Count == 0)
                    continue;

                foreach (TextFragment textFragment in textFragmentAbsorber.TextFragments)
                    textFragment.Text = pageCount.ToString();
            }

            pdfDocument.Save(ouputPdfDoc);

            return ouputPdfDoc;
        }

As you can see in method was supposed to find the string " §PN§ " and substitute for number of pages in pdf. Update 1 works great, update 2 TextFragments.Count is always 0.

After we check that we had problems with this update we have downgrade to previous version and things start to work again.

We are using Aspose.Pdf for .NET v8.5 but we already test with lattest version (9.7 i think) and the problem remains.

Can you please help us with this?

See in attach 2 examples with update 1 and update 2.

Thank you very much,
Best regards,
Bruno Faria.

Viewing all articles
Browse latest Browse all 3131

Trending Articles