Missing text when exporting PDF to Image

See attached project.  When I export the PDF to PNG, the 3rd line of text in the paragraph is missing some text.  This also happens in the PDF Viewer when it converts the PDF to an image.  I am using 18.4.0.33.

Regards,
Arthur

3 Replies 1 reply marked as answer

AB Arthur Butler January 8, 2021 04:25 AM UTC

Here is the attachment.

Attachment: PdfExportImage_856a908f.zip


VS Vasugi Sivajothi Syncfusion Team January 11, 2021 12:30 PM UTC

Hi Arthur, 
 
We are able to reproduce the reported issue with the provided sample , So we will analysis further and update you the further details on 13th January 2021. 
 
Regards, 
Vasugi


VS Vasugi Sivajothi Syncfusion Team January 13, 2021 11:44 AM UTC

Hi Arthur, 
we can extract the text correctly by using our  Syncfusion.AspNet.Mvc5.PdfViewer NuGet package. In this we are using Pdfium rendering engine for robust rendering and extracting the text with accurate results. Kindly refer the sample and code-snippet about performing  the extract text.  
  
 
 
Code snippet: 
PdfViewerHelper viewer = new PdfViewerHelper(); 
                //To load the PDF document. 
                viewer.Load(pdfFile); 
                //Exports the first page of the PDF document into image   
                Bitmap[] _imgs = viewer.ExportAsImage(0, viewer.PageCount - 1); 
 
Please let us know if you have any concerns about this. 
 
Regards, 
Vasugi 
 


Marked as answer
Loader.
Up arrow icon