Form-based PDF template generation using GUI

조회 수: 10 (최근 30일)
Arkaniva Sarkar
Arkaniva Sarkar 2021년 11월 26일
댓글: Arkaniva Sarkar 2022년 3월 31일
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?

답변 (1개)

Sivani Pentapati
Sivani Pentapati 2022년 1월 7일
Hi Arkaniva,
Please follow the below steps for a workaround
  1. You can create the form based template using MATLAB Live Script, embedding it with the UI elements as per your requirements.
  2. Export the live script into '.m' file by clicking on Save button on the editor tab and select Save As option with .m extension
  3. 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.
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
Sivani Pentapati
Sivani Pentapati 2022년 3월 31일
Hi Arkaniva,
In that case, you could try creating standlone application from the MATLAB script. Please refer to the below link for more information
Arkaniva Sarkar
Arkaniva Sarkar 2022년 3월 31일
I am sorry but this answer isn't relevant to my question. I am looking for a way to edit pre-designed pdf document programatically to insert text in certain empty fields using MATLAB.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by