- You can create the form based template using MATLAB Live Script, embedding it with the UI elements as per your requirements.
- Export the live script into '.m' file by clicking on Save button on the editor tab and select Save As option with .m extension
- Publish the generated MATLAB file using the publish function, setting the format to pdf and showcode property to false, to remove the code of UI in the output pdf.
Form-based PDF template generation using GUI
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I've been trying to generate a form-based template which takes in data from a GUI and exports the same as a PDF programmatically from the GUI itself. The template contains various images, aligned texts, and blank spaces which needs to be filled. I've tried using publish() but didn't get the desired result. I've also tried using report generator, but it is not working cross-platform.
Can anyone kindly suggest a way to do the desired task?
0 comentarios
Respuestas (1)
Sivani Pentapati
el 7 de En. de 2022
Hi Arkaniva,
Please follow the below steps for a workaround
Step 3 can also be executed from UI by clicking on the Publish button in Publish tab of the toolstrip and edit publishing options accordingly.
3 comentarios
Sivani Pentapati
el 31 de Mzo. de 2022
Hi Arkaniva,
In that case, you could try creating standlone application from the MATLAB script. Please refer to the below link for more information
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!