I am creating a report manually, by catching "ItemDataBinding" and inserting elements. After the report is created, I call the method below:
Here's the deal. To minimize the size of the PDF, I used this trick
deviceInfo["FontEmbedding"] = "None";
But - text that should be bold, is now bold and italic in the PDF.
If I set FontEmbedding to the default of "Subset", the bold text in the report is correct (just bold).
Am I doing something wrong?
Has anyone else seen this?
Thank you.
public
void
RenderPdfReport(IReportDocument report,
string
documentPath)
{
ReportProcessor reportProcessor =
new
ReportProcessor();
Hashtable deviceInfo =
new
Hashtable();
deviceInfo[
"FontEmbedding"
] =
"None"
;
RenderingResult result = reportProcessor.RenderReport(
"PDF"
, report, deviceInfo);
if
(result.DocumentBytes ==
null
)
return
;
using
(FileStream fs =
new
FileStream(documentPath, FileMode.Create))
{
fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
}
}
Here's the deal. To minimize the size of the PDF, I used this trick
deviceInfo["FontEmbedding"] = "None";
But - text that should be bold, is now bold and italic in the PDF.
If I set FontEmbedding to the default of "Subset", the bold text in the report is correct (just bold).
Am I doing something wrong?
Has anyone else seen this?
Thank you.