The PDF sample program, after my modification, crashed when opening the file.

The PDF sample program, after my modification, crashed when opening the file.


Attachment: PDFViewer_fade7a81.zip

14 Replies

MA ManojKumar Arumugasamy Syncfusion Team November 28, 2023 08:11 AM UTC

We were unable to reproduce the issue, “Application crashes while opening specific document” and it is working as expected with the provided sample we have attached a video recording for your reference.  

Please share the following details to analyze this issue further and assist you with a better solution

1. Is the modification included in the provided sample?

2. Replication video/procedure to reproduce the issue. 

3. Other PDF documents that might cause an issue


Attachment: 185591Rec_2eda6b84.zip


SH Shompinice replied to ManojKumar Arumugasamy November 29, 2023 11:35 AM UTC

Here is the PDF file



SH Shompinice replied to ManojKumar Arumugasamy November 29, 2023 11:36 AM UTC

Here is the video


Attachment: syncfuion_74a3e49c.zip


SH Shompinice replied to ManojKumar Arumugasamy November 29, 2023 11:37 AM UTC

Here is the PDF


Attachment: 202303_ad542d9a.zip


MA ManojKumar Arumugasamy Syncfusion Team November 30, 2023 12:05 PM UTC

Hi Shompinice,

We were able to reproduce the issue, Application crashes while opening specific document. Currently, we are validating this issue and we will update the further details on December 4, 2023.

Regards,

Manoj Kumar



VD Vikram Devaraj Syncfusion Team December 4, 2023 08:34 AM UTC

On our further analysis of the provided PDF documents, we found that the issue, “Application crashes with an exception while loading a particular PDF document” is not a defect with our PdfViewer control. The PDF document has been rendered in our viewer with the use of the window's run-time API, PdfDocument. When converting the input stream to PdfDocument, this exception happens. Would you kindly provide us permission to report a bug on the Microsoft Documentation site using the provided PDF document?



SH Shompinice replied to Vikram Devaraj December 6, 2023 02:46 PM UTC

Yes of course



MA ManojKumar Arumugasamy Syncfusion Team December 7, 2023 06:52 AM UTC

We have posted our query with the PDF document you have provided to the Microsoft Documentation site

https://learn.microsoft.com/en-us/answers/questions/1458304/loading-certain-pdf-file-using-windows-data-pdf-pd



SH Shompinice replied to ManojKumar Arumugasamy December 13, 2023 02:31 AM UTC

Image_5203_1702434609912
Image_7101_1702434637318

Although I added the file type icon in the package manifest, it doesn't seem to work



MA ManojKumar Arumugasamy Syncfusion Team December 13, 2023 02:15 PM UTC

Hi Shompinice,
For issues and queries related to icons of applications kindly contact Microsoft.
 

The Microsoft team has replied to the previously reported issue on PdfDocument they mentioned that the provided PDF has a specific type of file permission, and they are unsure of the issue caused. They have recommended that we convert the PDF again using the Microsoft Edge browser's print options.



SH Shompinice replied to ManojKumar Arumugasamy December 14, 2023 07:09 AM UTC

Image_5630_1702537487624

Is it possible to collectively rename the entire solution/project/namespace to PDFViewer?

The final goal is that the process name displayed in Resource Monitor should be PDFViewer.exe

Image_2254_1702537730013



MA ManojKumar Arumugasamy Syncfusion Team December 15, 2023 04:48 AM UTC

Hi Shompinice,

Kindly follow the steps suggested on your application to change the name of the namespace, project and solution

    • Right-click the project in Solution Explorer, select Rename, and enter the new name
    • Right-click the project again and select Properties. Change the "Assembly name" and "Default namespace" on the Application tab.
    • Select a Namespace on any cs file and press ctrl+r+r -> Adjust Namespaces. Accept the changes by pressing the Enter button.
    • Change the AssemblyTitle and AssemblyProduct in Properties/AssemblyInfo.cs
    • Delete bin and obj directories in Windows Explorer
    • Open the SLN file (with a text editor such as Notepad++) and change the path to the project (there should be multiple places)
    • Open the Solution again. Clean and Rebuild the project.

 

We were able to have only PdfViewer as a Name on the Resource monitor.

 

We have also attached the diff file and sln file for your reference


Attachment: 185591files_cca89403.zip


SH Shompinice replied to ManojKumar Arumugasamy December 15, 2023 07:00 AM UTC

是否可以作为一个整体进行打包,而不仅仅是包含差异文件?



MA ManojKumar Arumugasamy Syncfusion Team December 15, 2023 07:19 AM UTC

Hi Shompinice,

Kindly find the modified sample.


Attachment: PDFViewer_a218362e.zip

Loader.
Up arrow icon