I am using the NuGet package Rotativa which in trun uses wkhtmltopdf.exe in a MVC 4 web application to generate PDF barcode documents from a standard MVC view. While QRcode and Code128 barcodes work fine, Code39 and Code93 do not.
The code to invoke the view is:
Curiously, PrintTrailerPage, which Rotativa invokes, always renders properly when displayed directly in the browser. Do you have any ideas or insight that might help remedy this issue?
The code to invoke the view is:
return
(
new
Rotativa.ActionAsPdf(
"PrintTrailerPage"
,
new
{ id = id, barcodeType = Request.Params[
"barcodeType"
] ??
"qrcode"
}) { FileName = String.Format(
"Trailer Page for {0}.pdf"
, model.DocumentName, model.BarcodeValue, model.ID), PageSize = Rotativa.Options.Size.Letter, PageOrientation = Rotativa.Options.Orientation.Portrait, PageMargins = { Left = 0, Right = 0, Top = 0, Bottom = 0 } });
Curiously, PrintTrailerPage, which Rotativa invokes, always renders properly when displayed directly in the browser. Do you have any ideas or insight that might help remedy this issue?