Custom PDF Reporter (What did I do wrong?)
Afficher commentaires plus anciens
Hi! I'm pretty new to Matlab and have my first question after struggling many hours :)
I want to create a custom reporter for my report. I read the documentation for "Define New Reporters" and "Create PDF Document Part Template Library." However, when I generate the report, I only get a blank page.
I added the properties "Title," "Author," and "Version" to "MyTitlePage.m." I unzipped the PDF template default.pdftx, added the required holes to the docpart_templates.html, and zipped it back to default.pdftx.
Which information did I miss or what did i do wrong?
Here ist my short testcode:
Main skript:
import mlreportgen.report.*
rpt = Report("myreport","pdf");
titlePage = MyTitlePage;
titlePage.Title = "Dies ist ein toller Titel";
titlePage.Author = "Me";
titlePage.Version = "1.0";
append(rpt,titlePage);
close(rpt);
rptview(rpt);
docpart_templates.html
<html>
<head>
<meta charset="utf-8" />
<title>Document Part Templates</title>
<link rel="StyleSheet" href="./stylesheets/root.css" type="text/css" />
</head>
<body>
<dplibrary>
<dptemplate name="myFirstDocPartTemp">
<hole id="Title">hole1</hole>
<hole id="Author">hole2</hole>
<hole id="Version">hole3</hole>
</dptemplate>
</dplibrary>
</body>
</html>
Thank you :)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Chapters and Sections dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!