vb.net - How to draw Matrix Code with PdfSharp? -
i need make pdf report via pdfsharp. report must include qrcode, or data matrix code, can't seem able draw on page.
the values it's asking value string , length integer here's i'm doing:
dim mynewcode new pdfsharp.drawing.barcodes.codedatamatrix("1234567890", 10) then try draw it:
gfx.drawmatrixcode(mynewcode, myxpoint) it asks xpoint location set this:
dim myxpoint new xpoint(500,500) which needs values x , y.
it compiles ok when try open file next error
an error exists on page. acrobat may not display page correctly. please contact person created pdf document correct problem my acrobat version 11.0.5, , there no problem opening other pdf files contain these kind of codes.
specify size correct pdf file:
var myxsize = new xsize(100, 100); var mynewcode = new pdfsharp.drawing.barcodes.codedatamatrix("1234567890", 10, myxsize); var myxpoint = new xpoint(200, 300); gfx.drawmatrixcode(mynewcode, myxpoint); please note due legal reasons, open source version of pdfsharp not include implementation of data matrix code , shows dummy images instead.
Comments
Post a Comment