asp.net mvc - Exclude default font embed in RDLC render to PDF -


i try render rdlc report pdf file , size of file generated larger normal. after research found pdf generated have embedded font: ..... 9 0 obj << /filter /flatedecode /length 52986 /length1 194264 >> stream .....

when generate pdfs , save disk same method , same code 1 pdf have size: 6.82 kb , other 109 kb.

the pdfs identically if open adobe acrobat.

solution 1:

i generate pdf in mvc 4 application "microsoft.reportviewer.webforms" version 11. try use "microsoft.reportviewer.winforms" library in same mvc application see if size decreases no result.

failed

solutin 2:

i search in rdlc file notepad if exist fonts not exist, font size, if bold not name.

failed

the small pdf font property: small pdf

the large pdf font property: enter image description here

my question is: how not embed default font in pdf rendered rdlc?

it turns out merely needed add key deviceinfo.xml:

<deviceinfo> <embedfonts>none</embedfonts> </deviceinfo> 

i found the answer here.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -