I created a query and queryTask; run the queryTask and get a result (say featureSet) .
Now I need to convert this object (featureSet) to create a PDF report, make it display as a table, like field A, field B, ... as columns. I know how to loop the feature to get a value, but have no clue how to put them into a table in PDF. Is there any hint or sample code how to do this? Thanks a lot!
Solved! Go to Solution.
You can generate a PDF in the browser using javascript. There are many third party libraries that can help with this like: GitHub - MrRio/jsPDF: Client-side JavaScript PDF generation for everyone.
I imagine you could build a table based on arbitrary data in a PDF using that library (or another similar one). I'm unsure if there's an easier way to do this than basically building the PDF from scratch.
You can generate a PDF in the browser using javascript. There are many third party libraries that can help with this like: GitHub - MrRio/jsPDF: Client-side JavaScript PDF generation for everyone.
I imagine you could build a table based on arbitrary data in a PDF using that library (or another similar one). I'm unsure if there's an easier way to do this than basically building the PDF from scratch.
You could also create a geoprocessing tool that takes the data and formats a report in pdf format.