Hi,
My question is not specific to jQuery but to Kendo UI Barcode and PDF Export in general.
If I have an HTML page that contains some text and a Kendo UI Barcode (svg), will PDF Export correctly render the barcode?
Also, if I were to generate an HTML page with text, barcode, tables, etc... kind of like a big long report or reciept, will PDF Export automatically resize the content and add page breaks for me? For example, if you try to print this page using Acrobat it automatically adjusts the HTML to fit the paper size and automatically adds page breaks.
Thanks
HI
I have test the Kendo UI Barcode and have found some problems.
。The Barcode result will become rough while width does not enougth (even if renderAs: "canvas" or "svg").
(see Image1 - rough result)
。Larger width will cause error (even if height is greater then the suggested value) :
$(container).find("#gudbrands").kendoBarcode({
value: "1234567890" ,
type: "code39",
width: 580,
height: 100
});
Uncaught Error: Insufficient Height. The minimum height for value: 1234567890 is: 87
at o.prepareValues (kendo.all.min.js:97)
at o.addData (kendo.all.min.js:97)
at o.encode (kendo.all.min.js:97)
at init._render (kendo.all.min.js:97)
at init.createVisual (kendo.all.min.js:97)
at init.redraw (kendo.all.min.js:97)
at init.setOptions (kendo.all.min.js:97)
at new init (kendo.all.min.js:97)
at HTMLDivElement.<anonymous> (kendo.all.min.js:26)
at Function.each (jquery-2.2.4.min.js:2)
My questions :
1.Could Barcode could auto size by itself ?
2.The height of the Barcode should not be limited(see Image2 - long code39)
Best regards
Chris
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 } });