久久久久久久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 轉換為圖像(格式正確)

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

        • <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 轉換為圖像(格式正確)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個 pdf 文件(附件).我的目標是使用 pdfbox 原樣將 pdf 轉換為圖像(與在 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"));
                  

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

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

                  如何讓 pdfbox 拍攝類似直接快照圖像的內容?

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

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

                  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 );
                  

                  同樣的結果

                  推薦答案

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

                  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();
                  }
                  

                  它工作正常.

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

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

                  相關文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  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 或網絡提供商)
                  Get current location during app launch(在應用啟動期間獲取當前位置)
                  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. 主站蜘蛛池模板: 久久久久久久久精 | 特级特黄特色的免费大片 | 在线播放一区二区三区 | 91久久久久久久久 | 羞羞视频网站在线观看 | 亚洲一区二区精品 | 亚洲欧美日韩系列 | 精品一二三区视频 | 亚洲手机在线 | 久久久久久国产精品免费免费 | 日韩日b视频 | 99成人免费视频 | 一区二区三区国产 | 激情欧美一区二区三区中文字幕 | xx视频在线| 一区二区三区视频在线观看 | 欧美一级欧美一级在线播放 | 五月天天丁香婷婷在线中 | 久久免费香蕉视频 | 九九综合 | 国产精品99久久久久久大便 | 欧美一区二区在线 | 中文字幕精| 羞羞的视频在线 | 久久99久久99久久 | www.久| 中文字幕在线视频免费观看 | 美女一区二区在线观看 | 中文字幕国产视频 | 91福利在线导航 | av网址在线 | 9999精品视频| 精品综合 | 中文字幕日韩欧美一区二区三区 | 日韩一区二区在线观看视频 | 日韩精品一二三区 | 99精品一级欧美片免费播放 | 香蕉av免费| 亚洲精品www | 在线观看免费av片 | 国产精品一区二区在线播放 |