Re: Anyone know how to set up a bouncycastle?

2015-09-24 Thread Eric Douglas
system on PDDocument.load now even on non-secured PDF. On Thu, Sep 24, 2015 at 6:16 AM, Andreas Lehmkühler wrote: > Hi, > > > Eric Douglas hat am 18. September 2015 um > 16:53 > > geschrieben: > > > > > > I'm trying to read a PDF using pdfbox, and o

Anyone know how to set up a bouncycastle?

2015-09-18 Thread Eric Douglas
I'm trying to read a PDF using pdfbox, and on one system I get this error: cannot create instance of org.bouncycastle.jcajce.provider.digest.GOST3411$Mappings : java.security.AccessControlException: access denied ("java.security.SecurityPermission" "putProviderProperty.BC") java.lang.InternalError

Re: Embedding an EPS

2015-05-07 Thread Eric Douglas
I just embed images, generated from iText On Thu, May 7, 2015 at 1:07 PM, Tilman Hausherr wrote: > Am 07.05.2015 um 18:59 schrieb John Hewson: > >> On 7 May 2015, at 09:04, phi...@free.fr wrote: >>> >>> I would like to generate a barcode, then embed it in the PDF. >>> >>> The O'Reilly 'Developin

Re: Reading text using TextPosition

2015-04-22 Thread Eric Douglas
What have you got so far? Can you provide sample code to work with? On Wed, Apr 22, 2015 at 12:02 PM, Hesham G. wrote: > Frank , > > I have handled TextPositions using X & Y coordinates as you have suggested > to detect new lines. It works fine, but if a sentence is written on 2 lines > I can't

Re: Reading text using TextPosition

2015-04-21 Thread Eric Douglas
A proper sentence ends with a period, so text that is one character height below other text is assumed to be tacked onto the same sentence (with a space between). If you have the font, you know the font size, you should be able to calculate one character height. If sentences aren't ended with perio

Re: java source in PDFBox snapshot jars?

2015-04-21 Thread Eric Douglas
Where is the snapshot taken from? Is the source already available separately? If anyone is using the snapshot in a production environment they probably don't want the source in the same jar, but a separate snapshot source jar could make sense. I package source in my own custom jar so it's easier

Re: pdfbox warnings

2015-04-08 Thread Eric Douglas
On Wed, Apr 8, 2015 at 3:59 PM, John Hewson wrote: > > On 8 Apr 2015, at 10:59, Eric Douglas wrote: > > > > Where are you getting the Arial Unicode MS? It doesn't come with > Windows, > > that is, it's not installed on my Windows 8.1 Pro. > > Previou

Re: pdfbox warnings

2015-04-08 Thread Eric Douglas
20:05 schrieb Tilman Hausherr : > > > > Am 08.04.2015 um 19:59 schrieb Eric Douglas: > >> Where are you getting the Arial Unicode MS? > > > > C:\windows\fonts\ARIALUNI.TTF > > > > we might be able to find a suitable font to be distributed with PDFBox >

Re: pdfbox warnings

2015-04-08 Thread Eric Douglas
would explain > why many people already have it (or are familiar with it), but not Windows > 8.1 Pro. > > -Tres > > - tres.finocchi...@gmail.com > > On Wed, Apr 8, 2015 at 2:05 PM, Tilman Hausherr > wrote: > > > Am 08.04.2015 um 19:59 schrieb Eric Douglas: >

Re: pdfbox warnings

2015-04-08 Thread Eric Douglas
> > This fix will be available in the next 2.0 snapshot build. > > — John > > > On 7 Apr 2015, at 05:00, Eric Douglas wrote: > > > > On Tue, Apr 7, 2015 at 2:56 AM, John Hewson wrote: > > > >> > >> On 6 Apr 2015, at 14:38, Tres Finocchiaro > &

Re: pdfbox warnings

2015-04-07 Thread Eric Douglas
On Tue, Apr 7, 2015 at 2:56 AM, John Hewson wrote: > > On 6 Apr 2015, at 14:38, Tres Finocchiaro > wrote: > > >> > >>> ExternalFonts.addSubstitute("ZapfDingbats", "WingdingsRegular"); > >>> That will map Zapf Dingbats to Webdings. If it works then we can > include > >> that substitution by defau

Re: pdfbox warnings

2015-04-06 Thread Eric Douglas
ake sense to say those 14 fonts are part of the PDF standard then make people pay to use them. If not? There should be some other free distributable replacement. On Mon, Apr 6, 2015 at 3:23 PM, Tilman Hausherr wrote: > Am 06.04.2015 um 21:16 schrieb Eric Douglas: > >> Adobe provides

Re: pdfbox warnings

2015-04-06 Thread Eric Douglas
Box. > > The problem would appear to arise from the PDF standard requiring a > copyrighted font. > > P. > > > P. > > > On Mon, Apr 6, 2015 at 5:31 PM, John Hewson wrote: > > > > > > On 6 Apr 2015, at 08:59, Eric Douglas wrote: > > >

Re: pdfbox warnings

2015-04-06 Thread Eric Douglas
ZapfDingbats should be there, shouldn't have to substitute, as you mentioned. https://issues.apache.org/jira/browse/PDFBOX-1900 John Hewson added a comment - 11/Feb/14 00:55 This is a PDFBox bug. Zapf Dingbats is one of the sta

Re: pdfbox warnings

2015-03-31 Thread Eric Douglas
OK how about my Google Drive? https://drive.google.com/file/d/0B2v-yhJD9tS7WE9NemlRZHd6NlE/view?usp=sharing On Tue, Mar 31, 2015 at 1:42 PM, John Hewson wrote: > > > On 26 Mar 2015, at 10:41, Eric Douglas wrote: > > > > I can upload a small sample PDF that shows t

Re: pdfbox warnings

2015-03-26 Thread Eric Douglas
eToGraphics? On Thu, Mar 26, 2015 at 1:50 PM, Tilman Hausherr wrote: > It doesn't work with the ttf font for some reason. I can only tell that it > works for me with the type1 file. > > Tilman > > Am 26.03.2015 um 18:41 schrieb Eric Douglas: > > I don't know wh

Re: pdfbox warnings

2015-03-26 Thread Eric Douglas
ilt-in Actual Font: AdobePiStd Actual Font Type: Type 1 My normal fonts for text that properly embedded which render fine with this trunk show as LucidaSans-Typewriter (Embedded Subset) Type: TrueType Encoding: Custom On Thu, Mar 26, 2015 at 12:23 PM, Tilman Hausherr wrote: > Am 26.03.201

pdfbox warnings

2015-03-26 Thread Eric Douglas
When I call the PDFRenderer renderPageToGraphics method I get warnings in my log. Is there a fix for these? org.apache.pdfbox.pdmodel.font.PDType1Font WARNING: Using fallback font ArialMT for ZapfDingbats org.apache.pdfbox.rendering.font.Type1Glyph2D getPathForCharacterCode WARNING: No glyph for

Re: Problem building the project with Eclipse and m2e

2015-03-16 Thread Eric Douglas
Tell me you're not referring to Net...? Have they improved it much? I tried it once years ago and it took forever to load. I installed m2e and I can't get pdfbox to compile using the Maven in Eclipse. Maybe I didn't install something right. I had a big Maven plugin on Eclipse a couple versions

Re: wrong FontBox?? NoSuchMethodError: org.apache.fontbox.afm.AFMParser.parse

2015-03-13 Thread Eric Douglas
I downloaded a trunk snapshot, which included fontbox-2.0.0.jar in /pdfbox-trunk/fontbox/target The pdfbox-trunk folder includes app examples fontbox parent pdfbox preflight preflight-app tools xmpbox On Fri, Mar 13, 2015 at 12:31 PM, Andrew Munn wrote: > I have these in my classpath > > fontbo

Re: org.apache.pdfbox.rendering.PDFRenderer logs

2015-03-13 Thread Eric Douglas
I don't use log4j so I don't know where that would be but I'll look into it. On Fri, Mar 13, 2015 at 12:38 PM, Tilman Hausherr wrote: > Am 13.03.2015 um 13:37 schrieb Eric Douglas: > >> Anyone? Is there a command I can call to set this up properly or do we >> n

Re: org.apache.pdfbox.rendering.PDFRenderer logs

2015-03-13 Thread Eric Douglas
Anyone? Is there a command I can call to set this up properly or do we need the pdfbox developers to make these logs go away? On Tue, Mar 10, 2015 at 4:52 PM, Eric Douglas wrote: > From the renderPageToGraphics method, is there an easy way to get rid of > these log me

Re: PDFBox 2.0.0 and UTF8 chars

2015-03-13 Thread Eric Douglas
I got that Could not find referenced cmap stream Identity-H error again today. I had put the wrong fontbox jar in the system. I grabbed a different one from a snapshot I had and the error went away. On Wed, Mar 4, 2015 at 2:23 PM, Ivan Klaric wrote: > OK, I'll focus on the PDType0Font.load ver

org.apache.pdfbox.rendering.PDFRenderer logs

2015-03-10 Thread Eric Douglas
>From the renderPageToGraphics method, is there an easy way to get rid of these log messages? com.levigo.jbig2.util.log.JDKLogger info INFO: Globals not set.

Re: PDFBox 2.0.0 and UTF8 chars

2015-03-04 Thread Eric Douglas
I'm not sure what you're doing on the TTFParser error from the snapshot, but on copying the jars out of the lib folder make sure you get all dependencies. cmap stream Identity-H is referring to pcfi-2010.08.09.jar On Wed, Mar 4, 2015 at 2:23 PM, Ivan Klaric wrote: > OK, I'll focus on the PDType0

PDFRenderer

2015-03-04 Thread Eric Douglas
I'm using org.apache.pdfbox.rendering.PDFRenderer renderPageToGraphics method in a GUI component. This PDFRenderer requires a document in the constructor. This render method requires the document to be open. PDDocument.load creates and opens the document object. How much overhead is in this meth

Re: Pdfbox trunk error

2015-03-04 Thread Eric Douglas
(You may need the levigo JBIG2 plugin and JAI in your classpath) > > Tilman > > > Am 03.03.2015 um 22:37 schrieb Eric Douglas: > > I have used maven a long time ago, I forget how. The project has a bunch >> of pom.xml files I forget how to use. >> I'm using Eclipse

Re: Pdfbox trunk error

2015-03-03 Thread Eric Douglas
. The fontbox jar came with the subversion install. The fontbox folder doesn't have a build.xml. On Tue, Mar 3, 2015 at 4:13 PM, Tilman Hausherr wrote: > What happens if you build pdfbox-app instead and use that one? > > Tilman > > Am 03.03.2015 um 21:06 schrieb Eric Douglas:

Re: PDFBox 2.0

2015-03-03 Thread Eric Douglas
gt; > Tilman > > Am 03.03.2015 um 14:22 schrieb Eric Douglas: > > I'm not sure what you mean "you can't cut a PDF". There is already a >> PDFRenderer which accepts a PDDocument in it's constructor and has a >> renderPageToGraphics method which draws a

Pdfbox trunk error

2015-03-03 Thread Eric Douglas
I downloaded pdfbox trunk source from https://github.com/apache/pdfbox on 1/8/15 and compiled a jar and my code to render a PDF works fine. I tried building the pdfbox-2.0.0.jar and fontbox-2.0.0.jar from the current subversion repository and the same code to render the same PDF gets this error.

Re: PDFBox 2.0

2015-03-03 Thread Eric Douglas
. On Mon, Mar 2, 2015 at 5:29 PM, Tilman Hausherr wrote: > Am 02.03.2015 um 22:49 schrieb Eric Douglas: > >> Hi, I hope this is to the right place, my first time using this list. >> I'm working with a 2.0 maven trunk I found and I have a couple issues. >> I can'

PDFBox 2.0

2015-03-02 Thread Eric Douglas
Hi, I hope this is to the right place, my first time using this list. I'm working with a 2.0 maven trunk I found and I have a couple issues. I can't seem to find this class which is in some online javadocs referencing pdfbox 1.8: - org.apache.pdfbox.pdfviewer.PDFPagePanel Now, I'm trying to u

RE: Replace itext with PDFBox for XDocReport project?

2011-10-14 Thread Eric Douglas
Why switch from iText? What is the issue with the license? The only thing I can tell is you can't reference iText from your code if you plan to sell your code. Is there something else I'm missing? It's highly doubtful they'd sell the code I write, it's all for in house projects. Does pdfbox do

RE: How to make embedded font readable?

2011-09-13 Thread Eric Douglas
2:16 AM To: users@pdfbox.apache.org Subject: Re: How to make embedded font readable? Hi, Am 12.09.2011 21:54, schrieb Eric Douglas: > I'll look into that JIRA, thanks. > The pdfbox error in the original message below shows the class and method > producing this message in the Java log.

RE: How to make embedded font readable?

2011-09-12 Thread Eric Douglas
x.apache.org Cc: fop-us...@xmlgraphics.apache.org Subject: Re: How to make embedded font readable? Hi, Am 12.09.2011 15:31, schrieb Eric Douglas: > FOP created the PDF. Pdfbox is trying to read it. > I'm not sure which end is missing what. > I'm embedding fonts and pdfbox say

How to make embedded font readable?

2011-09-12 Thread Eric Douglas
FOP created the PDF. Pdfbox is trying to read it. I'm not sure which end is missing what. I'm embedding fonts and pdfbox says there's something there it can't read. Sep 12, 2011 9:18:12 AM org.apache.pdfbox.pdmodel.font.PDCIDFontType2Font getawtFont INFO: Can't read the embedded font ED+Lucid

How do I get rid of the warnings?

2011-09-01 Thread Eric Douglas
I created a PDF from FOP. Then I created a new PDF with the new PDDocument(). Then I created a pdfbox PDF from the FOP PDF with PDDocument.load(). Then I got the pages of the FOP PDF with the getDocumentCatalog(), getAllPages(). Then I added those pages to my new PDF with the for (PDPage page : pag

RE: how to find why a pdf is so big in pdfdebugger

2011-08-29 Thread Eric Douglas
Can you be more specific? Do you have test samples? How did you extract the page? -Original Message- From: José Rodolfo Carrijo de Freitas [mailto:jose.frei...@softplan.com.br] Sent: Monday, August 29, 2011 3:56 PM To: users@pdfbox.apache.org Subject: how to find why a pdf is so big in

RE: pdDocument.print(); prints to server not browser

2011-07-18 Thread Eric Douglas
If you've streamed the pdf to the client and the pdfbox print method is generating a print dialog on the server, what you need to try is creating a PrinterJob on the client. print() should not be called directly. The print() method in the PDDocument class is called automatically if you pass the P

RE: pdDocument.print(); prints to server not browser

2011-07-18 Thread Eric Douglas
I don't know wicket but it sounds like you're missing a step. How does it normally communicate, like to generate a file on the server and save it to the client? -Original Message- From: stephen smith [mailto:smiths...@hotmail.com] Sent: Monday, July 18, 2011 9:43 AM To: users@pdfbox.apa

RE: pdDocument.print(); prints to server not browser

2011-07-18 Thread Eric Douglas
If your document is on the server it sounds like it does what it's supposed to. How is your server talking to your client? Try streaming the pdf to the client first? -Original Message- From: stephen smith [mailto:smiths...@hotmail.com] Sent: Friday, July 15, 2011 5:51 PM To: users@pdfbo

Error Messages

2011-06-22 Thread Eric Douglas
I create a PDF using FOP, then I load it into pdfbox with PDDocument.load(). Then I pass it to the Java print method with PrinterJob.setPageable. It appears to be printing perfectly. Why am I getting all these error messages in my log? org.apache.pdfbox.pdmodel.font.PDFont determineEncoding SEVE

Create and Merge PDF What Am I Missing?

2011-06-07 Thread Eric Douglas
I used FOP to create a PDF in byte[] form. Now I load the PDF into pdfbox. If I save it looks fine. If I pass it into a viewer I get problems. I generated an array of these PDFs and I need to combine them. I start with just saving the first one. ByteArrayInputStream myBAIS = new ByteArrayInputSt

RE: How to keep PDF format when extracting text

2011-05-26 Thread Eric Douglas
This sounds a bit vague. PDF format sounds like you're creating a PDF, but your description sounds more like you're getting text from a PDF trying to make it look like it does in the PDF. Are you trying to modify a PDF or are you just losing font information on etracted text? Is the font infor

RE: Converting an image to a PDF

2011-04-22 Thread Eric Douglas
I'm using the org.apache.pdfbox.pdfviewer.PageDrawer class to draw an image of a PDF and it doesn't look quite the same. Surely the method I came up with to draw lines on the pages of the PDF is not the best but they look fine in the PDF and don't come up on the drawing. I think it's a layering i

RE: Hot to run PDFBox in eclipse

2011-03-23 Thread Eric Douglas
There's just a message on that page. You might want to check for a new link. "This page has been deprecated and is now controlled by the consume team." -Original Message- From: Mirko Raner [mailto:mi...@raner.ws] Sent: Wednesday, March 23, 2011 3:33 PM To: users@pdfbox.apache.org Subjec

RE: RE: Font choices and error messages

2011-03-14 Thread Eric Douglas
On mine I get the message "Can't read the embedded font" but the font appears to be the one I embedded and I don't see any messages about "Using font...instead". -Original Message- From: Andreas Lehmkühler [mailto:andr...@lehmi.de] Sent: Monday, March 14, 2011 9:08 AM To: users@pdfbox.

Error Logs

2011-03-14 Thread Eric Douglas
I'm not sure what pdfbox is doing to generate output but my printed output appears to be correct despite these errors. Is my output not actually quite right, is there any way to make it right, or can I just silence these messages? org.apache.pdfbox.pdmodel.font.PDFont determineEncoding SEVERE: Err

Landscape

2011-03-03 Thread Eric Douglas
How do I use PDFBox to print Landscape?? I created a PDF object, I loaded it into PDFBox with PDDocument.load(), and I saved it as a PDF from that object's save(). That made a landscape PDF. I can see the page showing upright with the height and width reversed. If I pass that (Pageable) PDDocumen