精华内容
下载资源
问答
  • FPDF error

    2020-12-01 14:10:04
    <p>FPDF error: Image file has no extension and no type was specified: images/ <p>I'm running version 4.2 without any modifications.</p><p>该提问来源于开源项目:samilliken/openDCIM</p></div>
  • FPDF中的F表示免费:您可以将其用于任何用途,并对其进行修改以适合您的需求。 使用安装 如果您使用Composer来管理依赖项,则可以使用 $ composer require setasign/fpdf:^1.8 或者,您可以在composer.json文件中...
  • FPDF.net-开源

    2021-04-24 11:57:02
    FPDF.net是一个VB.net类,它允许生成PDF文件,FPDF中的F表示免费:您可以将其用于任何用途,并对其进行修改以适合您的需求。 这是FPDF(http://www.fpdf.org/)到vb.net的端口。 如果发现任何问题,请举报,如果您...
  • Java FPDF 来自PHP FPDF库的Java端口 最初位于 svn://svn.code.sf.net/p/javafpdf/code 我导入了它的历史,然后将这些改进合并到了最上面。 我试图尽可能地保留历史和作者信誉。 我将ant build.xml的构建过程...
  • $pdf=new FPDF_Protection(); $pdf->SetProtection(array(),'password'); //$pdf->SetProtection(array('print')); $pdf->AddPage(); $pdf->SetFont('Arial'); $pdf->Write(10,'You can print me but not copy my ...
  • Java FPDF-开源

    2021-05-13 04:40:59
    这是用于PHP的原始FPDF免费PDF生成库的Java端口。
  • FPDF中文说明---FPDF

    2009-09-25 18:26:55
    FPDF中文说明,FPDF中文说明,FPDF中文说明,
  • php生成PDF FPDF

    2019-02-19 10:21:43
    php生成PDF 使用FPDF可以快速生成PDF文件
  • FPDF V 1.6 + FPDF 中文包

    2013-12-24 16:50:15
    资源包含chinese.php pdf中文支持类、还有fpdf1.6版本,还有ttf2pt1中文支持文档、ttf2pt1中文格式转换程序(ttf2pt1.zip和ttf2pt1-chinese-3.4.0.zip)分开上传,大家可以对应下载自己所需要的
  • <div><p>There needs to be access to all private properties of the Fpdf type. This would allow extending functionality like the fpdf package does with custom scripts. ie. To implement rounded corners, ...
  • FPDF 类库应用

    2011-10-19 09:40:31
    FPDF 类库应用 PHP FPDF 类库应用 PHP FPDF 类库应用 PHP
  • fpdf17资源代码

    2014-05-16 15:35:57
    fpdf17 fpdf 资源代码
  • php FPDF类库应用实现代码
  • Laravel开发-fpdf-laravel

    2019-08-28 08:18:20
    Laravel开发-fpdf-laravel 用于FPDF的Laravel包。
  • fpdf中文应用

    2011-09-26 12:51:01
    fpdf扩展 fpdf中文处理 字体库转换即将ttf转换成php
  • python fpdf插入表格

    2021-06-05 13:51:38
    # Import FPDF class from fpdf import FPDF # Create instance of FPDF class # Letter size paper, use inches as unit of measure pdf=FPDF(format='letter', unit='in') # Add new page. Without this you ...
    # Import FPDF class
    from fpdf import FPDF
    
    # Create instance of FPDF class
    # Letter size paper, use inches as unit of measure
    pdf=FPDF(format='letter', unit='in')
    
    # Add new page. Without this you cannot create the document.
    pdf.add_page()
    
    # Remember to always put one of these at least once.
    pdf.set_font('Times','',10.0)
    
    # Effective page width, or just epw
    epw = pdf.w - 2*pdf.l_margin
    
    # Set column width to 1/4 of effective page width to distribute content
    # evenly across table and page
    col_width = epw/4
    
    # Since we do not need to draw lines anymore, there is no need to separate
    # headers from data matrix.
    
    data = [['First name','Last name','Age','City'],
    ['Jules','Smith',34,'San Juan'],
    ['Mary','Ramos',45,'Orlando'],[
    'Carlson','Banks',19,'Los Angeles']
    ]
    
    # Document title centered, 'B'old, 14 pt
    pdf.set_font('Times','B',14.0)
    pdf.cell(epw, 0.0, 'Demographic data', align='C')
    pdf.set_font('Times','',10.0)
    pdf.ln(0.5)
    
    # Text height is the same as current font size
    th = pdf.font_size
    
    for row in data:
        for datum in row:
            # Enter data in colums
            # Notice the use of the function str to coerce any input to the
            # string type. This is needed
            # since pyFPDF expects a string, not a number.
            pdf.cell(col_width, th, str(datum), border=1)
    
        pdf.ln(th)
    
    # Line break equivalent to 4 lines
    pdf.ln(4*th)
    
    pdf.set_font('Times','B',14.0) 
    pdf.cell(epw, 0.0, 'With more padding', align='C')
    pdf.set_font('Times','',10.0)
    pdf.ln(0.5)
    
    # Here we add more padding by passing 2*th as height
    for row in data:
        for datum in row:
            # Enter data in colums
            pdf.cell(col_width, 2*th, str(datum), border=1)
    
        pdf.ln(2*th)
    
    pdf.output('table-using-cell-borders.pdf','F')
    
    

    在这里插入图片描述

    有空请博主喝杯咖啡吗
    在这里插入图片描述

    展开全文
  • What is Ruby FPDF? Ruby FPDF is a Ruby port of Olivier Plathey's excellent PDF generator, FPDF. FPDF is written in PHP, and as such can only be used from PHP scripts. Ruby FPDF, ...

    What is Ruby FPDF?

    Ruby FPDF is a Ruby port of Olivier Plathey's excellent PDF generator, FPDF. FPDF is written in PHP, and as such can only be used from PHP scripts. Ruby FPDF, as the name suggests, is written in Ruby and can be used from Ruby scripts.

    Ruby FPDF was ported and is maintained by Brian Ollenberger. If you need to contact me, see the contact link above.

    Documentation

    At this time, I have not written any documentation for Ruby FPDF, since the behaviour is almost identical to that of FPDF 1.53. The primary difference is in how the final PDF file is extracted. In Ruby there is no need to send a PDF to a web browser like there is with the PHP version. The basic usage should be made clear in the examples.

    There are now three extensions that come with Ruby FPDF. There is a bookmark support module, an EPS image module, and a Chinese language support module. All are based on similar modules for the PHP FPDF library and all are direct ports. Please see the examples and the header comments in the source for these modules for their usage.

    Contributions

    Kim Shrier has contributed bug fixes, examples, external fonts support, JPEG support, and an upgrade to FPDF version 1.53.

    Sylvain Lafleur contributed the initial port of the bookmark module.

    Thiago Jackiw contributed the EPS module, which is ported from the PHP module by Valentin Schmidt.

    Thanks also to the others who have contributed bug reports and fixes.

    Download Ruby FPDF

    You can download Ruby FPDF below. It is released under a permissive license, similar to that of FPDF. I only ask that you retain the copyright notice at the top of the source file. You may make modifications to FPDF, but if you redistribute those modifications, make it clear in a comment immediately before or after the copyright notice that you have modified it. I also wouldn't mind if you sent patches back to me, but you are not strictly required to do so.

    My version numbering system is as follows. The version number is the same as the corresponding equivalent version of FPDF. I append a letter to distinguish subsequent releases of Ruby FPDF within one version of FPDF, in case that is necessary.

    • Ruby FPDF 1.53d - Released July 19, 2006. This release comes with more bug fixes and a new port of EPS support by Thiago Jackiw. Many thanks to everybody who has contributed feedback and bug fixes.


    From http://zeropluszero.com/software/fpdf/

     

     

    本文转自RubyPdf 的中文博客博客园博客,原文链接:http://www.cnblogs.com/hardrock/archive/2006/07/21/456595.html,如需转载请自行联系原作者

    展开全文
  • Laravel开发-laravel-fpdf

    2019-08-28 06:51:23
    Laravel开发-laravel-fpdf 最初由codedge/laravel fpdf编辑,编辑了一些工作以满足我们自己的要求。
  • What is FPDF?FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. The advantage is that PDFlib requires a fee for a commercial usage. ...

    What is FPDF?

    FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. The advantage is that PDFlib requires a fee for a commercial usage. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.

    FPDF可以让我们创建pdf文件而不用去调用PDFlib

    下面是一个很简单的用FPDF创建一个pdf文件并添加一页的例子

    define('FPDF_FONTPATH','fpdf152/font/');

    require('fpdf152/fpdf.php');

    $pdf = new FPDF;

    $pdf->AddPage();

    $pdf->Output('a.pdf', 'D');

    ?>

    当然也可以用$pdf->open();来新建一个pdf文件

    但是在这里,Addpage()包含了open(),他同时完成了新建一个pdf文件和添加1页两个步骤

    上面例子里的define('FPDF_FONTPATH','fpdf152/font/');定义了存放字体文件的目录

    具体下载了压缩包后就看到那个font文件夹了,只要指向那个文件夹就行了

    上面这段程序还不能显示任何东西

    现在来加两句

    define('FPDF_FONTPATH','fpdf152/font/');

    require('fpdf152/fpdf.php');

    $pdf = new FPDF;

    $pdf->AddPage();

    $pdf->SetFont('arial');

    $pdf->Text(5,20,'test pdf');

    $pdf->Output('a.pdf', 'D');

    ?>

    SetFont()设定字体,这步在第1次调用FPDF的时候一定要,否则pdf文件打开时将会提示“没有定义字型“而什么都不显示

    这里最好定义比较常用的字体,并且中文不支持。

    要支持中文或支持比较偏的字体要用到AddFont(),但是我测试暂时没通过,希望哪位通过的可以指点一下 ^^

    Text()打印一个字符串,横坐标为5,纵坐标为20,字符串内容为“test pdf”

    关于最后的Output()里的参数'D'可以参照手册里,写的很清楚了

    这样导出的pdf文件就会显示'test pdf'了。

    如果兴趣好,再加上张图片

    define('FPDF_FONTPATH','fpdf152/font/');

    require('fpdf152/fpdf.php');

    $pdf = new FPDF;

    $pdf->AddPage();

    $pdf->SetFont('arial');

    $pdf->Text(5,20,'test pdf');

    $pdf->Image('jianxin_mark.jpg', 5, 30, 60, 50);

    $pdf->Output('a.pdf', 'D');

    ?>

    Image()可以在pdf中插入图片,前面是文件名,要包括路径,5是横坐标,30是纵坐标,60是图片宽度,50是高度

    ok,这样一个又有文字又有图片的pdf文件就建立了 ^^

    其实还有很多功能,手册中都有写,但不是很详细,需要各位自己去研究发掘了 ^^

    本文原创发布php中文网,转载请注明出处,感谢您的尊重!

    展开全文
  • fpdf152 资源代码

    2014-05-16 15:37:39
    fpdf152 资源代码
  • fpdfFPDF是一个PHP类,它允许使用纯PHP生成PDF文件,也​​就是说,无需使用PDFlib库。 FPDF中的F表示免费:您可以将其用于任何用途,并对其进行修改以适合您的需求
  • FPDF无法连接

    2014-12-02 05:53:17
    <p>define('FPDF_FONTPATH','/Applications/XAMPP/xamppfiles/htdocs/fpdf17/font/'); require('/Applications/XAMPP/xamppfiles/htdocs/fpdf17/fpdf.php'); <p>I moved the fpdf folder there from the desktop...
  • FPDF-UTF8

    2013-11-13 18:35:14
    支持FPDF的utf8编码类库。 虽然FPDF现在已经停止升级了,但FPDF可谓是状元老级的PDF程序库,短短的几走程序就可以产生出PDF档案。最可怕的是现今天的PHP PDF程式库大多是由FPDF衍生我们的。由于FPDF不支持UTF-8,...
  • FPDF 使用手册

    2013-01-11 17:04:58
    FPDF 英文使用参考手冊,FPDF这个PHP Class允许你采用纯PHP(更确切地说就是不需要使用PDFlib)来生成PDF文件。它所具有的特点包括:可选择的unit大小,页面格式和页边距;页眉和页脚管理;自动分页;自动换行与文本...
  • Atualizar FPDF 1.6 para 1.7

    2020-12-30 04:42:06
    <div><p>Existe alguma restrição para utilizar o FPDF 1.6 e não o FPDF 1.7?</p><p>该提问来源于开源项目:nfephp-org/nfephp</p></div>
  • FPDF chm 帮助 文档

    2010-11-23 09:57:58
    FPDF chm 帮助 文档FPDF chm 帮助 文档FPDF chm 帮助 文档FPDF chm 帮助 文档FPDF chm 帮助 文档FPDF chm 帮助 文档
  • 一种针对Composer的元数据包,具有对FPDI和FPDF最新版本的固定依赖性。 使用安装 $ composer require setasign/fpdi-fpdf:2.3 或者,您可以在composer.json文件中包含以下内容: { " require " : { " setasign/...
  • fpdf资源包

    2011-10-11 13:07:34
    提供了fpdf基本库的下载,同时有一个案例,生成PDF文件
  • 易语言FPDF支持库源码,PDF.fne,FPDF操作支持库
  • 使用python 的fpdf 想生成pdf文档,可是不可避免地就会遇到中文不兼容的问题,这是因为fpdf官方库中的字体很少,这也是它占用内存小的原因。 为此,我下载了fireflysung.ttf 并添加字体后完美解决 from fpdf import...

    if self.unifontsubset and isinstance(txt, str) and not PY3K:
    AttributeError: ‘FPDF’ object has no attribute ‘unifontsubset’

    使用python 的fpdf 想生成pdf文档,可是不可避免地就会遇到中文不兼容的问题,这是因为fpdf官方库中的字体很少,这也是它占用内存小的原因。
    为此,我下载了fireflysung.ttf 并添加字体后完美解决

    
    from fpdf import FPDF
    
    pdf = FPDF()
    pdf.add_page()
    pdf.add_font('fireflysung', '', 'fireflysung.ttf', uni=True)
    pdf.set_font('fireflysung', '', 14)
    pdf.write(8, u'Chinese: 你好世界\n')
    pdf.ln(10)
    pdf.output("unicode.pdf", 'F')
    

    在这里插入图片描述
    附上fireflysung.ttf下载链接 fireflySung

    展开全文

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 1,034
精华内容 413
关键字:

FPDF