如何解决此错误 - 字体太小:如果将网页转换为pdf,则为0 [英] How to solve this error- Font size too small: 0 if convert webpage to pdf

查看:74
本文介绍了如何解决此错误 - 字体太小:如果将网页转换为pdf,则为0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Friends,



我在单个网格视图中使用3个网格视图意味着嵌套网格视图。

我将其转换为PDF格式,但我收到错误,如'字体太小:0',

我在网格中的任何地方都没有使用字体大小所以为什么他们给我这样的错误?



我也把Font-Size =12pt但它也给出了同样的错误。



请给我任何解决方案。



谢谢。

Hello Friends,

I used the 3 grid views in single grid view means nested grid view.
I convert this into PDF format, but i got error like 'Font size too small: 0' ,
I'm not using font-size anywhere in my grids so why they give me error like that?

Also i put Font-Size="12pt" but it gives same error.

Please send me any solution.

Thanks.

推荐答案

如果你正在使用Itextsharp转换webform到pDf Cheack It Out它是简单的方法为字体添加字体大小和样式和颜色。



If You Are Using Itextsharp For Converting webform To pDf Cheack It Out It Is The simple Way to Add Font Size and Style And Color To The Font.

Font arial = FontFactory.GetFont("Arial", 28, Color.GRAY);
Font verdana = FontFactory.GetFont("Verdana", 16, Font.BOLDITALIC, new Color(125, 88, 15));
Font palatino = FontFactory.GetFont("palatino linotype italique",BaseFont.CP1252, BaseFont.EMBEDDED,
  10,
  Font.ITALIC,
  Color.GREEN
  );
Font smallfont = FontFactory.GetFont("Arial", 7);
Font x = FontFactory.GetFont("nina fett");
x.Size = 10;
x.SetStyle("Italic");
x.SetColor(100, 50, 200);`


这篇关于如何解决此错误 - 字体太小:如果将网页转换为pdf,则为0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆