Hi team,
Thanks in advance for your help. I have been having issues to render PDF files containing forms with buttons to reset the form and selection of values in dropdown lists. So far I am not able to render this type of PDF files. I was wondering if there is a way to render the content of this type of PDF files.
Currently, the Load request is stared and finished, but it is not following RenderPdfPages as it is happening for other PDF files. I am getting just the following logs:
Request starting HTTP/1.1 OPTIONS http://localhost:62870/api/pdfviewer/Load
Request finished in 3.5382ms 204
Request starting HTTP/1.1 POST http://localhost:62870/api/pdfviewer/Load application/json;charset=UTF-8 222
Route matched with {action = "Load", controller = "PdfViewer"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Load(System.Collections.Generic.Dictionary`2[System.String,System.String]) on controller EJ2AmazonS3ASPCoreFileProvider.Controllers.PdfViewerController (EJ2AmazonS3ASPCoreFileProvider).
Executed action EJ2AmazonS3ASPCoreFileProvider.Controllers.PdfViewerController.Load (EJ2AmazonS3ASPCoreFileProvider) in 1712.0634ms
Request finished in 1722.4997ms 200 text/plain; charset=utf-8
For instance, this type of PDF cannot be rendered:
http://foersom.com/net/HowTo/data/OoPdfFormExample.pdf
How can I render this PDF file?
Thanks for your help
|
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
<Inject services={[Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormFields, FormDesigner]}/>
|
Hi Dhivya,
Thanks for your response :)
With the addition of FormField and FormDesigner, I got the PDF Form loaded. Mostly in good format except the checkboxes. I am not getting the ticks on them. For instance the fields Single, Married and Married but withhold at higher Single rate in the PDF file are checked, but after loading the ticks do not appear:
Using the following versions allowed me to get those ticks:
Having this version of react:
Thanks a lot for your help
Kind Regards,
Arturo
Hi Dhivya,
Sorry for the misunderstanding in the responses, yesterday the website crashed while I was editing the previous reply and did not update. I got the checkboxes with the ticks using the mentioned versions of syncfusion.
Thanks a lot for your help on this.
Have a great day
Kind Regards,
Arturo