vb.net - Font adding using PDFsharp -


i using pdfsharp add text pdf. when use below code add following text these fonts facing problem. after pdf created using pdfsharp , when opened in adobe reader getting message "cannot find or create font 'windings'. characters may not display or print correctly." opens

the source pdf trying modify has fonts helvetica , windings(embedded)

this part of code adds text pdf

dim font xfont = new xfont("verdana", 20, xfontstyle.regular) gfx.drawstring("hello, world!", font, xbrushes.black, new xrect(0, 0, page.width, page.height), xstringformats.center) font = new xfont("wingdings", 20, xfontstyle.regular) gfx.drawstring("llll", font, xbrushes.black, new xrect(25, 15, page.width, page.height), xstringformats.center) font = new xfont("helvetica", 20, xfontstyle.regular) gfx.drawstring("abcd", font, xbrushes.black, new xrect(50, 25, page.width, page.height), xstringformats.center) 

after using code text gets added when open in pdf reader getting error (see error message above). when see fonts in properties of pdf find following

helvetica,verdana,windings

but windings(embedded) not there in source pdf. in created pdf windings font added showing actual font under unknown(actual font:unknown).i think error. how can solved? want know how add winding-regular(embeded subset) in pdfsharp? this is source pdf used. this the pdf after created after modifying in pdfsharp gives error.

with pdfsharp have specify fonts shall embedded (using e.g. pdffontembedding.always, see here).

by default fonts not embedded - pdf files smaller problems may occur when displayed on computers not have font installed.

afaik pdfsharp cannot use fonts embedded in pdf.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -