Re: Can't stamp newly created contents stream to Resources - XObjects

2015-04-29 Thread Tilman Hausherr
Hi, I'd like to help, but to be honest, I haven't understood you. What do you mean with "stamping it back"? The usual way to write in a COSStream is like this: os = cosStream.createUnfilteredStream(); os.write() os.close() If you need more help, mention what version you are using. The

Re: Some Questions about PDFBox

2015-04-29 Thread Alexander Miller
Ok, thank you. Am 30.04.2015 um 03:16 schrieb John Hewson: On 29 Apr 2015, at 02:59, Alexander Miller wrote: Hello, I have some question about the PDFBox. I got pdfbox 2.0.0-SNAPSHOT and if i want to use PageDrawer, it says it need PageDrawerParameters, but i can't create it, because its pri

Re: Custom glyph maps for a fonts

2015-04-29 Thread John Hewson
> On 29 Apr 2015, at 16:34, Zeev Sands wrote: > > Hello, > > I knew something was fishy about my theory ;) Thank you for taking the time > to explain. > > I didn't realize each font's glyph had a unique name - the symbolic fonts I'm > working with are coming in with nondescript names, like,

Re: Some Questions about PDFBox

2015-04-29 Thread John Hewson
> On 29 Apr 2015, at 02:59, Alexander Miller > wrote: > > Hello, > I have some question about the PDFBox. I got pdfbox 2.0.0-SNAPSHOT and if i > want to use PageDrawer, it says it need PageDrawerParameters, but i can't > create it, because its privat, so i can't use PageDrawer. > In the javad

Re: Custom glyph maps for a fonts

2015-04-29 Thread Zeev Sands
Hello, I knew something was fishy about my theory ;) Thank you for taking the time to explain. I didn't realize each font's glyph had a unique name - the symbolic fonts I'm working with are coming in with nondescript names, like, "c85" for a glyph with code 85. I simply assumed it was just t

Re: Picture not printed

2015-04-29 Thread Gregor Kovač
Hi! No, that file is just an example. not confidential in any way. Best regards, Kovi 2015-04-29 19:42 GMT+02:00 Tilman Hausherr : > Hi, > > Done. You'll find a new version here: > > https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/1.8.10-SNAPSHOT/ > > Abo

Re: How to create tagged PDF using PDFBox?

2015-04-29 Thread Tilman Hausherr
Am 29.04.2015 um 19:34 schrieb jingyu bai: I searched the whole mailing list but only found free questions asking about this and no directly answer to this question. It seems pdfbox comes with a tagged package but no example shows how to use it. My understanding is that it can only do pdf-a/1b

Re: Picture not printed

2015-04-29 Thread Tilman Hausherr
Hi, Done. You'll find a new version here: https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/1.8.10-SNAPSHOT/ About the creator of that PDF - if it was done by a partner of your company, please contact the vendor (Datalab "Pantheon PDF export") and point them t

How to create tagged PDF using PDFBox?

2015-04-29 Thread jingyu bai
I searched the whole mailing list but only found free questions asking about this and no directly answer to this question. It seems pdfbox comes with a tagged package but no example shows how to use it. My understanding is that it can only do pdf-a/1b but not pdf-a/1a specification. Is my thinki

Re: Some Questions about PDFBox

2015-04-29 Thread Tilman Hausherr
What would you like to do with PDFBox? If it is converting to images, look here: http://stackoverflow.com/questions/23326562/apache-pdfbox-convert-pdf-to-images Tilman Am 29.04.2015 um 11:59 schrieb Alexander Miller: Hello, I have some question about the PDFBox. I got pdfbox 2.0.0-SNAPSHOT and

Re: extract chinese letters from pdf

2015-04-29 Thread Tilman Hausherr
Am 29.04.2015 um 14:53 schrieb Gang Fu: Hi John, I have tried to download the latest source codes using both svn ( http://pdfbox.apache.org/downloads.cgi#scm) and git clone ( https://github.com/apache/pdfbox), When I built, I got the same error showing one file cannot be downloaded: [WARNING]

Re: Picture not printed

2015-04-29 Thread Tilman Hausherr
In the meantime the developer of twelvemonkeys answered, and pointed me to the real reason: not the JPEG is malformed, it is the PDF. This bug is described in https://issues.apache.org/jira/browse/PDFBOX-2501 but solved for 2.0 only. I'll apply for 1.8 and then come back to you. Btw, that file,

Can't stamp newly created contents stream to Resources - XObjects

2015-04-29 Thread Philip Poupart
I'm wondering if anyone can point me in the right direction here. I have a series of PDFs that have short content streams that just reference /Xf1 in the PDF body. These were PDFs modified with iText. It is essentially a PDF placed on a page of a PDF. I'm extracting the nested contents stream just

Re: extract chinese letters from pdf

2015-04-29 Thread Gang Fu
Hi John, I have tried to download the latest source codes using both svn ( http://pdfbox.apache.org/downloads.cgi#scm) and git clone ( https://github.com/apache/pdfbox), When I built, I got the same error showing one file cannot be downloaded: [WARNING] Retrying (1 more) Downloading: http://www.

AcroForm orientation

2015-04-29 Thread phiroc
Hello, when you add an AcroForm to a document that has a 90 degree orientation, does the form automatically have a 90 degree orientation? What about it fields? My problem with the code below is that the fields' data are printed vertically instead of horizontally. Many thanks. Philippe

Re: Picture not printed

2015-04-29 Thread Gregor Kovač
Hi! I see. Great. Thanks for all your help. Best regards, Kovi 2015-04-29 7:49 GMT+02:00 Tilman Hausherr : > Hi, > > The plan was to release it when all, or at least the blocker issues are > solved: > > https://issues.apache.org/jira/issues/?jql=fixVersion%20%3D%202.0.0%20AND%20project%20%

Some Questions about PDFBox

2015-04-29 Thread Alexander Miller
Hello, I have some question about the PDFBox. I got pdfbox 2.0.0-SNAPSHOT and if i want to use PageDrawer, it says it need PageDrawerParameters, but i can't create it, because its privat, so i can't use PageDrawer. In the javadocs it says PageDrawer need PDPage but in eclips it says otherwise.

Re: Picture not printed

2015-04-29 Thread Tilman Hausherr
Hi, The plan was to release it when all, or at least the blocker issues are solved: https://issues.apache.org/jira/issues/?jql=fixVersion%20%3D%202.0.0%20AND%20project%20%3D%20PDFBOX%20AND%20resolution%20%3D%20Unresolved%20ORDER%20BY%20updated%20DESC%2C%20key%20DESC%2C%20priority%20DESC How I

Re: Custom glyph maps for a fonts

2015-04-29 Thread John Hewson
Hi Zeev, > On 28 Apr 2015, at 12:50, Zeev Sands wrote: > > Hello everyone, > > I've been using pdfbox 2.0 for a couple of weeks and came across an issue > with a some symbol fonts (WPIconicSymbolsA and WPTypographicSymbols): > I needed to convert the symbols to their unicode equivalents, so I

Re: extract chinese letters from pdf

2015-04-29 Thread John Hewson
> On 28 Apr 2015, at 20:21, Gang Fu wrote: > > Hi, > > > I want to parse the PDF file with both Chinese and English letters. Which > encoding should I use? > > The sample file is attached. > UTF-8. You want to use the trunk version of PDFBox (2.0) too. Our mailing list removes binary at

Re: form field values not displaying

2015-04-29 Thread Maruan Sahyoun
Hi, > Am 29.04.2015 um 02:21 schrieb Happy Human : > > Hello, > > Wondering if anyone can give some insight into the following issue. When > setting field values either with ImportXFDF, ImportFDF or a simple > field.setValue("foo") some fields do not display when the PDF is opened. > > This seem