Re: Hiding decorative images with the Artifact tag in PDF documents via PDFBox

2015-08-11 Thread John Hewson
> On 11 Aug 2015, at 05:05, Bharath Raj Pathi wrote: > > Hi, > I need to put a table in pdf document with dynamic column labels and > dynamic rows. > I used to do with iText Library. > I want to achieve this using PDFBox. > Can anybody suggest me to achieve that? You’ll have to do the table lay

Re: Hiding decorative images with the Artifact tag in PDF documents via PDFBox

2015-08-11 Thread John Hewson
> On 11 Aug 2015, at 04:25, Duff Johnson wrote: > >> Please refer this link: >> http://www.w3.org/WAI/GL/2011/WD-WCAG20-TECHS-20110621/pdf.html#PDF4 >> >> I want to achieve this using PDFBox. >> >> I am unsure of how to achieve it. >> >> Could you please point me in the right direction? > >

Re: Rendering PDImageXObject

2015-08-11 Thread John Hewson
> On 11 Aug 2015, at 08:19, Kirk, Kenneth wrote: > > John > > How would I know what DPI the image was drawn with? Some of the PDF pages > come from source outside of my control but I have to extract them just the > same. I’m confused, you said you were converting TIFFs to PDF but now you me

Re: Change the color of particular text in PDF

2015-08-11 Thread John Hewson
> On 11 Aug 2015, at 10:37, Tilman Hausherr wrote: > > Am 11.08.2015 um 19:15 schrieb Prakash Dubey: >>> You said you have already identified the text. I thought this means you >>> have looked at the content stream. >> >> I have used following link code to identify the code : >> http://www.cod

Re: "Illegal instruction: 4" with PDFToImage

2015-08-11 Thread John Hewson
Good news, I’ve fixed this issue, we’d actually seen this bug before so I simply had to modify our existing workaround. AWT is to blame, see PDFBOX-2929 for details. — John > On 11 Aug 2015, at 10:45, Chris Clark wrote: > > The java version: > > java version "1.8.0_45" > Java(TM) SE Runtime

Re: "Illegal instruction: 4" with PDFToImage

2015-08-11 Thread Tilman Hausherr
https://issues.apache.org/jira/browse/PDFBOX-2929 created - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org

Re: "Illegal instruction: 4" with PDFToImage

2015-08-11 Thread Tilman Hausherr
Also crash for me with JDK7 on W7 64 bit with 73, 100, 200 or 400 dpi but not with 72 or 300 dpi. All on page 4. Tilman Am 11.08.2015 um 19:45 schrieb Chris Clark: The java version: java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM

RE: NullPointerException from PDDocument

2015-08-11 Thread Kevin Ternes
That's why I always travel to Europe when I go on vacation. -Original Message- From: Tilman Hausherr [mailto:thaush...@t-online.de] Sent: Tuesday, August 11, 2015 12:44 PM To: users@pdfbox.apache.org Subject: Re: NullPointerException from PDDocument We'd probably put some messages every

Re: Sanitizing input?

2015-08-11 Thread Maruan Sahyoun
Hi Roberto, > Am 10.08.2015 um 02:22 schrieb Roberto Nibali : > > Hi > > Disclaimer: I have very limited knowledge of the PDF standard and only > command the basics of PDFBox, however I have had my share of thrills with > the IRS. > > What's the final purpose of those filled out PDFs? Do you in

Re: "Illegal instruction: 4" with PDFToImage

2015-08-11 Thread Chris Clark
The java version: java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode) On Mon, Aug 10, 2015 at 7:53 PM, John Hewson wrote: > Our mailing list doesn’t support binary attachments, can you post the file > at a

Re: NullPointerException from PDDocument

2015-08-11 Thread Tilman Hausherr
Am 10.08.2015 um 16:25 schrieb Kevin Ternes: Thanks Tilman, but I found the problem. It is not a malformed PDF. The PDDocument was being prematurely closed in an earlier method. I still think it would be good if this method added a description message about the null trailer to the Exception.

Re: "Illegal instruction: 4" with PDFToImage

2015-08-11 Thread Chris Clark
Sure, the PDF is from http://www.researchgate.net/publication/237090017_Paper_110 On Mon, Aug 10, 2015 at 7:53 PM, John Hewson wrote: > Our mailing list doesn’t support binary attachments, can you post the file > at a public URL? Obviously this is a JDK bug but we’ll be able to look into > work

Re: Change the color of particular text in PDF

2015-08-11 Thread Tilman Hausherr
Am 11.08.2015 um 19:15 schrieb Prakash Dubey: You said you have already identified the text. I thought this means you have looked at the content stream. I have used following link code to identify the code : http://www.coderanch.com/t/494267/open-source/replacing-String-PDF-PDFBox Yes... wh

Re: Change the color of particular text in PDF

2015-08-11 Thread Prakash Dubey
> > You said you have already identified the text. I thought this means you > have looked at the content stream. I have used following link code to identify the code : http://www.coderanch.com/t/494267/open-source/replacing-String-PDF-PDFBox On Tue, Aug 11, 2015 at 10:42 PM, Tilman Hausherr wr

Re: Change the color of particular text in PDF

2015-08-11 Thread Tilman Hausherr
Am 11.08.2015 um 19:01 schrieb Prakash Dubey: Thanks for your reply Tilman. his depends on what color you're using... for /DeviceRGB PDF is generated through Japser. Then generate it again, with different settings... if you're messing with the content stream directly, just insert r g

Re: Change the color of particular text in PDF

2015-08-11 Thread Prakash Dubey
Thanks for your reply Tilman. > his depends on what color you're using... for /DeviceRGB > PDF is generated through Japser. if you're messing with the content stream directly, just insert > r g b rg I didn't get. Will directly messing with content stream will solve my problem? On Tue, Aug

Re: Change the color of particular text in PDF

2015-08-11 Thread Tilman Hausherr
Am 11.08.2015 um 16:23 schrieb Prakash Dubey: We have a requirement where we need to identify the particular text and change the color of text. Currently i'm able to identify the text and replace the value of text, but not getting API to change the color of text. Could you please provide any exa

RE: Rendering PDImageXObject

2015-08-11 Thread Kirk, Kenneth
John How would I know what DPI the image was drawn with? Some of the PDF pages come from source outside of my control but I have to extract them just the same. -Original Message- From: John Hewson [mailto:j...@jahewson.com] Sent: Monday, August 10, 2015 1:38 PM To: users@pdfbox.apache.

Change the color of particular text in PDF

2015-08-11 Thread Prakash Dubey
We have a requirement where we need to identify the particular text and change the color of text. Currently i'm able to identify the text and replace the value of text, but not getting API to change the color of text. Could you please provide any example, code snippet or hint for changing the colo

Re: Hiding decorative images with the Artifact tag in PDF documents via PDFBox

2015-08-11 Thread Bharath Raj Pathi
Hi, I need to put a table in pdf document with dynamic column labels and dynamic rows. I used to do with iText Library. I want to achieve this using PDFBox. Can anybody suggest me to achieve that? On Tue, Aug 11, 2015 at 4:35 PM, Chavan, Avinash < avinash.cha...@capgemini.com> wrote: > Hi, > > Pl

Re: Hiding decorative images with the Artifact tag in PDF documents via PDFBox

2015-08-11 Thread Duff Johnson
> Please refer this link: > http://www.w3.org/WAI/GL/2011/WD-WCAG20-TECHS-20110621/pdf.html#PDF4 > > I want to achieve this using PDFBox. > > I am unsure of how to achieve it. > > Could you please point me in the right direction? At a high level, this requires implementation of “Tagged PDF” -

Hiding decorative images with the Artifact tag in PDF documents via PDFBox

2015-08-11 Thread Chavan, Avinash
Hi, Please refer this link: http://www.w3.org/WAI/GL/2011/WD-WCAG20-TECHS-20110621/pdf.html#PDF4 I want to achieve this using PDFBox. I am unsure of how to achieve it. Could you please point me in the right direction? Thanks & Regards --