so i'm using pdfcontentbyte draw simple line in itextsharp pdf document, when using error says "an error exists on page. acrobat may not display page correctly". have solution this? error pops after have selected print document.
here code:
`cb.begintext(); cb.setlinewidth(1.0f); cb.moveto(37.0f, doc.pagesize.height - 105.0f); cb.lineto(doc.pagesize.width - 37.0f, doc.pagesize.height - 105.0f); cb.stroke(); cb.endtext();`
thanks in advance
you may not have text operators between begintext()
, endtext()
pair. move line art code outside them.
Comments
Post a Comment