posts - 185,  comments - 1147,  trackbacks - 5

由于国内的朋友无法登陆http://www.manning.com/lowagie/ ,我把它们放在了我的空间上,有需要的朋友去下载吧。
http://www.rubypdf.com/itext/sample-ch01_Lowagie.pdf
http://www.rubypdf.com/itext/sample-ch03_Lowagie.pdf

虽然本人有完整的电子版本,但出于对朋友的承诺,不便将我的电子版共享给大家,希望原谅。

posted on 2006-11-28 13:04 RubyPDF 阅读(3410) 评论(14)  编辑 收藏 所属分类: iTextSharp(iText#)

FeedBack:
2007-01-21 11:57 | flyingdonkey [未注册用户]
你好,我想知道该书的“Appendix F: Pdf/X, Pdf/A and Tagged PDF”中,对PDF/A做了什么样的介绍?
是简单的介绍,还是提供了用iText生成PDF/A文档的方法,谢谢~~
  回复  引用    
#2楼 [楼主]
2007-01-22 15:37 | HardRock      
@flyingdonkey
介绍为主,还不能真正支持生成PDF/A文档。
  回复  引用  查看    
2007-01-24 22:40 | flyingdonkey [未注册用户]
哦,好的,多谢
还有,我想问一下关于嵌入字体的技术

我知道iText可以将外部字体嵌入到PDF文档中去,
但是,需要afm和pfb文件

那如果我想把Type1这种buildin的字体也嵌入到PDF中
有什么办法么?
  回复  引用    
2007-01-28 20:51 | 草农 [未注册用户]
不能下载啊
  回复  引用    
#5楼 [楼主]
2007-01-29 10:10 | HardRock      
@草农
我刚试过,可以的呀,你不能访问过问网站吗?
  回复  引用  查看    
2007-02-14 12:01 | 小胖 [未注册用户]
先驅您好 ~

iText For Java 有個 setPdfVersion() 可讓我們控制生成的 pdf 版本

不曉得在 iTextSharp 有什麼方法可改變預設生成的文件版本呢 ?

我生成的 pdf 在 Adobe Reader 5.x, 6.x 開啟時,

總是會有些錯誤訊息「文字物件外的作業"Tm"非法」!??

用 7.0 開啟倒是相安無事 = =川
  回复  引用    
#7楼 [楼主]
2007-02-14 14:00 | HardRock      
@小胖
先驱这个词恐怖了些,呵呵

你想要这个吗?
writer.PdfVersion=PdfWriter.VERSION_1_6
  回复  引用  查看    
2007-02-14 16:37 | 小胖 [未注册用户]
得到您的解答後 ~

先驅還不足以形容我對你的崇拜呢 ~ 呵

感謝 ~
  回复  引用    
2007-03-02 10:40 | mars [未注册用户]
你有QQ吗? 我的QQ是50887355
想跟你交流交流。。
nuzhiwei@163.com

  回复  引用    
2008-04-29 12:48 | defly [未注册用户]
有一个问题一直困扰着我。。。。。。。 痛苦挣扎中。。。
怎么用itextsharp来创建PDF的书签(要支持中文显示)呢?谢谢各位了!
  回复  引用    
2008-08-20 11:19 | dihua pan [未注册用户]
Hello,I have a problems,please help me(dihua.pan@hotmail.com)

> > > Here is the code I used to generate the PDF:
> > >But it works at ie6 and firefox,but not ie7
> > >
> > > using System;
> > > using System.IO;
> > > using iTextSharp.text;
> > > using iTextSharp.text.pdf;
> > >
> > > public partial class appPages_GetPDF : System.Web.UI.Page
> > > {
> > > protected void Page_Load(object sender, EventArgs e)
> > > {
> > > MemoryStream m = new MemoryStream();
> > > Document document = new Document();
> > >
> > > try
> > > {
Response.AppendHeader("Content-Disposition","filename=Reserve.pdf");
> > > Response.ContentType = "application/pdf";
> > > PdfWriter writer = PdfWriter.GetInstance(document, m);

> > > writer.CloseStream = false;
> > >
> > > document.Open();
> > > document.Add(new Paragraph("Hello World"));
> > >
> > > }
> > > catch (DocumentException ex)
> > > {
> > > Console.Error.WriteLine(ex.StackTrace);
> > > Console.Error.WriteLine(ex.Message);
> > > }
> > > document.Close();
> > >
> > > Response.OutputStream.Write(m.GetBuffer(), 0,
> > > m.GetBuffer().Length);
> > > Response.OutputStream.Flush();
> > > Response.OutputStream.Close();
> > > m.Close();
> > > }
> > > }
  回复  引用    
2008-08-20 11:33 | dihua pan [未注册用户]
server 是 windows 2003
在2003下用ie7访问显示一个空白页,但在ie6和firefox下都正常,请问知道是啥原因吗?

  回复  引用    
#13楼 [楼主]
2008-08-20 12:58 | RubyPDF      
如果你测试http://itext.witwall.com/pdf/上的demo没有问题,就是别的什么问题了(IE的bug?)

// step 1
Document document = new Document();
Response.OutputStream.Flush();
try
{
// step 2: we set the ContentType and create an instance of the Writer
Response.Cache.SetCacheability(HttpCacheability.Public);
Response.Cache.SetExpires(DateTime.Now.AddSeconds(5));
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "attachment; filename=Chap0105.pdf");
PdfWriter.GetInstance(document, Response.OutputStream);

// step 3
document.Open();

// step 4
document.Add(new Paragraph(DateTime.Now.ToString()));
}
catch (DocumentException ex)
{
Response.Clear();
Response.ContentType = "text/plain";
Response.Write(ex.ToString());
}
// step 5: Close document

document.Close();
Response.End();


  回复  引用  查看    
2008-08-23 10:25 | bjddd105 [未注册用户]
楼主:
你好!
读了你的资料很受启发
<iText in Action>现在在国内有没有卖的,我想买一本看看

另外有个问题想请教你:使用iTextSharp的类库有没有方法是对PDF文档进行预览或打印的,谢谢
  回复  引用    

标题  
姓名  
主页
Email (只有博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2008-02-19 16:56 编辑过


相关链接:
 
<2006年11月>
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

与我联系

搜索

 

常用链接

我参与的团队

我的标签

随笔分类(160)

PDF

最新随笔

积分与排名

  • 积分 - 365353
  • 排名 - 59

最新评论

阅读排行榜

评论排行榜