久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='LQBnY'><style id='LQBnY'><dir id='LQBnY'><q id='LQBnY'></q></dir></style></legend>
    <bdo id='LQBnY'></bdo><ul id='LQBnY'></ul>
  • <i id='LQBnY'><tr id='LQBnY'><dt id='LQBnY'><q id='LQBnY'><span id='LQBnY'><b id='LQBnY'><form id='LQBnY'><ins id='LQBnY'></ins><ul id='LQBnY'></ul><sub id='LQBnY'></sub></form><legend id='LQBnY'></legend><bdo id='LQBnY'><pre id='LQBnY'><center id='LQBnY'></center></pre></bdo></b><th id='LQBnY'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='LQBnY'><tfoot id='LQBnY'></tfoot><dl id='LQBnY'><fieldset id='LQBnY'></fieldset></dl></div>

      <small id='LQBnY'></small><noframes id='LQBnY'>

      <tfoot id='LQBnY'></tfoot>

        將 PDF 轉(zhuǎn)換為圖像(格式正確)

        Converting PDF to image (with proper formatting)(將 PDF 轉(zhuǎn)換為圖像(格式正確))

        • <small id='g0oOV'></small><noframes id='g0oOV'>

              <tbody id='g0oOV'></tbody>
            • <i id='g0oOV'><tr id='g0oOV'><dt id='g0oOV'><q id='g0oOV'><span id='g0oOV'><b id='g0oOV'><form id='g0oOV'><ins id='g0oOV'></ins><ul id='g0oOV'></ul><sub id='g0oOV'></sub></form><legend id='g0oOV'></legend><bdo id='g0oOV'><pre id='g0oOV'><center id='g0oOV'></center></pre></bdo></b><th id='g0oOV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='g0oOV'><tfoot id='g0oOV'></tfoot><dl id='g0oOV'><fieldset id='g0oOV'></fieldset></dl></div>
              <legend id='g0oOV'><style id='g0oOV'><dir id='g0oOV'><q id='g0oOV'></q></dir></style></legend>
                <bdo id='g0oOV'></bdo><ul id='g0oOV'></ul>
                  <tfoot id='g0oOV'></tfoot>

                  本文介紹了將 PDF 轉(zhuǎn)換為圖像(格式正確)的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我有一個(gè) pdf 文件(附件).我的目標(biāo)是使用 pdfbox 原樣將 pdf 轉(zhuǎn)換為圖像(與在 Windows 中使用截圖工具相同).pdf有各種形狀和文字.

                  i have a pdf file(attached). My objective is to convert a pdf to an image using pdfbox AS IT IS,(same as using snipping tool in windows). The pdf has all kinds of shapes and text .

                  我正在使用以下代碼:

                  PDDocument doc = PDDocument.load("Hello World.pdf");
                  PDPage firstPage = (PDPage) doc.getDocumentCatalog().getAllPages().get(67);
                  BufferedImage bufferedImage = firstPage.convertToImage(imageType,screenResolution);
                  ImageIO.write(bufferedImage, "png",new File("out.png"));
                  

                  當(dāng)我使用代碼時(shí),圖像文件給出完全錯(cuò)誤的輸出(附加了 out.png)

                  when i use the code, the image file gives totally wrong outputs(out.png attached)

                  如何讓 pdfbox 拍攝類似直接快照圖像的內(nèi)容?

                  how do i make pdfbox take something like a direct snapshot image?

                  另外,我注意到png的圖像質(zhì)量不太好,有什么辦法可以提高生成圖像的分辨率?

                  also, i noticed that the image quality of the png is not so good, is there any way to increase the resolution of the generated image?

                  這是pdf(見第68頁)https://drive.google.com/file/d/0B0ZiP71EQHz2NVZUcElvbFNreEU/編輯?usp=共享

                  here is the pdf(see page number 68) https://drive.google.com/file/d/0B0ZiP71EQHz2NVZUcElvbFNreEU/edit?usp=sharing

                  編輯 2:似乎所有的文字都消失了.我也嘗試使用 PDFImageWriter 類

                  EDIT 2: it seems that all the text isvanishing. i also tried using the PDFImageWriter class

                  test.writeImage(doc, "png", null, 68, 69, "final.png",TYPE_USHORT_GRAY,200 );
                  

                  同樣的結(jié)果

                  推薦答案

                  事實(shí)證明 jpedal(lgpl) 完美地完成了轉(zhuǎn)換(就像快照一樣).

                  it turns out that jpedal(lgpl) does the converting perfectly(just like a snapshot).

                  這是我用過的:

                  PdfDecoder decode_pdf = new PdfDecoder(true);
                  
                  
                  FontMappings.setFontReplacements();
                  
                      decode_pdf.openPdfFile("Hello World.pdf"); 
                  
                  
                   decode_pdf.setExtractionMode(0,800,3);
                  
                   try {
                  
                       for(int i=0;i<40;i++)
                       {  
                           BufferedImage img=decode_pdf.getPageAsImage(2+i);
                  
                      ImageIO.write(img, "png",new File(String.valueOf(i)+"out.png"));
                       }
                  } catch (IOException ex) {
                      Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                  }
                  
                      decode_pdf.closePdfFile();
                  
                  } catch (PdfException e) {
                      e.printStackTrace();
                  }
                  

                  它工作正常.

                  這篇關(guān)于將 PDF 轉(zhuǎn)換為圖像(格式正確)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當(dāng)前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網(wǎng)絡(luò)提供商)
                  Get current location during app launch(在應(yīng)用啟動(dòng)期間獲取當(dāng)前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)
                    <bdo id='X82Ck'></bdo><ul id='X82Ck'></ul>

                      <small id='X82Ck'></small><noframes id='X82Ck'>

                        <tbody id='X82Ck'></tbody>

                        <tfoot id='X82Ck'></tfoot>

                        1. <legend id='X82Ck'><style id='X82Ck'><dir id='X82Ck'><q id='X82Ck'></q></dir></style></legend>
                            <i id='X82Ck'><tr id='X82Ck'><dt id='X82Ck'><q id='X82Ck'><span id='X82Ck'><b id='X82Ck'><form id='X82Ck'><ins id='X82Ck'></ins><ul id='X82Ck'></ul><sub id='X82Ck'></sub></form><legend id='X82Ck'></legend><bdo id='X82Ck'><pre id='X82Ck'><center id='X82Ck'></center></pre></bdo></b><th id='X82Ck'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='X82Ck'><tfoot id='X82Ck'></tfoot><dl id='X82Ck'><fieldset id='X82Ck'></fieldset></dl></div>
                          1. 主站蜘蛛池模板: 精品伊人| 亚洲视频在线看 | 成人a视频片观看免费 | 国产在线视频一区二区 | 国产99久久精品 | 337p日本欧洲亚洲大胆鲁鲁 | 天天干天天操天天射 | 欧美精品福利 | 久久99深爱久久99精品 | 日韩欧美在线一区 | 天天操夜夜爽 | 日韩在线不卡 | 成人福利在线观看 | 激情a| 国产男女视频网站 | 一级毛片免费 | 国产精品99久久久久久www | 成人在线影视 | 色视频在线观看 | 久久久久久久91 | 91久久国产 | 国产熟熟 | 夜夜草av | 91麻豆蜜桃一区二区三区 | 天天躁日日躁狠狠的躁天龙影院 | 国产精品美女久久久久aⅴ国产馆 | 国产精彩视频在线观看 | 久久精品中文字幕 | 久久久91精品国产一区二区三区 | 亚洲精品www| 日本午夜网 | 精品国产乱码久久久久久闺蜜 | 国产一区2区 | 亚洲精品2区 | 日韩一及片 | 范冰冰一级做a爰片久久毛片 | 欧美午夜在线 | 久久久成人一区二区免费影院 | 欧洲av在线 | 免费看黄视频网站 | 国产偷录视频叫床高潮对白 |