精华内容
下载资源
问答
  • java URL转PDF文件

    2019-05-28 20:51:36
    java URL转PDF文件,网页内容转PDF文件,具体自己下载下来看就知道了
  • java URL转PDF文件(完美支持中文).解决linux中不显示中文问题:http://blog.csdn.net/zxz547388910/article/details/74315277
  • IText实现url转pdf 入门文章:http://www.micmiu.com/opensource/expdoc/itext-pdf-demo/ 进阶文章:http://www.micmiu.com/opensource/expdoc/itext-url-pdf/ 实现中文的两种方法: 1、 BaseFont base = BaseFont....

    IText实现url转pdf

    入门文章:http://www.micmiu.com/opensource/expdoc/itext-pdf-demo/
    进阶文章:http://www.micmiu.com/opensource/expdoc/itext-url-pdf/

    实现中文的两种方法

    1、

    BaseFont base = BaseFont.createFont("fonts\\simsun.ttc,0", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
    Font fontCN = new Font(base, 12, Font.NORMAL, BaseColor.BLUE);
    document.add(new Paragraph("这是中文:欢迎来到iText世界。", fontCN));
    
    或者:
    
    BaseFont base = BaseFont.createFont("fonts\\simsun.ttc,0", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
    Font fontCN = new Font(base, 12, Font.NORMAL, BaseColor.BLUE);
    Paragraph p = new Paragraph();
    p.setFont(font);
    p.add("这是一个段落 hello world");
    document.add(p);
    

    2、

    Font f1 = FontFactory.getFont(FONT, BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
    document.add(new Paragraph("hello world, 你好a世界", f1));
    

    ==================================

    写文章记录一下

    import java.io.FileOutputStream;
    
    import com.itextpdf.text.BaseColor;
    import com.itextpdf.text.Chunk;
    import com.itextpdf.text.Document;
    import com.itextpdf.text.Font;
    import com.itextpdf.text.PageSize;
    import com.itextpdf.text.Paragraph;
    import com.itextpdf.text.pdf.BaseFont;
    import com.itextpdf.text.pdf.PdfWriter;
    
    public class IText2PDF {
    
        public static void main(String[] args) throws Exception {
            String pdfPath = "E:\\Desktop/iText.pdf";
            createFirstPDF(pdfPath);
        }
    
        public static void createFirstPDF(String pdfPath) throws Exception {
            // 第一步: Create a Document
            Document document = new Document(PageSize.A4);
            // 第二 步: Get a PdfWriter instance.
            PdfWriter.getInstance(document, new FileOutputStream(pdfPath));
            // 第三步:Open the Document.
            document.open();
    
            // 添加Meta信息
            document.addAuthor("Dong Hao");
            document.addCreator("Dong Hao");
            document.addTitle("URL转换PDF");
            document.addSubject("COSMOPlat");
            document.addCreationDate();
            document.addKeywords("Java,iText");
    
            // 添加Header信息
            document.addHeader("blog", "https://blog.csdn.net/weixin_39715012");
            document.addHeader("mail", "donghao0205@163.coom");
    
            // 第四步:添加内容
    
            // 添加 Paragraph
            document.add(new Paragraph("Hello iText."));
            document.add(Chunk.NEWLINE);
    
            // 添加 中文信息
            BaseFont base = BaseFont.createFont("fonts\\simsun.ttc,0", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
            Font fontCN = new Font(base, 12, Font.NORMAL, BaseColor.BLUE);
            document.add(new Paragraph("这是中文:欢迎来到iText世界。", fontCN));
    
            // 第五步:Close the Document.
            document.close();
        }
    
    }
    
    展开全文
  • HTML转PDF插件,亲测可用。1.把全部dll拷贝到根目录bin文件夹,2.引用Pechkin.dll,Pechkin.Synchronized.dll 3.其他5个dll包含到项目,然后输出设置为始终输出,编译后找不到这几个dll,再次放进bin
  • 其一、单线程 可以解析一些极度不规范的代码 需要插件 链接:...提取码:o7qc <dependencies> <dependency> ...spire.pdf</artifactId> <version>3.11.6</versio

    其一、单线程 可以解析一些极度不规范的代码

    需要插件
    链接:https://pan.baidu.com/s/1nbsku-1IachKVehIUmc3Fg
    提取码:o7qc

    <dependencies>
    	<dependency>
    		<groupId> e-iceblue </groupId>
    		<artifactId>spire.pdf</artifactId>
    		<version>3.11.6</version>
    	</dependency>
    </dependencies>
    
    <repositories>
    	<repository>
    		<id>com.e-iceblue</id>
    		<url>http://repo.e-iceblue.cn/repository/maven-public/</url>
    	</repository>
    </repositories>
    
    import com.spire.pdf.graphics.PdfMargins;
    import com.spire.pdf.htmlconverter.qt.HtmlConverter;
    import com.spire.pdf.htmlconverter.qt.Size;
    
    //网页转pdf
    public class Demo {
        public static void main(String[] args) {
            //定义需要转换的HTML
            String url = "https://www.baidu.com";
    
            //转换后的结果文档
            String fileName = "D:\\xiaoma\\test\\1.pdf";
    
            //解压后的插件本地地址
            String pluginPath = "D:\\xiaoma\\plugins-windows-x64";
            HtmlConverter.setPluginPath(pluginPath);
    
            //调用方法转换到PDF并设置PDF尺寸
            HtmlConverter.convert(url, fileName, true, 10000, new Size(700f, 800f), new PdfMargins(0));
        }
    }
    

    其二、支持并发 效率高

    需要插件
    链接:https://pan.baidu.com/s/1k69f1Wfk1qbNGQPOdSdSfw
    提取码:ls6c

    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    
    public class HtmlToPdfInterceptor extends Thread {
        private InputStream is;
    
        public HtmlToPdfInterceptor(InputStream is){
            this.is = is;
        }
    
        public void run(){
            try{
                InputStreamReader isr = new InputStreamReader(is, "UTF-8");
                BufferedReader br = new BufferedReader(isr);
                String line = null;
                while ((line = br.readLine()) != null) {
                    System.out.println(line.toString()); //输出内容 可注释
                }
            }catch (IOException e){
                e.printStackTrace();
            }
        }
    }
    
    
    public class HtmlToPdf {
        // wkhtmltopdf在系统中的路径
        private static final String toPdfTool = "D:\\xiaoma\\wkhtmltopdf\\bin\\wkhtmltopdf.exe";
    
        /**
         * html转pdf
         *
         * @param srcPath
         *            html路径,可以是硬盘上的路径,也可以是网络路径
         * @param destPath
         *            pdf保存路径
         * @return 转换成功返回true
         */
        public static boolean convert(String srcPath, String destPath) {
            File file = new File(destPath);
            File parent = file.getParentFile();
            // 如果pdf保存路径不存在,则创建路径
            if (!parent.exists()) {
                parent.mkdirs();
            }
            StringBuilder cmd = new StringBuilder();
            if (System.getProperty("os.name").indexOf("Windows") == -1) {
                // 非windows 系统
                //toPdfTool = FileUtil.convertSystemFilePath("/home/ubuntu/wkhtmltox/bin/wkhtmltopdf");
            }
            cmd.append(toPdfTool);
            cmd.append(" ");
            cmd.append(" --disable-javascript ");
            cmd.append(" --encoding <UTF-8> ");
            cmd.append(srcPath);
            cmd.append(" ");
            cmd.append(destPath);
    
            boolean result = true;
            try {
                Process proc = Runtime.getRuntime().exec(cmd.toString());
                HtmlToPdfInterceptor error = new HtmlToPdfInterceptor(proc.getErrorStream());
                HtmlToPdfInterceptor output = new HtmlToPdfInterceptor(proc.getInputStream());
                error.start();
                output.start();
                proc.waitFor();
            } catch (Exception e) {
                result = false;
                e.printStackTrace();
            }
            return result;
        }
    
    }
    
    
    展开全文
  • 1、为了在服务端将html页面转成pdf,查了比较多的资料,说wkhtmltopdf是目前最好用的html转pdf的工具,经过验证,效果确实比其他工具好一些,但是并没有100%还原html页面的效果,bug频出,果断放弃。 2、后来偶然间...

    前言:
    1、为了在服务端将html页面转成pdf,查了比较多的资料,说wkhtmltopdf是目前最好用的html转pdf的工具,经过验证,效果确实比其他工具好一些,但是并没有100%还原html页面的效果,bug频出,果断放弃。
    2、后来偶然间发现chrome浏览器可以直接打印pdf,就去找相关的资料,发现除了手动操作,还可以通过命令直接利用chrome浏览器对pdf进行打印,对于服务器端来说简直是福音,经过验证,100%可以还原页面内容。

    windows平台使用

    1、个人使用(手动操作):chrome浏览器转pdf文件:
    步骤:
    a: chrome直接访问url
    b:使用快捷键 ctrl+p,就可以将当前页面打印成pdf,里面的参数可以进行设置,然后打印就可以了
    在这里插入图片描述
    2、powershell命令执行(cmd中此命令不可执行,如果脚本中调用,只需要指定powershell执行就可以了)。
    可以在服务器直接调用命令进行pdf的转化(也是我目前使用的)

     chrome绝对路径+\chrome --headless --disable-gpu --no-sandbox --print-to-pdf='C:\Users\men\Desktop\test2.pdf(要转的pdf路径和名称)' https://blog.csdn.net/qq_14873105/article/details/51394026(下载的url链接)
    

    liunix平台使用

    命令行启动。

    google-chrome --headless --disable-gpu --no-sandbox --print-to-pdf='/home/zs/test.pdf' https://blog.csdn.net/qq_14873105/article/details/51394026.html
    

    备注:命令中一定要加上 --no-sandbox这个参数,不然会报错

    未解决的问题(发现了但是我暂时没用,所以就没去解决,如果哪个大拿解决了,可以给评论上):下载url链接转pdf的时候,样式是一致的,但是pdf中的字体并不是一致的,我的无法打印楷体,目前猜测是因为liunix的chrome中没有改字体导致的(未进行验证)

    删除页眉页脚,修改页边距

    1、手动在chrome浏览器上下载pdf的话,可以直接进行按钮选择;
    2、如果在命令行中设置的话,目前没有发现,不过有个变通的方法,在html页面中添加两个css样式就可以了。

     @page {size: A4;margin: 0;}  @media print {body {-webkit-print-color-adjust: exact;} .no-print {display: none;}}
    

    以上代码的样式效果是:A4页大小, 无边距,可以打印背景图。
    如果想打印其他样式,可以再去设置css样式。

    展开全文
  • We offer a professional HTML to PDF converter API for webpage or HTML to PDF ... It lets you create high-quality PDF documents quickly, efficiently and cost-effectively. Use it to create high-...

    We offer a professional HTML to PDF converter API for webpage or HTML to PDF conversion. It lets you create high-quality PDF documents quickly, efficiently and cost-effectively. Use it to create high-quality invoices, reports, tickets, e-books, brochures and much more!

    Features

    Converts any URL to PDF easily and also converts raw HTML to PDF

    Supports full HTML with JavaScript, including modern frameworks like Flexbox and Bootstrap.

    Has many options for PDF layout, headers and footers and much more!

    Can add watermarks, stamps and/or (full) page backgrounds.

    Can encrypt and protect your PDF documents.

    Can convert or exclude parts of a webpage

    Uses the latest rendering engine that modern browsers use

    Ready to use code examples for PHP, JavaScript, C# / .NET, Python, Java, Perl, Ruby and VB.net!

    Easy usage on the command line - just check our cURL HTML to PDF example or Wget HTML to PDF example.

    No installation required, but we do have a .NET component and a PHP library available!

    Basic Usage

    The PDFmyURL HTML to PDF API is easy to use. It takes a license and either a URL or raw HTML as input and returns the PDF.

    You just send a request similar to this, which converts https://www.example.com to PDF:

    https://pdfmyurl.com/api?license=yourlicensekey&url=https://www.example.com

    The request should at least have the following components:

    endpoint: this should be http://pdfmyurl.com/api or https://pdfmyurl.com/api for secure access

    license: this is mandatory and you will get yours when you sign up

    url: the web page that you want to convert OR

    html: the raw HTML code that you want to convert

    By default we will use all the conversion defaults you set in our members area. Other than that you can use a lot of additional parameters in the API call, which give you access to all the features for conversion. These are all specified below.

    In the members area you will also find a default PDF creator version that we use to do your conversions. The current latest version is 3.0 (August 2018), but you can still select version 2.0 (from 2016) or version 1.7 (from 2014). You can use the parameter pdf_creator_version with the API to override this setting for individual conversions as well!

    NB: You can use both GET as well as POST requests as long as you properly URL encode the data that you pass.

    Setting Options

    The sections below describe all the options that you will be able to use with the API. Just attach each parameter to the request.

    Example: If you want a PDF in A4 format and portrait orientation, you would use the following request.

    https://pdfmyurl.com/api?license=yourlicensekey&url=https://www.example.com&page_size=A4&orientation=portrait

    Page Dimensions

    The table below shows the settings that you can change to control the page settings. These will determine the layout of the resulting PDF.

    ParameterDescription

    page_sizePage size, such as A4, Letter etc. See the full list for details.

    orientationPortrait or Landscape orientation

    widthWidth of the page in unit

    heightHeight of the page in unit.

    If you specify a width, but not a height, then we generate one long single page PDF.

    topTop margin in unit

    bottomBottom margin in unit

    leftLeft margin in unit

    rightRight margin in unit

    unitMeasurement unit, which is applied to the margins as well as the width and height.

    For version 1.7 / 2.0 of our software this can be mm (millimeters), in (inches) or pt (points).

    As of version 3.0 you can use cm (centimeters), mm (millimeters), in (inches) or px (pixels).

    The default is millimeters.

    Scale Dimensions

    Our latest rendering engine has parameters that let you determine at which screen size / viewport we grab the page. This can be useful if you want to grab the mobile version of a webpage or a desktop version at e.g. 2048*1024. Please note that this requires you to use @media statements in your CSS.

    ParameterDescription

    screen_widthWidth of the screen

    screen_heightHeight of the screen

    zoom_factorUse this zoom factor during conversion

    For version 2.0 of our software this may alter/improve font kerning e.g. 1.03 for a 3% zoom

    For version 3.0 of our software you can zoom in and out from 0.1 (10%) to 2 (200%)

    Conversion Parameters

    The table below shows the settings that you can change to control the conversion process. These will largely determine the contents of the resulting PDF.

    ParameterDescription

    contentControls which content of the page you want to convert or exclude. See part of page conversion for more info.

    cssUse custom CSS to style the page to your needs

    css_media_typeUse print for the print friendly layout (CSS media type 'print') if your web page has one

    bookmarksConvert the headers

    through

    to bookmarks in your PDF so you click through to those different sections.

    grayscaleConvert to a grayscale PDF

    no_backgroundDo not show the web page background in the PDF

    no_imagesDo not include any images from the web page in the PDF

    no_external_linksDo not show hyperlinks to other domains in the PDF

    no_internal_linksDo not show hyperlinks within the domain in the PDF

    no_javascriptConvert the page with JavaScript switched off

    javascript_timeWait this time in milliseconds for JavaScript to complete, default is 200

    titleSet the title of the PDF instead of the value of the

    tag from the web page

    filenameSet the filename of the PDF, which you see in the top bar when you open the PDF in Adobe Reader.

    tocInclude a table of contents at the beginning of the PDF.

    The table below shows settings as of version 3.0 that will allow you to improve the way your webpage looks even more.

    ParameterDescription

    optimize_layoutOptimize the way your web page looks as a PDF, by adjusting fonts and colors and making sure static items on your webpage (such as headers, navigation bars, notices etc) only appear once.

    wait_timeWait for this extra time after the page is loaded for page redirections. Usually 200-500ms should be enough.

    lazy_loadUse extra time to render content (usually images or graphs) that's "lazy" loaded via Ajax or that's loaded when you would scroll the page down. The time needed is determined automatically by our software in this case.

    Header and Footer settings

    The header and footer can be specified in HTML and you can include dates, page numbers and more. Have a look at the full documentation on headers and footers.

    ParameterDescription

    headerHTML that you want to use as header

    footerHTML that you want to use as footer

    page_offsetNumber that will be added to the page number, by default this is 0 so page numbers will start at 1.

    Example: set this to -1 if you want the page numbers to start at 0.

    Watermarking and Stamping

    You can use your own image or text as watermark or stamp for the PDFs that you create. We treat watermarks and stamps as the same thing, because we always place them in the foreground. When you use an opacity of 1 your image will appear as a stamp, otherwise it will look like a watermark.

    Watermarks are inserted over the contents of the page only, not over the margins. You can adjust this by using negative positions if you want.

    ParameterDescription

    wmURL of the watermark image

    wm_textText to use as watermark. This will only be used if you don't specify a watermark image.

    wm_fontFont face for the text watermark e.g. Tahoma or Courier

    wm_fontsizeSize in points for the text watermark

    wm_fontcolorColor for the text watermark, use e.g. #FF0000 for a red text

    wm_xThe horizontal position for the watermark

    wm_yThe vertical position for the watermark

    wm_sxThe horizontal scaling factor for the watermark

    Example: use 2 if you want to appear your watermark twice as wide

    wm_syThe vertical scaling factor for the watermark

    wm_opacityOpacity between 0 and 1. Default is 1, which is fully opague and shows the watermark as a stamp

    wm_angleAngle of rotation between 0 and 360

    Page background

    You can use your own images as the background for the PDFs that you create. Because a lot of users want this functionality to create the resemblance to company stationary, we give you the option to use three different images - one for the first page, one for the middle pages and one for the last page. Obviously you can just use only only for all pages as well if you want.You can also let us scale the background so that it automatically makes up the whole width and/or height (including margins) so you don't have to worry about positioning it correctly.

    Backgrounds are by default put behind the page, including the margins. This also allows you to get your own PDF background color, by using a 1 pixel image with the color of your choice for example.

    ParameterDescription

    bgURL of the background image, used for the first page (and other pages if bg2 or bg3 are not specified)

    bg2URL of the background image, used from the second page onwards

    bg3URL of the background image, used for the last page

    bg_xThe horizontal position for the background

    Default is 0, which is the absolute left of the page

    bg_yThe vertical position for the background

    Default is 0, which is the absolute top of the page

    bg_sxThe horizontal scaling factor for the background

    If you use 0 then we will scale to the full width of the page

    bg_syThe vertical scaling factor for the background

    If you use 0 then we will scale to the full height of the page

    bg_opacityOpacity between 0 and 1. Default is 1, which is fully opague

    bg_angleAngle of rotation between 0 and 360

    PDF encryption and rights management

    You can use the encryption settings (also known as PDF rights managements or PDF document security) from the table below. This allows you to control who will be able to open a PDF, print it and more. Just make sure that your version of Acrobat Reader (or other PDF reader) supports the level of encryption that you choose, so you can actually OPEN the resulting PDF!

    ParameterDescription

    encryption_levelLevel of encryption of the PDF, which accepts the following values:

    40: 40-bit RC4

    128: 128-bit RC4

    128aes: 128-bit AES

    256: 256-bit AES

    user_passwordPassword needed to open the PDF

    owner_passwordPassword needed to adjust the rights management settings of the PDF

    no_printPrevent users from printing the PDF

    no_copyPrevent users from copying content from the PDF

    no_modifyPrevent users from annotating (commenting) the PDF

    Accessing secure sites and/or member areas

    We understand that your content may reside in a protected area on your site. If you still want to convert this to PDF, we have the following options for you.

    Log into your site from our members area or by using our login API - we will then use the stored cookies for all your conversions.

    Pass the page as raw HTML with the html parameter instead of using the url parameter. In that way we don't need to access your page. You can of course use https to access our API to ensure your data is secure. We have created a JavaScript example that demonstrates how you can do this quickly.

    Secure your content with basic HTTP authentication and specify the username and password parameters in the API call.

    Secure your content with a login form and pass the form fields and values to the API so we can login to your site.

    Use cookies on your site (in combination with other measures) to identify legitimate access to your page and pass a cookie jar with cookies. You can also pass a cookie jar in the old Netscape format, which is the format that tools like cURL and wget will generate.

    Contact us to discuss other options or ask us to use a specific access routine.

    ParameterDescription

    usernameUsername for basic HTTP access authentication

    passwordPassword for basic HTTP access authentication

    form_urlURL of a login page that you want us to use and post the form_fields to

    form_fieldsArray with form fields and values that you want us to post to the login page, so we can login to your site

    session_idThe contents of a JSESSIONID cookie, that we should use to access your URL

    cookie_jarThe contents of a cookie jar file, that we should use to access your URL

    ns_cookie_jarThe contents of a cookie jar file in the old Netscape format (still used by cURL and wget), that we should use to access your URL

    Accessing secure sites with the login API

    If you want to login to your members area regularly, for example when your cookies expire, then it's easiest if you use our login API. The login API logs in to your members area and then stores the cookies in your settings so they will automatically be used in all conversions for your plan.

    It works the same as logging in from our secure login page in the members area or as passing the login parameters to our API, but the advantage is that it saves time and you only need to log in whenever you really want to.

    To use the login API you send a request similar to:

    https://pdfmyurl.com/login_api?license=yourlicensekey&form_url=https://www.example.com/login.aspx&form_fields[user]=xxx&form_fields[password]=xxx

    The request should at least have the following components:

    endpoint: this should be http://pdfmyurl.com/login_api or https://pdfmyurl.com/login_api for secure access

    license: this is mandatory and you will get yours when you sign up

    form_url:Your login page, typically something like https://www.example.com/blog/wp-login.php

    form_fields:An array with form fields and values that we will POST to the login page, for example form_fields[username]=user

    output: json or text output. This parameter is optional and by default we assume you want a JSON response.

    The output that you will receive will be a either an error message or the values of the cookies that we have stored. Note that we will NOT store the login parameters in our database, but only the returned cookies. We do this to protect your privacy.

    Example - WordPress login with the PDFmyURL API

    With the form_url and form_fields parameters you will be able to let us log in to your site. Just make sure that you specify all the form fields that are actually required to be posted. As an example, here's what you would typically use for a login to a WordPress site.

    ParameterDescription

    form_urlYour login page, typically something like https://www.example.com/blog/wp-login.php

    form_fields[log]The username of your WordPress user

    form_fields[pwd]The password of your WordPress user

    Please note that the login API is currently only available with a paid license.

    Return codes

    Our API returns HTTP response codes, which you can check to see if the conversion was succesfull or not. The following is the list of return codes we use.

    CodeDescription

    200 OKYour conversion was processed succesfully

    400 Bad RequestYou didn't specify anything to convert

    401 Authorization requiredYou specified an invalid license key

    429 Too Many RequestsYou have overrun a usage limit for your plan

    503 Service unavailableYou are sending multiple requests at the same time to the API from the same IP address

    520 Invalid page size or marginsYou have set your page size and/or margins in such a way that the page has become too small or large to print on

    530 DNS Error for URLThe domain of the URL can not be found

    Usage tracking

    You can track your PDFmyURL usage via a separate HTTP request. This request by default will give you a JSON response indicating plan details and usage.

    Just send a request similar to:

    https://pdfmyurl.com/usage?license=yourlicensekey

    The request should at least have the following components:

    endpoint: this should be http://pdfmyurl.com/usage or https://pdfmyurl.com/usage for secure access

    license: this is mandatory and you will get yours when you sign up

    output: json or text output. This parameter is optional and by default we assume you want a JSON response.

    The output that you will receive will look something like this. Please be aware that we may add fields to the structure in the future!

    array (

    'plan' =>

    array (

    'start' => '2013-04-15',

    'end' => '2014-07-15',

    'description' => 'Business License - Advanced',

    'limit' => '5000',

    'limit period' => 'month',

    'status' => 'blocked',

    ),

    'usage' =>

    array (

    'today' => '65',

    'current period' => '5002',

    'all time' => '95014',

    ),

    )

    Note that our date fields are all in the format yyyy-mm-dd and the 'status' field in the 'plan' array will indicate if your plan is 'active' or 'blocked'.

    展开全文
  • URL转PDF的微服务

    2019-08-11 18:06:54
    URL转PDF的微服务,提供一个将Web页面转成PDF的API
  • URL2PDF URL2PDF, An electron 、express server that can convert HTML into pdf file 实现原理 | comment 通过 Session WebRequest API 监控页面请求,当所有请求完成时,数据加载完毕后,开始执行printPDF功能,...
  • 这是一个操作简单的html文件或者url转PDF的php库 Github地址https://github.com/KnpLabs/snappy 安装: $ composer require knplabs/knp-snappy $ composer require h4cc/wkhtmltopdf-amd64 0.12.x $ ...
  • iText实现URL页面转PDF

    2017-08-23 17:21:42
    转载:http://www.micmiu.com/opensource/expdoc/itext-url-pdf/ ...本文主要演示下如何把URL地址对应的内容直接转换生成PDF文件,这个需求也有很多的应用场景,最简单的应用场景比如:自己blog中的文章如何转PDF
  • lambda-url-to-pdf 根据wkhtmltopdf和AWS Lambda将URL转换为PDF 从Dist安装 将dist/ zip文件直接上传到AWS Lambda并开始使用 从头开始安装 克隆存储库 通过cd src到src文件夹 运行npm install获取软件包依赖关系 ...
  • 用Java代码把URL转PDF

    2020-05-06 17:16:34
    有没有使用Java代码把URL转PDF的逻辑代码,还请各位大神指导 注:是任意网页 试过好多种方法 结果还是不理想
  • 在线工具列表能帮助你任何web页面或URL转换为PDF格式。你不需要下载任何软件。只是拷贝和粘贴您希望下载PDF格式的URL 以下网站 1.PDFM...
  • url转换为PDF在线网站

    2020-07-28 15:27:29
    PDFMyURL.com Web2PDFConvert.com Htm2pdf.co.uk PDFCrowd.com HTMLPDF.com Sciweavers.org PDF-ace.com
  • Api2Pdf.com是一个REST API,可立即从HTML,URL,Microsoft Office文档(Word,Excel,PPT)和图像生成PDF文档。 该API还支持两个或多个PDF的合并/串联。 Api2Pdf是wkhtmltopdf , Headless Chrome和LibreOffice等...
  • Api2Pdf.com是一个REST API,可立即从HTML,URL,Microsoft Office文档(Word,Excel,PPT)和图像生成PDF文档。 该API还支持两个或多个PDF的合并/串联。 Api2Pdf是wkhtmltopdf , Headless Chrome和LibreOffice等...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 777
精华内容 310
关键字:

url转pdf