[jira] [Comment Edited] (PDFBOX-5876) This jpeg2000 takes up a lot of memory, causing overflow.
[ https://issues.apache.org/jira/browse/PDFBOX-5876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17878880#comment-17878880 ] liu edited comment on PDFBOX-5876 at 9/3/24 1:23 PM: - 4G JVM can only convert 8 pictures concurrently...It overflows so easily.. was (Author: JIRAUSER297279): 4G JVM can only convert 8 pictures concurrently... > This jpeg2000 takes up a lot of memory, causing overflow. > - > > Key: PDFBOX-5876 > URL: https://issues.apache.org/jira/browse/PDFBOX-5876 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.32, 3.0.2 PDFBox >Reporter: liu >Assignee: Tilman Hausherr >Priority: Major > Fix For: 2.0.33, 3.0.4 PDFBox, 4.0.0 > > Attachments: jpeg2000.pdf > > > pdf:[^jpeg2000.pdf] > JVM:-Xmx600m > {code:java} > //代码占位符 > public static void main(String[] args) throws IOException, > InterruptedException { >File file = new File("C:\\Users\\LYCIT\\Downloads\\jpeg2000.pdf"); >PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); >PDFRenderer renderer = new PDFRenderer(pdf); >int numPages = 0; >renderer.setSubsamplingAllowed(true); >BufferedImage bi = renderer.renderImage(numPages, 0.5f); >pdf.close(); > } {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5876) This jpeg2000 takes up a lot of memory, causing overflow.
[ https://issues.apache.org/jira/browse/PDFBOX-5876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17878880#comment-17878880 ] liu commented on PDFBOX-5876: - 4G JVM can only convert 8 pictures concurrently... > This jpeg2000 takes up a lot of memory, causing overflow. > - > > Key: PDFBOX-5876 > URL: https://issues.apache.org/jira/browse/PDFBOX-5876 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.32, 3.0.2 PDFBox >Reporter: liu >Assignee: Tilman Hausherr >Priority: Major > Fix For: 2.0.33, 3.0.4 PDFBox, 4.0.0 > > Attachments: jpeg2000.pdf > > > pdf:[^jpeg2000.pdf] > JVM:-Xmx600m > {code:java} > //代码占位符 > public static void main(String[] args) throws IOException, > InterruptedException { >File file = new File("C:\\Users\\LYCIT\\Downloads\\jpeg2000.pdf"); >PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); >PDFRenderer renderer = new PDFRenderer(pdf); >int numPages = 0; >renderer.setSubsamplingAllowed(true); >BufferedImage bi = renderer.renderImage(numPages, 0.5f); >pdf.close(); > } {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5876) This jpeg2000 takes up a lot of memory, causing overflow.
[ https://issues.apache.org/jira/browse/PDFBOX-5876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17878878#comment-17878878 ] liu commented on PDFBOX-5876: - It's still very large, one picture takes up 500M. Are there any other optimization solutions? > This jpeg2000 takes up a lot of memory, causing overflow. > - > > Key: PDFBOX-5876 > URL: https://issues.apache.org/jira/browse/PDFBOX-5876 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.32, 3.0.2 PDFBox >Reporter: liu >Assignee: Tilman Hausherr >Priority: Major > Fix For: 2.0.33, 3.0.4 PDFBox, 4.0.0 > > Attachments: jpeg2000.pdf > > > pdf:[^jpeg2000.pdf] > JVM:-Xmx600m > {code:java} > //代码占位符 > public static void main(String[] args) throws IOException, > InterruptedException { >File file = new File("C:\\Users\\LYCIT\\Downloads\\jpeg2000.pdf"); >PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); >PDFRenderer renderer = new PDFRenderer(pdf); >int numPages = 0; >renderer.setSubsamplingAllowed(true); >BufferedImage bi = renderer.renderImage(numPages, 0.5f); >pdf.close(); > } {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5876) This jpeg2000 takes up a lot of memory, causing overflow.
[ https://issues.apache.org/jira/browse/PDFBOX-5876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17878837#comment-17878837 ] liu commented on PDFBOX-5876: - I tried it, but it still seems to overflow. > This jpeg2000 takes up a lot of memory, causing overflow. > - > > Key: PDFBOX-5876 > URL: https://issues.apache.org/jira/browse/PDFBOX-5876 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.32, 3.0.2 PDFBox >Reporter: liu >Assignee: Tilman Hausherr >Priority: Major > Fix For: 2.0.33, 3.0.4 PDFBox, 4.0.0 > > Attachments: jpeg2000.pdf > > > pdf:[^jpeg2000.pdf] > JVM:-Xmx600m > {code:java} > //代码占位符 > public static void main(String[] args) throws IOException, > InterruptedException { >File file = new File("C:\\Users\\LYCIT\\Downloads\\jpeg2000.pdf"); >PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); >PDFRenderer renderer = new PDFRenderer(pdf); >int numPages = 0; >renderer.setSubsamplingAllowed(true); >BufferedImage bi = renderer.renderImage(numPages, 0.5f); >pdf.close(); > } {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Created] (PDFBOX-5876) This jpeg2000 takes up a lot of memory, causing overflow.
liu created PDFBOX-5876: --- Summary: This jpeg2000 takes up a lot of memory, causing overflow. Key: PDFBOX-5876 URL: https://issues.apache.org/jira/browse/PDFBOX-5876 Project: PDFBox Issue Type: Bug Affects Versions: 3.0.2 PDFBox Reporter: liu Attachments: jpeg2000.pdf pdf:[^jpeg2000.pdf] JVM:-Xmx600m {code:java} //代码占位符 public static void main(String[] args) throws IOException, InterruptedException { File file = new File("C:\\Users\\LYCIT\\Downloads\\jpeg2000.pdf"); PDDocument pdf = Loader.loadPDF(file, IOUtils.createTempFileOnlyStreamCache()); PDFRenderer renderer = new PDFRenderer(pdf); int numPages = 0; renderer.setSubsamplingAllowed(true); BufferedImage bi = renderer.renderImage(numPages, 0.5f); pdf.close(); } {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5876) This jpeg2000 takes up a lot of memory, causing overflow.
[ https://issues.apache.org/jira/browse/PDFBOX-5876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5876: Attachment: jpeg2000.pdf > This jpeg2000 takes up a lot of memory, causing overflow. > - > > Key: PDFBOX-5876 > URL: https://issues.apache.org/jira/browse/PDFBOX-5876 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: jpeg2000.pdf > > > pdf:[^jpeg2000.pdf] > JVM:-Xmx600m > {code:java} > //代码占位符 > public static void main(String[] args) throws IOException, > InterruptedException { >File file = new File("C:\\Users\\LYCIT\\Downloads\\jpeg2000.pdf"); >PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); >PDFRenderer renderer = new PDFRenderer(pdf); >int numPages = 0; >renderer.setSubsamplingAllowed(true); >BufferedImage bi = renderer.renderImage(numPages, 0.5f); >pdf.close(); > } {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Created] (PDFBOX-5864) Implementing the write String method of the PDFTextCtripper class, unable to get certain underscores
liu created PDFBOX-5864: --- Summary: Implementing the write String method of the PDFTextCtripper class, unable to get certain underscores Key: PDFBOX-5864 URL: https://issues.apache.org/jira/browse/PDFBOX-5864 Project: PDFBox Issue Type: Bug Components: Text extraction Reporter: liu Attachments: 1.pdf, image-2024-08-07-11-20-35-180.png [^1.pdf] I want to parse and obtain the coordinates and positions of these underscores, but I cannot obtain them using the above method. Is there any way to obtain the coordinates and positions of these underscores. !image-2024-08-07-11-20-35-180.png|width=471,height=216! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5851) When this PDF is rendered with the "f" Operator, a black screen appears.
[ https://issues.apache.org/jira/browse/PDFBOX-5851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867642#comment-17867642 ] liu commented on PDFBOX-5851: - (y) > When this PDF is rendered with the "f" Operator, a black screen appears. > > > Key: PDFBOX-5851 > URL: https://issues.apache.org/jira/browse/PDFBOX-5851 > Project: PDFBox > Issue Type: Improvement > Components: Rendering >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Assignee: Tilman Hausherr >Priority: Major > Labels: Pattern > Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0 > > Attachments: image-2024-07-19-16-58-35-439.png, > image-2024-07-19-16-58-57-515.png, image-2024-07-19-17-41-18-618.png, > image2-scratch_unc.pdf, image2.pdf, screenshot-1.png > > > [^image2.pdf] > !image-2024-07-19-16-58-35-439.png|width=345,height=187! > !image-2024-07-19-16-58-57-515.png|width=214,height=277! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5851) When this PDF is rendered with the "f" Operator, a black screen appears.
[ https://issues.apache.org/jira/browse/PDFBOX-5851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867632#comment-17867632 ] liu commented on PDFBOX-5851: - thanks,Could you please tell me what tool was used to parse this content. /P12 scn /P12 SCN 0.75 0 0 -0.75 0 1584 cm 58 1056 200 200 re f > When this PDF is rendered with the "f" Operator, a black screen appears. > > > Key: PDFBOX-5851 > URL: https://issues.apache.org/jira/browse/PDFBOX-5851 > Project: PDFBox > Issue Type: Improvement > Components: Rendering >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Assignee: Tilman Hausherr >Priority: Major > Labels: Pattern > Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0 > > Attachments: image-2024-07-19-16-58-35-439.png, > image-2024-07-19-16-58-57-515.png, image-2024-07-19-17-41-18-618.png, > image2-scratch_unc.pdf, image2.pdf, screenshot-1.png > > > [^image2.pdf] > !image-2024-07-19-16-58-35-439.png|width=345,height=187! > !image-2024-07-19-16-58-57-515.png|width=214,height=277! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5851) When this PDF is rendered with the "f" Operator, a black screen appears.
[ https://issues.apache.org/jira/browse/PDFBOX-5851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867272#comment-17867272 ] liu commented on PDFBOX-5851: - 1) the black area 2) the missing text. I debugged the code and found that the complete text was rendered first. When the "f" Operator was executed, the black area covered the text. 1) render text.2) the black area. > When this PDF is rendered with the "f" Operator, a black screen appears. > > > Key: PDFBOX-5851 > URL: https://issues.apache.org/jira/browse/PDFBOX-5851 > Project: PDFBox > Issue Type: Improvement > Components: Rendering >Affects Versions: 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: image-2024-07-19-16-58-35-439.png, > image-2024-07-19-16-58-57-515.png, image-2024-07-19-17-41-18-618.png, > image2.pdf > > > [^image2.pdf] > !image-2024-07-19-16-58-35-439.png|width=345,height=187! > !image-2024-07-19-16-58-57-515.png|width=214,height=277! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5851) When this PDF is rendered with the "f" Operator, a black screen appears.
[ https://issues.apache.org/jira/browse/PDFBOX-5851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867266#comment-17867266 ] liu commented on PDFBOX-5851: - hi!My question is that this page turns black. Can it display normal content? like this. !image-2024-07-19-17-41-18-618.png|width=273,height=154! > When this PDF is rendered with the "f" Operator, a black screen appears. > > > Key: PDFBOX-5851 > URL: https://issues.apache.org/jira/browse/PDFBOX-5851 > Project: PDFBox > Issue Type: Improvement > Components: Rendering >Affects Versions: 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: image-2024-07-19-16-58-35-439.png, > image-2024-07-19-16-58-57-515.png, image-2024-07-19-17-41-18-618.png, > image2.pdf > > > [^image2.pdf] > !image-2024-07-19-16-58-35-439.png|width=345,height=187! > !image-2024-07-19-16-58-57-515.png|width=214,height=277! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5851) When this PDF is rendered with the "f" Operator, a black screen appears.
[ https://issues.apache.org/jira/browse/PDFBOX-5851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5851: Attachment: image-2024-07-19-17-41-18-618.png > When this PDF is rendered with the "f" Operator, a black screen appears. > > > Key: PDFBOX-5851 > URL: https://issues.apache.org/jira/browse/PDFBOX-5851 > Project: PDFBox > Issue Type: Improvement > Components: Rendering >Affects Versions: 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: image-2024-07-19-16-58-35-439.png, > image-2024-07-19-16-58-57-515.png, image-2024-07-19-17-41-18-618.png, > image2.pdf > > > [^image2.pdf] > !image-2024-07-19-16-58-35-439.png|width=345,height=187! > !image-2024-07-19-16-58-57-515.png|width=214,height=277! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Created] (PDFBOX-5851) When this PDF is rendered with the "f" Operator, a black screen appears.
liu created PDFBOX-5851: --- Summary: When this PDF is rendered with the "f" Operator, a black screen appears. Key: PDFBOX-5851 URL: https://issues.apache.org/jira/browse/PDFBOX-5851 Project: PDFBox Issue Type: Improvement Components: Rendering Affects Versions: 3.0.2 PDFBox Reporter: liu Attachments: image-2024-07-19-16-58-35-439.png, image-2024-07-19-16-58-57-515.png, image2.pdf [^image2.pdf] !image-2024-07-19-16-58-35-439.png|width=345,height=187! !image-2024-07-19-16-58-57-515.png|width=214,height=277! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5846) A PDF with 5.3 million xref data, performance comparison between pdfbox3 and itextpdf.hope to optimize the memory usage and loading process time.
[ https://issues.apache.org/jira/browse/PDFBOX-5846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5846: Summary: A PDF with 5.3 million xref data, performance comparison between pdfbox3 and itextpdf.hope to optimize the memory usage and loading process time. (was: A PDF with 5.3 million xref data, performance comparison between pdfbox3 and itextpdf.) > A PDF with 5.3 million xref data, performance comparison between pdfbox3 and > itextpdf.hope to optimize the memory usage and loading process time. > - > > Key: PDFBOX-5846 > URL: https://issues.apache.org/jira/browse/PDFBOX-5846 > Project: PDFBox > Issue Type: Improvement > Components: Rendering >Affects Versions: 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 66.7z, image-2024-06-28-15-49-33-885.png, > image-2024-06-28-15-50-36-240.png, image-2024-06-28-15-57-49-634.png, > image-2024-06-28-16-00-39-424.png > > > There is a pdf in this compressed file. > [^66.zip] > > Test comparison code > > {code:java} > //代码占位符 > package net.qiyuesuo.common.pdf; > import com.itextpdf.text.pdf.PdfReader; > import org.apache.pdfbox.Loader; > import org.apache.pdfbox.io.IOUtils; > import org.apache.pdfbox.pdmodel.PDDocument; > import java.io.File; > /** > * @author : > * @description : > * @date : > */ > public class Test6 { >private static void pdfbox3() throws Throwable{ > long l = System.currentTimeMillis(); > File file = new File("C:\\Users\\LYCIT\\Downloads\\66.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > System.out.println("loadPDF time:"+ (System.currentTimeMillis() - l)); > Thread.sleep(3600); >} >public static void itextpdf() throws Throwable { > long l = System.currentTimeMillis(); > String file = "C:\\Users\\LYCIT\\Downloads\\66.pdf"; > final PdfReader pdfReader = new PdfReader(file, null, true); > System.out.println("loadPDF time:"+ (System.currentTimeMillis() - l)); > Thread.sleep(3600); >} >public static void main(String[] args) throws Throwable { > pdfbox3(); > //itextpdf(); >} > } > {code} > Load time: > pdfbox3:10233 ms. > > itextpdf:925 ms. > Memory usage: > pdfbox3:790M. > !image-2024-06-28-15-49-33-885.png|width=312,height=151! > itextpdf:106M. > !image-2024-06-28-15-50-36-240.png|width=307,height=166! > > Detailed memory usage: > pdfbox3:xrefTable and keyCache. > !image-2024-06-28-15-57-49-634.png|width=307,height=200! > itextpdf:xref and xrefObj. > !image-2024-06-28-16-00-39-424.png|width=311,height=203! > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Created] (PDFBOX-5846) A PDF with 5.3 million xref data, performance comparison between pdfbox3 and itextpdf.
liu created PDFBOX-5846: --- Summary: A PDF with 5.3 million xref data, performance comparison between pdfbox3 and itextpdf. Key: PDFBOX-5846 URL: https://issues.apache.org/jira/browse/PDFBOX-5846 Project: PDFBox Issue Type: Improvement Components: Rendering Affects Versions: 3.0.2 PDFBox Reporter: liu Attachments: 66.7z, image-2024-06-28-15-49-33-885.png, image-2024-06-28-15-50-36-240.png, image-2024-06-28-15-57-49-634.png, image-2024-06-28-16-00-39-424.png There is a pdf in this compressed file. [^66.zip] Test comparison code {code:java} //代码占位符 package net.qiyuesuo.common.pdf; import com.itextpdf.text.pdf.PdfReader; import org.apache.pdfbox.Loader; import org.apache.pdfbox.io.IOUtils; import org.apache.pdfbox.pdmodel.PDDocument; import java.io.File; /** * @author : * @description : * @date : */ public class Test6 { private static void pdfbox3() throws Throwable{ long l = System.currentTimeMillis(); File file = new File("C:\\Users\\LYCIT\\Downloads\\66.pdf"); PDDocument pdf = Loader.loadPDF(file, IOUtils.createTempFileOnlyStreamCache()); System.out.println("loadPDF time:"+ (System.currentTimeMillis() - l)); Thread.sleep(3600); } public static void itextpdf() throws Throwable { long l = System.currentTimeMillis(); String file = "C:\\Users\\LYCIT\\Downloads\\66.pdf"; final PdfReader pdfReader = new PdfReader(file, null, true); System.out.println("loadPDF time:"+ (System.currentTimeMillis() - l)); Thread.sleep(3600); } public static void main(String[] args) throws Throwable { pdfbox3(); //itextpdf(); } } {code} Load time: pdfbox3:10233 ms. itextpdf:925 ms. Memory usage: pdfbox3:790M. !image-2024-06-28-15-49-33-885.png|width=312,height=151! itextpdf:106M. !image-2024-06-28-15-50-36-240.png|width=307,height=166! Detailed memory usage: pdfbox3:xrefTable and keyCache. !image-2024-06-28-15-57-49-634.png|width=307,height=200! itextpdf:xref and xrefObj. !image-2024-06-28-16-00-39-424.png|width=311,height=203! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5843) There is an exception when getting embedded font, is it compatible?
[ https://issues.apache.org/jira/browse/PDFBOX-5843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17856364#comment-17856364 ] liu commented on PDFBOX-5843: - (y) so cool ! > There is an exception when getting embedded font, is it compatible? > --- > > Key: PDFBOX-5843 > URL: https://issues.apache.org/jira/browse/PDFBOX-5843 > Project: PDFBox > Issue Type: Bug > Components: FontBox >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Assignee: Tilman Hausherr >Priority: Major > Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0 > > Attachments: 123.pdf, image-2024-06-19-16-49-40-186.png, > screenshot-1.png, screenshot-2.png, screenshot-3.png, xxx.cff > > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5843) There is an exception when getting embedded font, is it compatible?
[ https://issues.apache.org/jira/browse/PDFBOX-5843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5843: Attachment: image-2024-06-19-16-49-40-186.png > There is an exception when getting embedded font, is it compatible? > --- > > Key: PDFBOX-5843 > URL: https://issues.apache.org/jira/browse/PDFBOX-5843 > Project: PDFBox > Issue Type: Bug > Components: FontBox >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 123.pdf, image-2024-06-19-16-49-40-186.png, > screenshot-1.png, screenshot-2.png > > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5843) There is an exception when getting embedded font, is it compatible?
[ https://issues.apache.org/jira/browse/PDFBOX-5843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5843: Component/s: FontBox > There is an exception when getting embedded font, is it compatible? > --- > > Key: PDFBOX-5843 > URL: https://issues.apache.org/jira/browse/PDFBOX-5843 > Project: PDFBox > Issue Type: Bug > Components: FontBox >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 123.pdf, screenshot-1.png > > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5843) There is an exception when getting embedded font, is it compatible?
[ https://issues.apache.org/jira/browse/PDFBOX-5843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17856190#comment-17856190 ] liu commented on PDFBOX-5843: - !screenshot-1.png|width=442,height=239! > There is an exception when getting embedded font, is it compatible? > --- > > Key: PDFBOX-5843 > URL: https://issues.apache.org/jira/browse/PDFBOX-5843 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 123.pdf, screenshot-1.png > > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5843) There is an exception when getting embedded font, is it compatible?
[ https://issues.apache.org/jira/browse/PDFBOX-5843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5843: Attachment: screenshot-1.png > There is an exception when getting embedded font, is it compatible? > --- > > Key: PDFBOX-5843 > URL: https://issues.apache.org/jira/browse/PDFBOX-5843 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 123.pdf, screenshot-1.png > > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Created] (PDFBOX-5843) There is an exception when getting embedded font, is it compatible?
liu created PDFBOX-5843: --- Summary: There is an exception when getting embedded font, is it compatible? Key: PDFBOX-5843 URL: https://issues.apache.org/jira/browse/PDFBOX-5843 Project: PDFBox Issue Type: Bug Affects Versions: 3.0.2 PDFBox, 2.0.31 Reporter: liu Attachments: 123.pdf -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5839) ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854997#comment-17854997 ] liu commented on PDFBOX-5839: - Thanks.should be no problem. > ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to > org.apache.pdfbox.cos.COSDictionary > --- > > Key: PDFBOX-5839 > URL: https://issues.apache.org/jira/browse/PDFBOX-5839 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-06-14-15-36-01-099.png, > image-2024-06-14-16-35-39-381.png, image-2024-06-14-16-39-47-557.png > > > [^1.pdf][^2.pdf] > ^!image-2024-06-14-15-36-01-099.png|width=395,height=214!^ > When rendering 1.pdf and 2.pdf, there will be a ClassCastException problem. > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5839) ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854994#comment-17854994 ] liu commented on PDFBOX-5839: - 2.0.31 version can be get an exception. {code:java} //代码占位符 {code} public static void main(String[] args) throws IOException, InterruptedException \{ File file = new File("C:\\Users\\LYCIT\\Downloads\\加水印pdfbox报错\\2.pdf"); final PDDocument load = PDDocument.load(file, MemoryUsageSetting.setupTempFileOnly()); PDFRenderer renderer = new PDFRenderer(load); renderer.setSubsamplingAllowed(true); int pageIndex = 0; float scale = 2f; BufferedImage bufferedImage = renderer.renderImage(pageIndex, scale, ImageType.RGB); } > ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to > org.apache.pdfbox.cos.COSDictionary > --- > > Key: PDFBOX-5839 > URL: https://issues.apache.org/jira/browse/PDFBOX-5839 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-06-14-15-36-01-099.png, > image-2024-06-14-16-35-39-381.png, image-2024-06-14-16-39-47-557.png > > > [^1.pdf][^2.pdf] > ^!image-2024-06-14-15-36-01-099.png|width=395,height=214!^ > When rendering 1.pdf and 2.pdf, there will be a ClassCastException problem. > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Comment Edited] (PDFBOX-5839) ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854994#comment-17854994 ] liu edited comment on PDFBOX-5839 at 6/14/24 8:53 AM: -- 2.0.31 version can be get an exception. {code:java} //代码占位符 public static void main(String[] args) throws IOException, InterruptedException { File file = new File("C:\\Users\\LYCIT\\Downloads\\2.pdf"); final PDDocument load = PDDocument.load(file, MemoryUsageSetting.setupTempFileOnly()); PDFRenderer renderer = new PDFRenderer(load); renderer.setSubsamplingAllowed(true); int pageIndex = 0; float scale = 2f; BufferedImage bufferedImage = renderer.renderImage(pageIndex, scale, ImageType.RGB); }{code} was (Author: JIRAUSER297279): 2.0.31 version can be get an exception. {code:java} //代码占位符 {code} public static void main(String[] args) throws IOException, InterruptedException \{ File file = new File("C:\\Users\\LYCIT\\Downloads\\加水印pdfbox报错\\2.pdf"); final PDDocument load = PDDocument.load(file, MemoryUsageSetting.setupTempFileOnly()); PDFRenderer renderer = new PDFRenderer(load); renderer.setSubsamplingAllowed(true); int pageIndex = 0; float scale = 2f; BufferedImage bufferedImage = renderer.renderImage(pageIndex, scale, ImageType.RGB); } > ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to > org.apache.pdfbox.cos.COSDictionary > --- > > Key: PDFBOX-5839 > URL: https://issues.apache.org/jira/browse/PDFBOX-5839 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-06-14-15-36-01-099.png, > image-2024-06-14-16-35-39-381.png, image-2024-06-14-16-39-47-557.png > > > [^1.pdf][^2.pdf] > ^!image-2024-06-14-15-36-01-099.png|width=395,height=214!^ > When rendering 1.pdf and 2.pdf, there will be a ClassCastException problem. > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5839) ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854983#comment-17854983 ] liu commented on PDFBOX-5839: - !image-2024-06-14-16-39-47-557.png|width=316,height=145! Many places do not perform empty judgment operations. > ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to > org.apache.pdfbox.cos.COSDictionary > --- > > Key: PDFBOX-5839 > URL: https://issues.apache.org/jira/browse/PDFBOX-5839 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-06-14-15-36-01-099.png, > image-2024-06-14-16-35-39-381.png, image-2024-06-14-16-39-47-557.png > > > [^1.pdf][^2.pdf] > ^!image-2024-06-14-15-36-01-099.png|width=395,height=214!^ > When rendering 1.pdf and 2.pdf, there will be a ClassCastException problem. > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5839) ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5839: Attachment: image-2024-06-14-16-39-47-557.png > ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to > org.apache.pdfbox.cos.COSDictionary > --- > > Key: PDFBOX-5839 > URL: https://issues.apache.org/jira/browse/PDFBOX-5839 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-06-14-15-36-01-099.png, > image-2024-06-14-16-35-39-381.png, image-2024-06-14-16-39-47-557.png > > > [^1.pdf][^2.pdf] > ^!image-2024-06-14-15-36-01-099.png|width=395,height=214!^ > When rendering 1.pdf and 2.pdf, there will be a ClassCastException problem. > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5839) ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854981#comment-17854981 ] liu commented on PDFBOX-5839: - !image-2024-06-14-16-35-39-381.png|width=373,height=202! I see that the toDictionary method is called in many places. > ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to > org.apache.pdfbox.cos.COSDictionary > --- > > Key: PDFBOX-5839 > URL: https://issues.apache.org/jira/browse/PDFBOX-5839 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-06-14-15-36-01-099.png, > image-2024-06-14-16-35-39-381.png > > > [^1.pdf][^2.pdf] > ^!image-2024-06-14-15-36-01-099.png|width=395,height=214!^ > When rendering 1.pdf and 2.pdf, there will be a ClassCastException problem. > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5839) ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5839: Attachment: image-2024-06-14-16-35-39-381.png > ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to > org.apache.pdfbox.cos.COSDictionary > --- > > Key: PDFBOX-5839 > URL: https://issues.apache.org/jira/browse/PDFBOX-5839 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-06-14-15-36-01-099.png, > image-2024-06-14-16-35-39-381.png > > > [^1.pdf][^2.pdf] > ^!image-2024-06-14-15-36-01-099.png|width=395,height=214!^ > When rendering 1.pdf and 2.pdf, there will be a ClassCastException problem. > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5839) ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5839: Attachment: (was: image-2024-06-14-15-35-53-793.png) > ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to > org.apache.pdfbox.cos.COSDictionary > --- > > Key: PDFBOX-5839 > URL: https://issues.apache.org/jira/browse/PDFBOX-5839 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-06-14-15-36-01-099.png > > > [^1.pdf][^2.pdf] > ^!image-2024-06-14-15-36-01-099.png|width=395,height=214!^ > When converting 1.pdf and 2.pdf, there will be a ClassCastException problem. > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5839) ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5839: Description: [^1.pdf][^2.pdf] ^!image-2024-06-14-15-36-01-099.png|width=395,height=214!^ was: [^1.pdf][^2.pdf] > ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to > org.apache.pdfbox.cos.COSDictionary > --- > > Key: PDFBOX-5839 > URL: https://issues.apache.org/jira/browse/PDFBOX-5839 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-06-14-15-35-53-793.png, > image-2024-06-14-15-36-01-099.png > > > [^1.pdf][^2.pdf] > ^!image-2024-06-14-15-36-01-099.png|width=395,height=214!^ > > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5839) ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5839: Description: [^1.pdf][^2.pdf] ^!image-2024-06-14-15-36-01-099.png|width=395,height=214!^ When converting 1.pdf and 2.pdf, there will be a ClassCastException problem. was: [^1.pdf][^2.pdf] ^!image-2024-06-14-15-36-01-099.png|width=395,height=214!^ > ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to > org.apache.pdfbox.cos.COSDictionary > --- > > Key: PDFBOX-5839 > URL: https://issues.apache.org/jira/browse/PDFBOX-5839 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-06-14-15-36-01-099.png > > > [^1.pdf][^2.pdf] > ^!image-2024-06-14-15-36-01-099.png|width=395,height=214!^ > When converting 1.pdf and 2.pdf, there will be a ClassCastException problem. > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5839) ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5839: Attachment: image-2024-06-14-15-35-53-793.png > ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to > org.apache.pdfbox.cos.COSDictionary > --- > > Key: PDFBOX-5839 > URL: https://issues.apache.org/jira/browse/PDFBOX-5839 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-06-14-15-35-53-793.png > > > [^1.pdf][^2.pdf] > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5839) ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5839: Attachment: image-2024-06-14-15-36-01-099.png > ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to > org.apache.pdfbox.cos.COSDictionary > --- > > Key: PDFBOX-5839 > URL: https://issues.apache.org/jira/browse/PDFBOX-5839 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-06-14-15-35-53-793.png, > image-2024-06-14-15-36-01-099.png > > > [^1.pdf][^2.pdf] > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Created] (PDFBOX-5839) ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary
liu created PDFBOX-5839: --- Summary: ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSDictionary Key: PDFBOX-5839 URL: https://issues.apache.org/jira/browse/PDFBOX-5839 Project: PDFBox Issue Type: Bug Affects Versions: 3.0.2 PDFBox, 2.0.31 Reporter: liu Attachments: 1.pdf, 2.pdf, image-2024-06-14-15-35-53-793.png [^1.pdf][^2.pdf] -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17841027#comment-17841027 ] liu commented on PDFBOX-5675: - ok,thanks > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Fix For: 4.0.0, 3.0.3 PDFBox > > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > PDFBOX-5675-v2.patch, PDFBOX-5675.patch, image-2023-09-05-15-05-50-168.png, > image-2024-04-24-16-50-38-925.png, image-2024-04-24-18-33-17-524.png, > image-2024-04-24-18-35-43-792.png, image-2024-04-24-19-25-22-904.png, > image.png, screenshot-1.png, screenshot-2.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17841024#comment-17841024 ] liu commented on PDFBOX-5675: - I would like to ask if there is anything else that needs to be expanded on? > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > PDFBOX-5675-v2.patch, PDFBOX-5675.patch, image-2023-09-05-15-05-50-168.png, > image-2024-04-24-16-50-38-925.png, image-2024-04-24-18-33-17-524.png, > image-2024-04-24-18-35-43-792.png, image-2024-04-24-19-25-22-904.png, > image.png, screenshot-1.png, screenshot-2.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Comment Edited] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840629#comment-17840629 ] liu edited comment on PDFBOX-5675 at 4/25/24 2:24 AM: -- [^PDFBOX-5675-v2.patch] ^I modified the location of the parameters, please help me review them again.The overloaded method has been added before.^ was (Author: JIRAUSER297279): [^PDFBOX-5675-v2.patch] ^I modified the location of the parameters, please help me review them again.^ > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > PDFBOX-5675-v2.patch, PDFBOX-5675.patch, image-2023-09-05-15-05-50-168.png, > image-2024-04-24-16-50-38-925.png, image-2024-04-24-18-33-17-524.png, > image-2024-04-24-18-35-43-792.png, image-2024-04-24-19-25-22-904.png, > image.png, screenshot-1.png, screenshot-2.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Comment Edited] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840629#comment-17840629 ] liu edited comment on PDFBOX-5675 at 4/25/24 2:14 AM: -- [^PDFBOX-5675-v2.patch] ^I modified the location of the parameters, please help me review them again.^ was (Author: JIRAUSER297279): [^PDFBOX-5675-v2.patch] > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > PDFBOX-5675-v2.patch, PDFBOX-5675.patch, image-2023-09-05-15-05-50-168.png, > image-2024-04-24-16-50-38-925.png, image-2024-04-24-18-33-17-524.png, > image-2024-04-24-18-35-43-792.png, image-2024-04-24-19-25-22-904.png, > image.png, screenshot-1.png, screenshot-2.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840629#comment-17840629 ] liu commented on PDFBOX-5675: - [^PDFBOX-5675-v2.patch] > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > PDFBOX-5675.patch, image-2023-09-05-15-05-50-168.png, > image-2024-04-24-16-50-38-925.png, image-2024-04-24-18-33-17-524.png, > image-2024-04-24-18-35-43-792.png, image-2024-04-24-19-25-22-904.png, > image.png, screenshot-1.png, screenshot-2.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5675: Attachment: PDFBOX-5675-v2.patch > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > PDFBOX-5675-v2.patch, PDFBOX-5675.patch, image-2023-09-05-15-05-50-168.png, > image-2024-04-24-16-50-38-925.png, image-2024-04-24-18-33-17-524.png, > image-2024-04-24-18-35-43-792.png, image-2024-04-24-19-25-22-904.png, > image.png, screenshot-1.png, screenshot-2.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675 ] liu deleted comment on PDFBOX-5675: - was (Author: JIRAUSER297279): How did you make the patch file? Is there any tutorial? I never knew how to make it before. I’m ashamed. > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > PDFBOX-5675.patch, image-2023-09-05-15-05-50-168.png, > image-2024-04-24-16-50-38-925.png, image-2024-04-24-18-33-17-524.png, > image-2024-04-24-18-35-43-792.png, image-2024-04-24-19-25-22-904.png, > image.png, screenshot-1.png, screenshot-2.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840624#comment-17840624 ] liu commented on PDFBOX-5675: - [^PDFBOX-5675.patch] > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > image-2023-09-05-15-05-50-168.png, image-2024-04-24-16-50-38-925.png, > image-2024-04-24-18-33-17-524.png, image-2024-04-24-18-35-43-792.png, > image-2024-04-24-19-25-22-904.png, image.png, screenshot-1.png, > screenshot-2.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5675: Attachment: PDFBOX-5675.patch > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > PDFBOX-5675.patch, image-2023-09-05-15-05-50-168.png, > image-2024-04-24-16-50-38-925.png, image-2024-04-24-18-33-17-524.png, > image-2024-04-24-18-35-43-792.png, image-2024-04-24-19-25-22-904.png, > image.png, screenshot-1.png, screenshot-2.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840616#comment-17840616 ] liu commented on PDFBOX-5675: - How did you make the patch file? Is there any tutorial? I never knew how to make it before. I’m ashamed. > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > image-2023-09-05-15-05-50-168.png, image-2024-04-24-16-50-38-925.png, > image-2024-04-24-18-33-17-524.png, image-2024-04-24-18-35-43-792.png, > image-2024-04-24-19-25-22-904.png, image.png, screenshot-1.png, > screenshot-2.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840403#comment-17840403 ] liu commented on PDFBOX-5675: - !screenshot-2.png|width=299,height=152! Adding a new default type method can avoid compilation errors caused by other people implementing RandomAccessStreamCache. RandomAccessStreamCacheImpl implements the createBuffer(int definedChunkSize) method again. !image-2024-04-24-19-25-22-904.png|width=289,height=147! > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > image-2023-09-05-15-05-50-168.png, image-2024-04-24-16-50-38-925.png, > image-2024-04-24-18-33-17-524.png, image-2024-04-24-18-35-43-792.png, > image-2024-04-24-19-25-22-904.png, image.png, screenshot-1.png, > screenshot-2.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5675: Attachment: image-2024-04-24-19-25-22-904.png > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > image-2023-09-05-15-05-50-168.png, image-2024-04-24-16-50-38-925.png, > image-2024-04-24-18-33-17-524.png, image-2024-04-24-18-35-43-792.png, > image-2024-04-24-19-25-22-904.png, image.png, screenshot-1.png, > screenshot-2.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5675: Attachment: screenshot-2.png > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > image-2023-09-05-15-05-50-168.png, image-2024-04-24-16-50-38-925.png, > image-2024-04-24-18-33-17-524.png, image-2024-04-24-18-35-43-792.png, > image.png, screenshot-1.png, screenshot-2.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840380#comment-17840380 ] liu commented on PDFBOX-5675: - !image-2024-04-24-18-33-17-524.png|width=344,height=186! !image-2024-04-24-18-35-43-792.png|width=343,height=174! I saw that this method Filter#decode is called in other places. and null is passed in to allow other calling places to continue the original logic. > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > image-2023-09-05-15-05-50-168.png, image-2024-04-24-16-50-38-925.png, > image-2024-04-24-18-33-17-524.png, image-2024-04-24-18-35-43-792.png, > image.png, screenshot-1.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5675: Attachment: image-2024-04-24-18-35-43-792.png > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > image-2023-09-05-15-05-50-168.png, image-2024-04-24-16-50-38-925.png, > image-2024-04-24-18-33-17-524.png, image-2024-04-24-18-35-43-792.png, > image.png, screenshot-1.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5675: Attachment: image-2024-04-24-18-33-17-524.png > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > image-2023-09-05-15-05-50-168.png, image-2024-04-24-16-50-38-925.png, > image-2024-04-24-18-33-17-524.png, image.png, screenshot-1.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840379#comment-17840379 ] liu commented on PDFBOX-5675: - If IOUtils.createTempFileOnlyStreamCache() is passed in the loadPDF method, there should be no performance difference from the status quo. PDDocument pdf = Loader.loadPDF(file, IOUtils.createTempFileOnlyStreamCache()); > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > image-2023-09-05-15-05-50-168.png, image-2024-04-24-16-50-38-925.png, > image.png, screenshot-1.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840343#comment-17840343 ] liu commented on PDFBOX-5675: - !screenshot-1.png|width=360,height=183! !image-2024-04-24-16-50-38-925.png|width=362,height=184! hi!Can the StreamCacheCreateFunction passed in the loadPDF method be used instead to solve the memory problem? PDDocument pdf = Loader.loadPDF(file, IOUtils.createTempFileOnlyStreamCache()); > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > image-2023-09-05-15-05-50-168.png, image-2024-04-24-16-50-38-925.png, > image.png, screenshot-1.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5675: Attachment: image-2024-04-24-16-50-38-925.png > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > image-2023-09-05-15-05-50-168.png, image-2024-04-24-16-50-38-925.png, > image.png, screenshot-1.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5675) org.apache.pdfbox.filter.Filter#decode() Java heap space
[ https://issues.apache.org/jira/browse/PDFBOX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5675: Attachment: screenshot-1.png > org.apache.pdfbox.filter.Filter#decode() Java heap space > > > Key: PDFBOX-5675 > URL: https://issues.apache.org/jira/browse/PDFBOX-5675 > Project: PDFBox > Issue Type: Bug >Affects Versions: 3.0.0 PDFBox >Reporter: liu >Priority: Major > Attachments: 2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf, > image-2023-09-05-15-05-50-168.png, image.png, screenshot-1.png > > > !image-2023-09-05-15-05-50-168.png! > When converting the sixth page of this PDF > file(2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf) to an image, a memory > overflow occurs. Can you provide a way to store the output in a temporary > file? > {code:java} > -Xmx2000m > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new > File("D:\\2095e3df01fc32e0bff982a1e79600d5bcf10b81.pdf"); > PDDocument pdf = Loader.loadPDF(file, > IOUtils.createTempFileOnlyStreamCache()); > pdf.setResourceCache(new PdfboxResourceCache()); > PDFRenderer renderer = new PDFRenderer(pdf); > renderer.setSubsamplingAllowed(true); > BufferedImage bi = renderer.renderImage(5, 0.125f); > Thread.sleep(360); > pdf.close(); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5804) The embedded font style rendered by pdfbox is a bit strange, Adobe's is more normal.
[ https://issues.apache.org/jira/browse/PDFBOX-5804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17838612#comment-17838612 ] liu commented on PDFBOX-5804: - For the situation of 2.pdf, can it be modified to allow users to render according to the guaranteed font they passed in when "No glyph for" appears? In this way, there will be no font copyright issues and users can configure it themselves. > The embedded font style rendered by pdfbox is a bit strange, Adobe's is more > normal. > > > Key: PDFBOX-5804 > URL: https://issues.apache.org/jira/browse/PDFBOX-5804 > Project: PDFBox > Issue Type: Bug > Components: FontBox, Rendering >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-04-16-17-12-00-456.png > > > test file:1.pdf. > The one on the left is rendered by Adobe, and the one on the right is > rendered by PDFBox. > !image-2024-04-16-17-12-00-456.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5804) The embedded font style rendered by pdfbox is a bit strange, Adobe's is more normal.
[ https://issues.apache.org/jira/browse/PDFBOX-5804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5804: Component/s: Rendering > The embedded font style rendered by pdfbox is a bit strange, Adobe's is more > normal. > > > Key: PDFBOX-5804 > URL: https://issues.apache.org/jira/browse/PDFBOX-5804 > Project: PDFBox > Issue Type: Bug > Components: FontBox, Rendering >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-04-16-17-12-00-456.png > > > test file:1.pdf. > The one on the left is rendered by Adobe, and the one on the right is > rendered by PDFBox. > !image-2024-04-16-17-12-00-456.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Comment Edited] (PDFBOX-5804) The embedded font style rendered by pdfbox is a bit strange, Adobe's is more normal.
[ https://issues.apache.org/jira/browse/PDFBOX-5804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17837640#comment-17837640 ] liu edited comment on PDFBOX-5804 at 4/16/24 10:29 AM: --- Another question: When pdfbox detects No glyph for, can we use the font of FontMapperImpl.lastResortFont to render the font we want? And FontMapperImpl.lastResortFont can give our users customized settings, because if many non-English fonts use the default LiberationSans, it is easy to lose text. For example, 2.pdf, pdfbox will warn “No glyph for” when converting, and then the rendered text will be lost. Because it is impossible to include all fonts on the server, in different user environments, even if there are no other fonts or no glyph, we can set a suitable base font to render the text. was (Author: JIRAUSER297279): Another question: When pdfbox detects No glyph for, can we use the font of FontMapperImpl.lastResortFont to render the font we want? And FontMapperImpl.lastResortFont can give our users customized settings, because if many non-English fonts use the default LiberationSans, it is easy to lose text. For example, 2.pdf, pdfbox will warn “No glyph for” when converting, and then the rendered text will be lost. > The embedded font style rendered by pdfbox is a bit strange, Adobe's is more > normal. > > > Key: PDFBOX-5804 > URL: https://issues.apache.org/jira/browse/PDFBOX-5804 > Project: PDFBox > Issue Type: Bug > Components: FontBox >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-04-16-17-12-00-456.png > > > test file:1.pdf. > The one on the left is rendered by Adobe, and the one on the right is > rendered by PDFBox. > !image-2024-04-16-17-12-00-456.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Comment Edited] (PDFBOX-5804) The embedded font style rendered by pdfbox is a bit strange, Adobe's is more normal.
[ https://issues.apache.org/jira/browse/PDFBOX-5804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17837640#comment-17837640 ] liu edited comment on PDFBOX-5804 at 4/16/24 10:07 AM: --- Another question: When pdfbox detects No glyph for, can we use the font of FontMapperImpl.lastResortFont to render the font we want? And FontMapperImpl.lastResortFont can give our users customized settings, because if many non-English fonts use the default LiberationSans, it is easy to lose text. For example, 2.pdf, pdfbox will warn “No glyph for” when converting, and then the rendered text will be lost. was (Author: JIRAUSER297279): Another question: When pdfbox detects No glyph for, can we use the font of FontMapperImpl.lastResortFont to render the font we want? And FontMapperImpl.lastResortFont can give our users customized settings, because if many non-English fonts use the default LiberationSans, it is easy to lose text. > The embedded font style rendered by pdfbox is a bit strange, Adobe's is more > normal. > > > Key: PDFBOX-5804 > URL: https://issues.apache.org/jira/browse/PDFBOX-5804 > Project: PDFBox > Issue Type: Bug > Components: FontBox >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-04-16-17-12-00-456.png > > > test file:1.pdf. > The one on the left is rendered by Adobe, and the one on the right is > rendered by PDFBox. > !image-2024-04-16-17-12-00-456.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5804) The embedded font style rendered by pdfbox is a bit strange, Adobe's is more normal.
[ https://issues.apache.org/jira/browse/PDFBOX-5804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5804: Attachment: 2.pdf > The embedded font style rendered by pdfbox is a bit strange, Adobe's is more > normal. > > > Key: PDFBOX-5804 > URL: https://issues.apache.org/jira/browse/PDFBOX-5804 > Project: PDFBox > Issue Type: Bug > Components: FontBox >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-04-16-17-12-00-456.png > > > test file:1.pdf. > The one on the left is rendered by Adobe, and the one on the right is > rendered by PDFBox. > !image-2024-04-16-17-12-00-456.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5804) The embedded font style rendered by pdfbox is a bit strange, Adobe's is more normal.
[ https://issues.apache.org/jira/browse/PDFBOX-5804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17837640#comment-17837640 ] liu commented on PDFBOX-5804: - Another question: When pdfbox detects No glyph for, can we use the font of FontMapperImpl.lastResortFont to render the font we want? And FontMapperImpl.lastResortFont can give our users customized settings, because if many non-English fonts use the default LiberationSans, it is easy to lose text. > The embedded font style rendered by pdfbox is a bit strange, Adobe's is more > normal. > > > Key: PDFBOX-5804 > URL: https://issues.apache.org/jira/browse/PDFBOX-5804 > Project: PDFBox > Issue Type: Bug > Components: FontBox >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, 2.pdf, image-2024-04-16-17-12-00-456.png > > > test file:1.pdf. > The one on the left is rendered by Adobe, and the one on the right is > rendered by PDFBox. > !image-2024-04-16-17-12-00-456.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5804) The embedded font style rendered by pdfbox is a bit strange, Adobe's is more normal.
[ https://issues.apache.org/jira/browse/PDFBOX-5804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5804: Description: test file:1.pdf. The one on the left is rendered by Adobe, and the one on the right is rendered by PDFBox. !image-2024-04-16-17-12-00-456.png! was: The one on the left is rendered by Adobe, and the one on the right is rendered by PDFBox. !image-2024-04-16-17-12-00-456.png! > The embedded font style rendered by pdfbox is a bit strange, Adobe's is more > normal. > > > Key: PDFBOX-5804 > URL: https://issues.apache.org/jira/browse/PDFBOX-5804 > Project: PDFBox > Issue Type: Bug > Components: FontBox >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, image-2024-04-16-17-12-00-456.png > > > test file:1.pdf. > The one on the left is rendered by Adobe, and the one on the right is > rendered by PDFBox. > !image-2024-04-16-17-12-00-456.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5804) The embedded font style rendered by pdfbox is a bit strange, Adobe's is more normal.
[ https://issues.apache.org/jira/browse/PDFBOX-5804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5804: Description: The one on the left is rendered by Adobe, and the one on the right is rendered by PDFBox. !image-2024-04-16-17-12-00-456.png! was:!image-2024-04-16-17-12-00-456.png! > The embedded font style rendered by pdfbox is a bit strange, Adobe's is more > normal. > > > Key: PDFBOX-5804 > URL: https://issues.apache.org/jira/browse/PDFBOX-5804 > Project: PDFBox > Issue Type: Bug > Components: FontBox >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: 1.pdf, image-2024-04-16-17-12-00-456.png > > > The one on the left is rendered by Adobe, and the one on the right is > rendered by PDFBox. > !image-2024-04-16-17-12-00-456.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Created] (PDFBOX-5804) The embedded font style rendered by pdfbox is a bit strange, Adobe's is more normal.
liu created PDFBOX-5804: --- Summary: The embedded font style rendered by pdfbox is a bit strange, Adobe's is more normal. Key: PDFBOX-5804 URL: https://issues.apache.org/jira/browse/PDFBOX-5804 Project: PDFBox Issue Type: Bug Components: FontBox Affects Versions: 3.0.2 PDFBox, 2.0.31 Reporter: liu Attachments: 1.pdf, image-2024-04-16-17-12-00-456.png !image-2024-04-16-17-12-00-456.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5794) The content of the specified font is lost,Google Chrome can display it
[ https://issues.apache.org/jira/browse/PDFBOX-5794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17833163#comment-17833163 ] liu commented on PDFBOX-5794: - Yes, as long as the text can be displayed and not lost, it will be fine. After all, there is a problem with the embedded fonts. > The content of the specified font is lost,Google Chrome can display it > -- > > Key: PDFBOX-5794 > URL: https://issues.apache.org/jira/browse/PDFBOX-5794 > Project: PDFBox > Issue Type: Bug > Components: FontBox, Rendering >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: image1.pdf, screenshot-1.png > > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5794) The content of the specified font is lost,Google Chrome can display it
[ https://issues.apache.org/jira/browse/PDFBOX-5794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5794: Component/s: FontBox Rendering > The content of the specified font is lost,Google Chrome can display it > -- > > Key: PDFBOX-5794 > URL: https://issues.apache.org/jira/browse/PDFBOX-5794 > Project: PDFBox > Issue Type: Bug > Components: FontBox, Rendering >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: image1.pdf > > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5794) The content of the specified font is lost,Google Chrome can display it
[ https://issues.apache.org/jira/browse/PDFBOX-5794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5794: Affects Version/s: 3.0.2 PDFBox 2.0.31 > The content of the specified font is lost,Google Chrome can display it > -- > > Key: PDFBOX-5794 > URL: https://issues.apache.org/jira/browse/PDFBOX-5794 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.31, 3.0.2 PDFBox >Reporter: liu >Priority: Major > Attachments: image1.pdf > > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5794) The content of the specified font is lost,Google Chrome can display it
[ https://issues.apache.org/jira/browse/PDFBOX-5794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17833125#comment-17833125 ] liu commented on PDFBOX-5794: - hi!Can this kind of text that cannot be displayed be displayed using lastResortFont? > The content of the specified font is lost,Google Chrome can display it > -- > > Key: PDFBOX-5794 > URL: https://issues.apache.org/jira/browse/PDFBOX-5794 > Project: PDFBox > Issue Type: Bug >Reporter: liu >Priority: Major > Attachments: image1.pdf > > -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Created] (PDFBOX-5794) The content of the specified font is lost,Google Chrome can display it
liu created PDFBOX-5794: --- Summary: The content of the specified font is lost,Google Chrome can display it Key: PDFBOX-5794 URL: https://issues.apache.org/jira/browse/PDFBOX-5794 Project: PDFBox Issue Type: Bug Reporter: liu Attachments: image1.pdf -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5776) DataFormatException: invalid distance too far back
[ https://issues.apache.org/jira/browse/PDFBOX-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17827374#comment-17827374 ] liu commented on PDFBOX-5776: - thanks(y) > DataFormatException: invalid distance too far back > -- > > Key: PDFBOX-5776 > URL: https://issues.apache.org/jira/browse/PDFBOX-5776 > Project: PDFBox > Issue Type: Bug > Components: Parsing >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Assignee: Tilman Hausherr >Priority: Major > Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0 > > Attachments: image-2024-02-28-09-53-49-944.png, > image-2024-02-28-10-10-27-787.png, image-2024-02-28-10-10-55-890.png, > image1.pdf, screenshot-1.png > > > [^image1.pdf] > > ^java.io.IOException: java.util.zip.DataFormatException: invalid distance too > far back^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:58)^ > ^at > org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.(PDInlineImage.java:90)^ > ^at > org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:44)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)^ > ^at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)^ > ^at org.apache.pdfbox.Test.main(Test.java:289)^ > ^Caused by: java.util.zip.DataFormatException: invalid distance too far back^ > ^at java.util.zip.Inflater.inflateBytes(Native Method)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:259)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:280)^ > ^at org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:86)^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:50)^ > ^... 10 more^ -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5776) DataFormatException: invalid distance too far back
[ https://issues.apache.org/jira/browse/PDFBOX-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17827049#comment-17827049 ] liu commented on PDFBOX-5776: - hi!I would like to know when 3.0.2 will be released? > DataFormatException: invalid distance too far back > -- > > Key: PDFBOX-5776 > URL: https://issues.apache.org/jira/browse/PDFBOX-5776 > Project: PDFBox > Issue Type: Bug > Components: Parsing >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Assignee: Tilman Hausherr >Priority: Major > Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0 > > Attachments: image-2024-02-28-09-53-49-944.png, > image-2024-02-28-10-10-27-787.png, image-2024-02-28-10-10-55-890.png, > image1.pdf, screenshot-1.png > > > [^image1.pdf] > > ^java.io.IOException: java.util.zip.DataFormatException: invalid distance too > far back^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:58)^ > ^at > org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.(PDInlineImage.java:90)^ > ^at > org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:44)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)^ > ^at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)^ > ^at org.apache.pdfbox.Test.main(Test.java:289)^ > ^Caused by: java.util.zip.DataFormatException: invalid distance too far back^ > ^at java.util.zip.Inflater.inflateBytes(Native Method)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:259)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:280)^ > ^at org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:86)^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:50)^ > ^... 10 more^ -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5776) DataFormatException: invalid distance too far back
[ https://issues.apache.org/jira/browse/PDFBOX-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17821580#comment-17821580 ] liu commented on PDFBOX-5776: - (y)thanks > DataFormatException: invalid distance too far back > -- > > Key: PDFBOX-5776 > URL: https://issues.apache.org/jira/browse/PDFBOX-5776 > Project: PDFBox > Issue Type: Bug > Components: Parsing >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Assignee: Tilman Hausherr >Priority: Major > Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0 > > Attachments: image-2024-02-28-09-53-49-944.png, > image-2024-02-28-10-10-27-787.png, image-2024-02-28-10-10-55-890.png, > image1.pdf, screenshot-1.png > > > [^image1.pdf] > > ^java.io.IOException: java.util.zip.DataFormatException: invalid distance too > far back^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:58)^ > ^at > org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.(PDInlineImage.java:90)^ > ^at > org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:44)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)^ > ^at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)^ > ^at org.apache.pdfbox.Test.main(Test.java:289)^ > ^Caused by: java.util.zip.DataFormatException: invalid distance too far back^ > ^at java.util.zip.Inflater.inflateBytes(Native Method)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:259)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:280)^ > ^at org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:86)^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:50)^ > ^... 10 more^ -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Comment Edited] (PDFBOX-5776) DataFormatException: invalid distance too far back
[ https://issues.apache.org/jira/browse/PDFBOX-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17821476#comment-17821476 ] liu edited comment on PDFBOX-5776 at 2/28/24 2:13 AM: -- !image-2024-02-28-10-10-27-787.png|width=431,height=233! !image-2024-02-28-10-10-55-890.png|width=430,height=185! I try otherwise exception is thrown and will get a picture. Can this exception be thrown? The data that can be rendered is rendered first, and the data that cannot be rendered can be printed out in the log without interrupting the conversion. was (Author: JIRAUSER297279): !image-2024-02-28-10-10-27-787.png|width=431,height=233! !image-2024-02-28-10-10-55-890.png|width=430,height=185! I try otherwise exception is thrown and will get a picture > DataFormatException: invalid distance too far back > -- > > Key: PDFBOX-5776 > URL: https://issues.apache.org/jira/browse/PDFBOX-5776 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: image-2024-02-28-09-53-49-944.png, > image-2024-02-28-10-10-27-787.png, image-2024-02-28-10-10-55-890.png, > image1.pdf, screenshot-1.png > > > [^image1.pdf] > > ^java.io.IOException: java.util.zip.DataFormatException: invalid distance too > far back^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:58)^ > ^at > org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.(PDInlineImage.java:90)^ > ^at > org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:44)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)^ > ^at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)^ > ^at org.apache.pdfbox.Test.main(Test.java:289)^ > ^Caused by: java.util.zip.DataFormatException: invalid distance too far back^ > ^at java.util.zip.Inflater.inflateBytes(Native Method)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:259)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:280)^ > ^at org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:86)^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:50)^ > ^... 10 more^ -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5776) DataFormatException: invalid distance too far back
[ https://issues.apache.org/jira/browse/PDFBOX-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17821476#comment-17821476 ] liu commented on PDFBOX-5776: - !image-2024-02-28-10-10-27-787.png|width=431,height=233! !image-2024-02-28-10-10-55-890.png|width=430,height=185! I try otherwise exception is thrown and will get a picture > DataFormatException: invalid distance too far back > -- > > Key: PDFBOX-5776 > URL: https://issues.apache.org/jira/browse/PDFBOX-5776 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: image-2024-02-28-09-53-49-944.png, > image-2024-02-28-10-10-27-787.png, image-2024-02-28-10-10-55-890.png, > image1.pdf, screenshot-1.png > > > [^image1.pdf] > > ^java.io.IOException: java.util.zip.DataFormatException: invalid distance too > far back^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:58)^ > ^at > org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.(PDInlineImage.java:90)^ > ^at > org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:44)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)^ > ^at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)^ > ^at org.apache.pdfbox.Test.main(Test.java:289)^ > ^Caused by: java.util.zip.DataFormatException: invalid distance too far back^ > ^at java.util.zip.Inflater.inflateBytes(Native Method)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:259)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:280)^ > ^at org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:86)^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:50)^ > ^... 10 more^ -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5776) DataFormatException: invalid distance too far back
[ https://issues.apache.org/jira/browse/PDFBOX-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5776: Attachment: image-2024-02-28-10-10-55-890.png > DataFormatException: invalid distance too far back > -- > > Key: PDFBOX-5776 > URL: https://issues.apache.org/jira/browse/PDFBOX-5776 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: image-2024-02-28-09-53-49-944.png, > image-2024-02-28-10-10-27-787.png, image-2024-02-28-10-10-55-890.png, > image1.pdf, screenshot-1.png > > > [^image1.pdf] > > ^java.io.IOException: java.util.zip.DataFormatException: invalid distance too > far back^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:58)^ > ^at > org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.(PDInlineImage.java:90)^ > ^at > org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:44)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)^ > ^at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)^ > ^at org.apache.pdfbox.Test.main(Test.java:289)^ > ^Caused by: java.util.zip.DataFormatException: invalid distance too far back^ > ^at java.util.zip.Inflater.inflateBytes(Native Method)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:259)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:280)^ > ^at org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:86)^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:50)^ > ^... 10 more^ -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5776) DataFormatException: invalid distance too far back
[ https://issues.apache.org/jira/browse/PDFBOX-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5776: Attachment: image-2024-02-28-10-10-27-787.png > DataFormatException: invalid distance too far back > -- > > Key: PDFBOX-5776 > URL: https://issues.apache.org/jira/browse/PDFBOX-5776 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: image-2024-02-28-09-53-49-944.png, > image-2024-02-28-10-10-27-787.png, image-2024-02-28-10-10-55-890.png, > image1.pdf, screenshot-1.png > > > [^image1.pdf] > > ^java.io.IOException: java.util.zip.DataFormatException: invalid distance too > far back^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:58)^ > ^at > org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.(PDInlineImage.java:90)^ > ^at > org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:44)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)^ > ^at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)^ > ^at org.apache.pdfbox.Test.main(Test.java:289)^ > ^Caused by: java.util.zip.DataFormatException: invalid distance too far back^ > ^at java.util.zip.Inflater.inflateBytes(Native Method)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:259)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:280)^ > ^at org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:86)^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:50)^ > ^... 10 more^ -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5776) DataFormatException: invalid distance too far back
[ https://issues.apache.org/jira/browse/PDFBOX-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17821474#comment-17821474 ] liu commented on PDFBOX-5776: - !image-2024-02-28-09-53-49-944.png|width=342,height=259! I found that it can be converted using mupdf > DataFormatException: invalid distance too far back > -- > > Key: PDFBOX-5776 > URL: https://issues.apache.org/jira/browse/PDFBOX-5776 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: image-2024-02-28-09-53-49-944.png, image1.pdf, > screenshot-1.png > > > [^image1.pdf] > > ^java.io.IOException: java.util.zip.DataFormatException: invalid distance too > far back^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:58)^ > ^at > org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.(PDInlineImage.java:90)^ > ^at > org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:44)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)^ > ^at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)^ > ^at org.apache.pdfbox.Test.main(Test.java:289)^ > ^Caused by: java.util.zip.DataFormatException: invalid distance too far back^ > ^at java.util.zip.Inflater.inflateBytes(Native Method)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:259)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:280)^ > ^at org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:86)^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:50)^ > ^... 10 more^ -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5776) DataFormatException: invalid distance too far back
[ https://issues.apache.org/jira/browse/PDFBOX-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5776: Attachment: image-2024-02-28-09-53-49-944.png > DataFormatException: invalid distance too far back > -- > > Key: PDFBOX-5776 > URL: https://issues.apache.org/jira/browse/PDFBOX-5776 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: image-2024-02-28-09-53-49-944.png, image1.pdf, > screenshot-1.png > > > [^image1.pdf] > > ^java.io.IOException: java.util.zip.DataFormatException: invalid distance too > far back^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:58)^ > ^at > org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.(PDInlineImage.java:90)^ > ^at > org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:44)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)^ > ^at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)^ > ^at org.apache.pdfbox.Test.main(Test.java:289)^ > ^Caused by: java.util.zip.DataFormatException: invalid distance too far back^ > ^at java.util.zip.Inflater.inflateBytes(Native Method)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:259)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:280)^ > ^at org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:86)^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:50)^ > ^... 10 more^ -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5776) DataFormatException: invalid distance too far back
[ https://issues.apache.org/jira/browse/PDFBOX-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5776: Description: [^image1.pdf] ^java.io.IOException: java.util.zip.DataFormatException: invalid distance too far back^ ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:58)^ ^at org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.(PDInlineImage.java:90)^ ^at org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:44)^ ^at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)^ ^at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)^ ^at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)^ ^at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)^ ^at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284)^ ^at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)^ ^at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)^ ^at org.apache.pdfbox.Test.main(Test.java:289)^ ^Caused by: java.util.zip.DataFormatException: invalid distance too far back^ ^at java.util.zip.Inflater.inflateBytes(Native Method)^ ^at java.util.zip.Inflater.inflate(Inflater.java:259)^ ^at java.util.zip.Inflater.inflate(Inflater.java:280)^ ^at org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:86)^ ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:50)^ ^... 10 more^ was:[^image1.pdf] > DataFormatException: invalid distance too far back > -- > > Key: PDFBOX-5776 > URL: https://issues.apache.org/jira/browse/PDFBOX-5776 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: image1.pdf > > > [^image1.pdf] > > ^java.io.IOException: java.util.zip.DataFormatException: invalid distance too > far back^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:58)^ > ^at > org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.(PDInlineImage.java:90)^ > ^at > org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:44)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)^ > ^at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)^ > ^at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)^ > ^at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)^ > ^at org.apache.pdfbox.Test.main(Test.java:289)^ > ^Caused by: java.util.zip.DataFormatException: invalid distance too far back^ > ^at java.util.zip.Inflater.inflateBytes(Native Method)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:259)^ > ^at java.util.zip.Inflater.inflate(Inflater.java:280)^ > ^at org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:86)^ > ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:50)^ > ^... 10 more^ -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Created] (PDFBOX-5776) DataFormatException: invalid distance too far back
liu created PDFBOX-5776: --- Summary: DataFormatException: invalid distance too far back Key: PDFBOX-5776 URL: https://issues.apache.org/jira/browse/PDFBOX-5776 Project: PDFBox Issue Type: Bug Affects Versions: 3.0.1 PDFBox, 2.0.30 Reporter: liu Attachments: image1.pdf [^image1.pdf] -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-4597) TextPosition.getX() vs getXDirAdj()
[ https://issues.apache.org/jira/browse/PDFBOX-4597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17809728#comment-17809728 ] liu commented on PDFBOX-4597: - I don’t seem to understand. Is there any way to directly obtain the accurate coordinates of the upper left corner and lower left corner of the keyword? > TextPosition.getX() vs getXDirAdj() > --- > > Key: PDFBOX-4597 > URL: https://issues.apache.org/jira/browse/PDFBOX-4597 > Project: PDFBox > Issue Type: Improvement > Components: Documentation, Text extraction >Affects Versions: 2.0.15 >Reporter: Gili >Assignee: Tilman Hausherr >Priority: Major > Fix For: 2.0.17, 3.0.0 PDFBox > > Attachments: rot90.pdf > > > Please explain the difference between "page rotation adjusted coordinates" > and "text direction adjusted coordinates" as referenced by the TextPosition > class. You can add an explanation (ideally a visual one) to the class or > method Javadoc. -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-4597) TextPosition.getX() vs getXDirAdj()
[ https://issues.apache.org/jira/browse/PDFBOX-4597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17808421#comment-17808421 ] liu commented on PDFBOX-4597: - hi!getX and getY can get the coordinates of the keyword. Is this coordinate in the lower left corner of the keyword? How can I get the coordinates of the upper left corner of the keyword? > TextPosition.getX() vs getXDirAdj() > --- > > Key: PDFBOX-4597 > URL: https://issues.apache.org/jira/browse/PDFBOX-4597 > Project: PDFBox > Issue Type: Improvement > Components: Documentation, Text extraction >Affects Versions: 2.0.15 >Reporter: Gili >Assignee: Tilman Hausherr >Priority: Major > Fix For: 2.0.17, 3.0.0 PDFBox > > Attachments: rot90.pdf > > > Please explain the difference between "page rotation adjusted coordinates" > and "text direction adjusted coordinates" as referenced by the TextPosition > class. You can add an explanation (ideally a visual one) to the class or > method Javadoc. -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5754) PDF conversion in this format is very slow. Is there any room for optimization?
[ https://issues.apache.org/jira/browse/PDFBOX-5754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17807959#comment-17807959 ] liu commented on PDFBOX-5754: - (y) > PDF conversion in this format is very slow. Is there any room for > optimization? > --- > > Key: PDFBOX-5754 > URL: https://issues.apache.org/jira/browse/PDFBOX-5754 > Project: PDFBox > Issue Type: Bug > Components: Rendering >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Assignee: Tilman Hausherr >Priority: Major > Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0 > > Attachments: image2.pdf > > > pdf: [^image2.pdf] > demo: > {code:java} > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new File("D:\\fcs\\test\\test6\\image2.pdf"); > final PDDocument load = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly() > .setTempDir(new File("D:\\fcs\\test"))); > try { > PDFRenderer renderer = new PDFRenderer(load); > //renderer.setSubsamplingAllowed(true); > int pageIndex = 0; > float scale = 2f; > BufferedImage bufferedImage = > renderer.renderImage(pageIndex, scale, ImageType.RGB); > FileOutputStream fos = null; > try { > fos = new FileOutputStream(new > File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); > ImageIO.write(bufferedImage, "jpg", fos); > } finally { > if (fos != null) { > fos.close(); > } > } > } catch (Throwable e){ > e.printStackTrace(); > } > Thread.sleep(600); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5754) PDF conversion in this format is very slow. Is there any room for optimization?
[ https://issues.apache.org/jira/browse/PDFBOX-5754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17807627#comment-17807627 ] liu commented on PDFBOX-5754: - thank you > PDF conversion in this format is very slow. Is there any room for > optimization? > --- > > Key: PDFBOX-5754 > URL: https://issues.apache.org/jira/browse/PDFBOX-5754 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: image2.pdf > > > pdf: [^image2.pdf] > demo: > {code:java} > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new File("D:\\fcs\\test\\test6\\image2.pdf"); > final PDDocument load = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly() > .setTempDir(new File("D:\\fcs\\test"))); > try { > PDFRenderer renderer = new PDFRenderer(load); > //renderer.setSubsamplingAllowed(true); > int pageIndex = 0; > float scale = 2f; > BufferedImage bufferedImage = > renderer.renderImage(pageIndex, scale, ImageType.RGB); > FileOutputStream fos = null; > try { > fos = new FileOutputStream(new > File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); > ImageIO.write(bufferedImage, "jpg", fos); > } finally { > if (fos != null) { > fos.close(); > } > } > } catch (Throwable e){ > e.printStackTrace(); > } > Thread.sleep(600); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5754) PDF conversion in this format is very slow. Is there any room for optimization?
[ https://issues.apache.org/jira/browse/PDFBOX-5754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17807608#comment-17807608 ] liu commented on PDFBOX-5754: - It seems that the browser opens very quickly. Is there any way to solve it? > PDF conversion in this format is very slow. Is there any room for > optimization? > --- > > Key: PDFBOX-5754 > URL: https://issues.apache.org/jira/browse/PDFBOX-5754 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: image2.pdf > > > pdf: [^image2.pdf] > demo: > {code:java} > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new File("D:\\fcs\\test\\test6\\image2.pdf"); > final PDDocument load = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly() > .setTempDir(new File("D:\\fcs\\test"))); > try { > PDFRenderer renderer = new PDFRenderer(load); > //renderer.setSubsamplingAllowed(true); > int pageIndex = 0; > float scale = 2f; > BufferedImage bufferedImage = > renderer.renderImage(pageIndex, scale, ImageType.RGB); > FileOutputStream fos = null; > try { > fos = new FileOutputStream(new > File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); > ImageIO.write(bufferedImage, "jpg", fos); > } finally { > if (fos != null) { > fos.close(); > } > } > } catch (Throwable e){ > e.printStackTrace(); > } > Thread.sleep(600); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5754) PDF conversion in this format is very slow. Is there any room for optimization?
[ https://issues.apache.org/jira/browse/PDFBOX-5754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5754: Affects Version/s: 3.0.1 PDFBox 2.0.30 > PDF conversion in this format is very slow. Is there any room for > optimization? > --- > > Key: PDFBOX-5754 > URL: https://issues.apache.org/jira/browse/PDFBOX-5754 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: image2.pdf > > > pdf: [^image2.pdf] > demo: > {code:java} > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new File("D:\\fcs\\test\\test6\\image2.pdf"); > final PDDocument load = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly() > .setTempDir(new File("D:\\fcs\\test"))); > try { > PDFRenderer renderer = new PDFRenderer(load); > //renderer.setSubsamplingAllowed(true); > int pageIndex = 0; > float scale = 2f; > BufferedImage bufferedImage = > renderer.renderImage(pageIndex, scale, ImageType.RGB); > FileOutputStream fos = null; > try { > fos = new FileOutputStream(new > File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); > ImageIO.write(bufferedImage, "jpg", fos); > } finally { > if (fos != null) { > fos.close(); > } > } > } catch (Throwable e){ > e.printStackTrace(); > } > Thread.sleep(600); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Created] (PDFBOX-5754) PDF conversion in this format is very slow. Is there any room for optimization?
liu created PDFBOX-5754: --- Summary: PDF conversion in this format is very slow. Is there any room for optimization? Key: PDFBOX-5754 URL: https://issues.apache.org/jira/browse/PDFBOX-5754 Project: PDFBox Issue Type: Bug Reporter: liu Attachments: image2.pdf pdf: [^image2.pdf] demo: {code:java} public static void main(String[] args) throws IOException, InterruptedException { File file = new File("D:\\fcs\\test\\test6\\image2.pdf"); final PDDocument load = PDDocument.load(file, MemoryUsageSetting.setupTempFileOnly() .setTempDir(new File("D:\\fcs\\test"))); try { PDFRenderer renderer = new PDFRenderer(load); // renderer.setSubsamplingAllowed(true); int pageIndex = 0; float scale = 2f; BufferedImage bufferedImage = renderer.renderImage(pageIndex, scale, ImageType.RGB); FileOutputStream fos = null; try { fos = new FileOutputStream(new File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); ImageIO.write(bufferedImage, "jpg", fos); } finally { if (fos != null) { fos.close(); } } } catch (Throwable e){ e.printStackTrace(); } Thread.sleep(600); } {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5751) Convert to image exception
[ https://issues.apache.org/jira/browse/PDFBOX-5751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17807026#comment-17807026 ] liu commented on PDFBOX-5751: - get,thank you > Convert to image exception > -- > > Key: PDFBOX-5751 > URL: https://issues.apache.org/jira/browse/PDFBOX-5751 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: 666.pdf > > > {code:java} > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new File("D:\\qys\\666.pdf"); > final PDDocument load = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly() > .setTempDir(new File("D:\\fcs\\test"))); > try { > PDFRenderer renderer = new PDFRenderer(load); > int pageIndex = 0; > float scale = 2f; > BufferedImage bufferedImage = > renderer.renderImage(pageIndex, scale, ImageType.RGB); > FileOutputStream fos = null; > try { > fos = new FileOutputStream(new > File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); > ImageIO.write(bufferedImage, "jpg", fos); > } finally { > if (fos != null) { > fos.close(); > } > } > } catch (Throwable e){ > e.printStackTrace(); > } > Thread.sleep(600); > } > {code} > java version:jdk8 -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5751) Convert to image exception
[ https://issues.apache.org/jira/browse/PDFBOX-5751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17807023#comment-17807023 ] liu commented on PDFBOX-5751: - Do you mean twistmonkeys has been fixed? Suggest we introduce twistmonkeys? > Convert to image exception > -- > > Key: PDFBOX-5751 > URL: https://issues.apache.org/jira/browse/PDFBOX-5751 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: 666.pdf > > > {code:java} > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new File("D:\\qys\\666.pdf"); > final PDDocument load = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly() > .setTempDir(new File("D:\\fcs\\test"))); > try { > PDFRenderer renderer = new PDFRenderer(load); > int pageIndex = 0; > float scale = 2f; > BufferedImage bufferedImage = > renderer.renderImage(pageIndex, scale, ImageType.RGB); > FileOutputStream fos = null; > try { > fos = new FileOutputStream(new > File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); > ImageIO.write(bufferedImage, "jpg", fos); > } finally { > if (fos != null) { > fos.close(); > } > } > } catch (Throwable e){ > e.printStackTrace(); > } > Thread.sleep(600); > } > {code} > java version:jdk8 -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Comment Edited] (PDFBOX-5751) Convert to image exception
[ https://issues.apache.org/jira/browse/PDFBOX-5751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17807021#comment-17807021 ] liu edited comment on PDFBOX-5751 at 1/16/24 3:54 AM: -- Hello, what version of jdk are you using? What I reproduce locally is the error reported in JPEGImageReader of jdk8. was (Author: JIRAUSER297279): Hello, what version of jdk are you using? What I reproduce locally is the error reported in JPEGImageReader of jdk. > Convert to image exception > -- > > Key: PDFBOX-5751 > URL: https://issues.apache.org/jira/browse/PDFBOX-5751 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: 666.pdf > > > {code:java} > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new File("D:\\qys\\666.pdf"); > final PDDocument load = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly() > .setTempDir(new File("D:\\fcs\\test"))); > try { > PDFRenderer renderer = new PDFRenderer(load); > int pageIndex = 0; > float scale = 2f; > BufferedImage bufferedImage = > renderer.renderImage(pageIndex, scale, ImageType.RGB); > FileOutputStream fos = null; > try { > fos = new FileOutputStream(new > File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); > ImageIO.write(bufferedImage, "jpg", fos); > } finally { > if (fos != null) { > fos.close(); > } > } > } catch (Throwable e){ > e.printStackTrace(); > } > Thread.sleep(600); > } > {code} > java version:jdk8 -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5751) Convert to image exception
[ https://issues.apache.org/jira/browse/PDFBOX-5751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17807021#comment-17807021 ] liu commented on PDFBOX-5751: - Hello, what version of jdk are you using? What I reproduce locally is the error reported in JPEGImageReader of jdk. > Convert to image exception > -- > > Key: PDFBOX-5751 > URL: https://issues.apache.org/jira/browse/PDFBOX-5751 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: 666.pdf > > > {code:java} > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new File("D:\\qys\\666.pdf"); > final PDDocument load = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly() > .setTempDir(new File("D:\\fcs\\test"))); > try { > PDFRenderer renderer = new PDFRenderer(load); > int pageIndex = 0; > float scale = 2f; > BufferedImage bufferedImage = > renderer.renderImage(pageIndex, scale, ImageType.RGB); > FileOutputStream fos = null; > try { > fos = new FileOutputStream(new > File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); > ImageIO.write(bufferedImage, "jpg", fos); > } finally { > if (fos != null) { > fos.close(); > } > } > } catch (Throwable e){ > e.printStackTrace(); > } > Thread.sleep(600); > } > {code} > java version:jdk8 -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5751) Convert to image exception
[ https://issues.apache.org/jira/browse/PDFBOX-5751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5751: Description: {code:java} public static void main(String[] args) throws IOException, InterruptedException { File file = new File("D:\\qys\\666.pdf"); final PDDocument load = PDDocument.load(file, MemoryUsageSetting.setupTempFileOnly() .setTempDir(new File("D:\\fcs\\test"))); try { PDFRenderer renderer = new PDFRenderer(load); int pageIndex = 0; float scale = 2f; BufferedImage bufferedImage = renderer.renderImage(pageIndex, scale, ImageType.RGB); FileOutputStream fos = null; try { fos = new FileOutputStream(new File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); ImageIO.write(bufferedImage, "jpg", fos); } finally { if (fos != null) { fos.close(); } } } catch (Throwable e){ e.printStackTrace(); } Thread.sleep(600); } {code} java version:jdk8 was: {code:java} public static void main(String[] args) throws IOException, InterruptedException { File file = new File("D:\\qys\\666.pdf"); final PDDocument load = PDDocument.load(file, MemoryUsageSetting.setupTempFileOnly() .setTempDir(new File("D:\\fcs\\test"))); try { PDFRenderer renderer = new PDFRenderer(load); int pageIndex = 0; float scale = 2f; BufferedImage bufferedImage = renderer.renderImage(pageIndex, scale, ImageType.RGB); FileOutputStream fos = null; try { fos = new FileOutputStream(new File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); ImageIO.write(bufferedImage, "jpg", fos); } finally { if (fos != null) { fos.close(); } } } catch (Throwable e){ e.printStackTrace(); } Thread.sleep(600); } {code} > Convert to image exception > -- > > Key: PDFBOX-5751 > URL: https://issues.apache.org/jira/browse/PDFBOX-5751 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: 666.pdf > > > {code:java} > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new File("D:\\qys\\666.pdf"); > final PDDocument load = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly() > .setTempDir(new File("D:\\fcs\\test"))); > try { > PDFRenderer renderer = new PDFRenderer(load); > int pageIndex = 0; > float scale = 2f; > BufferedImage bufferedImage = > renderer.renderImage(pageIndex, scale, ImageType.RGB); > FileOutputStream fos = null; > try { > fos = new FileOutputStream(new > File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); > ImageIO.write(bufferedImage, "jpg", fos); > } finally { > if (fos != null) { > fos.close(); > } > } > } catch (Throwable e){ > e.printStackTrace(); > } > Thread.sleep(600); > } > {code} > java version:jdk8 -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5751) Convert to image exception
[ https://issues.apache.org/jira/browse/PDFBOX-5751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5751: Description: {code:java} public static void main(String[] args) throws IOException, InterruptedException { File file = new File("D:\\qys\\666.pdf"); final PDDocument load = PDDocument.load(file, MemoryUsageSetting.setupTempFileOnly() .setTempDir(new File("D:\\fcs\\test"))); try { PDFRenderer renderer = new PDFRenderer(load); int pageIndex = 0; float scale = 2f; BufferedImage bufferedImage = renderer.renderImage(pageIndex, scale, ImageType.RGB); FileOutputStream fos = null; try { fos = new FileOutputStream(new File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); ImageIO.write(bufferedImage, "jpg", fos); } finally { if (fos != null) { fos.close(); } } } catch (Throwable e){ e.printStackTrace(); } Thread.sleep(600); } {code} was: public static void main(String[] args) throws IOException, InterruptedException { File file = new File("D:\\qys\\666.pdf"); final PDDocument load = PDDocument.load(file, MemoryUsageSetting.setupTempFileOnly() .setTempDir(new File("D:\\fcs\\test"))); try { PDFRenderer renderer = new PDFRenderer(load); int pageIndex = 0; float scale = 2f; BufferedImage bufferedImage = renderer.renderImage(pageIndex, scale, ImageType.RGB); FileOutputStream fos = null; try { fos = new FileOutputStream(new File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); ImageIO.write(bufferedImage, "jpg", fos); } finally { if (fos != null) { fos.close(); } } } catch (Throwable e){ e.printStackTrace(); } Thread.sleep(600); } > Convert to image exception > -- > > Key: PDFBOX-5751 > URL: https://issues.apache.org/jira/browse/PDFBOX-5751 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: 666.pdf > > > {code:java} > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new File("D:\\qys\\666.pdf"); > final PDDocument load = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly() > .setTempDir(new File("D:\\fcs\\test"))); > try { > PDFRenderer renderer = new PDFRenderer(load); > int pageIndex = 0; > float scale = 2f; > BufferedImage bufferedImage = > renderer.renderImage(pageIndex, scale, ImageType.RGB); > FileOutputStream fos = null; > try { > fos = new FileOutputStream(new > File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); > ImageIO.write(bufferedImage, "jpg", fos); > } finally { > if (fos != null) { > fos.close(); > } > } > } catch (Throwable e){ > e.printStackTrace(); > } > Thread.sleep(600); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5751) Convert to image exception
[ https://issues.apache.org/jira/browse/PDFBOX-5751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5751: Description: public static void main(String[] args) throws IOException, InterruptedException { File file = new File("D:\\qys\\666.pdf"); final PDDocument load = PDDocument.load(file, MemoryUsageSetting.setupTempFileOnly() .setTempDir(new File("D:\\fcs\\test"))); try { PDFRenderer renderer = new PDFRenderer(load); int pageIndex = 0; float scale = 2f; BufferedImage bufferedImage = renderer.renderImage(pageIndex, scale, ImageType.RGB); FileOutputStream fos = null; try { fos = new FileOutputStream(new File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); ImageIO.write(bufferedImage, "jpg", fos); } finally { if (fos != null) { fos.close(); } } } catch (Throwable e){ e.printStackTrace(); } Thread.sleep(600); } > Convert to image exception > -- > > Key: PDFBOX-5751 > URL: https://issues.apache.org/jira/browse/PDFBOX-5751 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: 666.pdf > > > public static void main(String[] args) throws IOException, > InterruptedException { > File file = new File("D:\\qys\\666.pdf"); > final PDDocument load = PDDocument.load(file, > MemoryUsageSetting.setupTempFileOnly() > .setTempDir(new File("D:\\fcs\\test"))); > try { > PDFRenderer renderer = new PDFRenderer(load); > int pageIndex = 0; > float scale = 2f; > BufferedImage bufferedImage = > renderer.renderImage(pageIndex, scale, ImageType.RGB); > FileOutputStream fos = null; > try { > fos = new FileOutputStream(new > File("D:\\fcs\\test/test6/image" + pageIndex + ".jpg")); > ImageIO.write(bufferedImage, "jpg", fos); > } finally { > if (fos != null) { > fos.close(); > } > } > } catch (Throwable e){ > e.printStackTrace(); > } > Thread.sleep(600); > } -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Created] (PDFBOX-5751) Convert to image exception
liu created PDFBOX-5751: --- Summary: Convert to image exception Key: PDFBOX-5751 URL: https://issues.apache.org/jira/browse/PDFBOX-5751 Project: PDFBox Issue Type: Bug Affects Versions: 3.0.1 PDFBox, 2.0.30 Reporter: liu Attachments: 666.pdf -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Comment Edited] (PDFBOX-5731) org.apache.pdfbox.cos.COSName#nameMap There is a memory leak problem.
[ https://issues.apache.org/jira/browse/PDFBOX-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17796655#comment-17796655 ] liu edited comment on PDFBOX-5731 at 12/14/23 10:10 AM: !image-2023-12-14-18-10-14-278.png! !screenshot-8.png! The entire jvm cleaner is executed by this thread, which will definitely affect other logic, such as off-heap memory recycling. was (Author: JIRAUSER297279): !screenshot-7.png! !screenshot-8.png! The entire jvm cleaner is executed by this thread, which will definitely affect other logic, such as off-heap memory recycling. > org.apache.pdfbox.cos.COSName#nameMap There is a memory leak problem. > - > > Key: PDFBOX-5731 > URL: https://issues.apache.org/jira/browse/PDFBOX-5731 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: COSName.java, > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically.patch, > > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_2.patch, > > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_using_cleaner.patch, > image-2023-12-08-16-02-12-293.png, image-2023-12-13-17-04-22-073.png, > image-2023-12-14-18-10-14-278.png, screenshot-1.png, screenshot-2.png, > screenshot-3.png, screenshot-4.png, screenshot-5.png, screenshot-6.png, > screenshot-8.png > > > !image-2023-12-08-16-02-12-293.png! > !screenshot-1.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5731) org.apache.pdfbox.cos.COSName#nameMap There is a memory leak problem.
[ https://issues.apache.org/jira/browse/PDFBOX-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5731: Attachment: (was: screenshot-7.png) > org.apache.pdfbox.cos.COSName#nameMap There is a memory leak problem. > - > > Key: PDFBOX-5731 > URL: https://issues.apache.org/jira/browse/PDFBOX-5731 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: COSName.java, > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically.patch, > > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_2.patch, > > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_using_cleaner.patch, > image-2023-12-08-16-02-12-293.png, image-2023-12-13-17-04-22-073.png, > image-2023-12-14-18-10-14-278.png, screenshot-1.png, screenshot-2.png, > screenshot-3.png, screenshot-4.png, screenshot-5.png, screenshot-6.png, > screenshot-8.png > > > !image-2023-12-08-16-02-12-293.png! > !screenshot-1.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5731) org.apache.pdfbox.cos.COSName#nameMap There is a memory leak problem.
[ https://issues.apache.org/jira/browse/PDFBOX-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17796655#comment-17796655 ] liu commented on PDFBOX-5731: - !screenshot-7.png! !screenshot-8.png! The entire jvm cleaner is executed by this thread, which will definitely affect other logic, such as off-heap memory recycling. > org.apache.pdfbox.cos.COSName#nameMap There is a memory leak problem. > - > > Key: PDFBOX-5731 > URL: https://issues.apache.org/jira/browse/PDFBOX-5731 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: COSName.java, > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically.patch, > > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_2.patch, > > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_using_cleaner.patch, > image-2023-12-08-16-02-12-293.png, image-2023-12-13-17-04-22-073.png, > screenshot-1.png, screenshot-2.png, screenshot-3.png, screenshot-4.png, > screenshot-5.png, screenshot-6.png, screenshot-7.png, screenshot-8.png > > > !image-2023-12-08-16-02-12-293.png! > !screenshot-1.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5731) org.apache.pdfbox.cos.COSName#nameMap There is a memory leak problem.
[ https://issues.apache.org/jira/browse/PDFBOX-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5731: Attachment: screenshot-8.png > org.apache.pdfbox.cos.COSName#nameMap There is a memory leak problem. > - > > Key: PDFBOX-5731 > URL: https://issues.apache.org/jira/browse/PDFBOX-5731 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: COSName.java, > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically.patch, > > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_2.patch, > > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_using_cleaner.patch, > image-2023-12-08-16-02-12-293.png, image-2023-12-13-17-04-22-073.png, > screenshot-1.png, screenshot-2.png, screenshot-3.png, screenshot-4.png, > screenshot-5.png, screenshot-6.png, screenshot-7.png, screenshot-8.png > > > !image-2023-12-08-16-02-12-293.png! > !screenshot-1.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Updated] (PDFBOX-5731) org.apache.pdfbox.cos.COSName#nameMap There is a memory leak problem.
[ https://issues.apache.org/jira/browse/PDFBOX-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] liu updated PDFBOX-5731: Attachment: screenshot-7.png > org.apache.pdfbox.cos.COSName#nameMap There is a memory leak problem. > - > > Key: PDFBOX-5731 > URL: https://issues.apache.org/jira/browse/PDFBOX-5731 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: COSName.java, > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically.patch, > > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_2.patch, > > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_using_cleaner.patch, > image-2023-12-08-16-02-12-293.png, image-2023-12-13-17-04-22-073.png, > screenshot-1.png, screenshot-2.png, screenshot-3.png, screenshot-4.png, > screenshot-5.png, screenshot-6.png, screenshot-7.png > > > !image-2023-12-08-16-02-12-293.png! > !screenshot-1.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5731) org.apache.pdfbox.cos.COSName#nameMap There is a memory leak problem.
[ https://issues.apache.org/jira/browse/PDFBOX-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17796652#comment-17796652 ] liu commented on PDFBOX-5731: - !screenshot-6.png! PDFBox 3.0 requires at least Java 8. > org.apache.pdfbox.cos.COSName#nameMap There is a memory leak problem. > - > > Key: PDFBOX-5731 > URL: https://issues.apache.org/jira/browse/PDFBOX-5731 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.30, 3.0.1 PDFBox >Reporter: liu >Priority: Major > Attachments: COSName.java, > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically.patch, > > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_2.patch, > > attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_using_cleaner.patch, > image-2023-12-08-16-02-12-293.png, image-2023-12-13-17-04-22-073.png, > screenshot-1.png, screenshot-2.png, screenshot-3.png, screenshot-4.png, > screenshot-5.png, screenshot-6.png > > > !image-2023-12-08-16-02-12-293.png! > !screenshot-1.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org