Hi,

That is a different file. I don't see any troubles with that one, color is black and the lines are stroked.

I don't know what's wrong with your code because it doesn't run (syntax errors, no main, ...) and I'm lazy. However see this SO answer:
https://stackoverflow.com/questions/38931422/pdfbox-2-0-2-calling-of-pagedrawer-processpage-method-caught-exceptions

I added
System.out.println("strokePath: " + getGraphicsState().getStrokingColor());
in strokePath() and lineTo() and I got valid results:


moveTo
lineTo
lineTo: PDColor{components=[0.0, 0.0, 0.0], patternName=null, colorSpace=DeviceRGB}
java.awt.geom.Rectangle2D$Float[x=35.0,y=84.0,w=0.0,h=510.0]
strokePath: PDColor{components=[0.0, 0.0, 0.0], patternName=null, colorSpace=DeviceRGB}
moveTo
lineTo
lineTo: PDColor{components=[0.0, 0.0, 0.0], patternName=null, colorSpace=DeviceRGB}
java.awt.geom.Rectangle2D$Float[x=478.0,y=84.0,w=0.0,h=510.0]
strokePath: PDColor{components=[0.0, 0.0, 0.0], patternName=null, colorSpace=DeviceRGB}
moveTo
lineTo
lineTo: PDColor{components=[0.0, 0.0, 0.0], patternName=null, colorSpace=DeviceRGB}
java.awt.geom.Rectangle2D$Float[x=553.0,y=84.0,w=0.0,h=510.0]
strokePath: PDColor{components=[0.0, 0.0, 0.0], patternName=null, colorSpace=DeviceRGB}
moveTo
lineTo
lineTo: PDColor{components=[0.6, 0.6, 0.6], patternName=null, colorSpace=DeviceRGB}
java.awt.geom.Rectangle2D$Float[x=61.0,y=84.0,w=0.0,h=532.0]
strokePath: PDColor{components=[0.6, 0.6, 0.6], patternName=null, colorSpace=DeviceRGB}
moveTo
lineTo
lineTo: PDColor{components=[0.6, 0.6, 0.6], patternName=null, colorSpace=DeviceRGB}
java.awt.geom.Rectangle2D$Float[x=428.0,y=84.0,w=0.0,h=532.0]
strokePath: PDColor{components=[0.6, 0.6, 0.6], patternName=null, colorSpace=DeviceRGB}
moveTo
lineTo
lineTo: PDColor{components=[0.6, 0.6, 0.6], patternName=null, colorSpace=DeviceRGB}
java.awt.geom.Rectangle2D$Float[x=501.0,y=84.0,w=0.0,h=532.0]
strokePath: PDColor{components=[0.6, 0.6, 0.6], patternName=null, colorSpace=DeviceRGB}

Tilman

Am 02.08.2019 um 08:07 schrieb Joel Hirsh:
More to the point what I really need is to recognize the visible lines in
this file:
https://drive.google.com/file/d/1rhCbCBV1cztdp3w3MFLEmWcVMVMotJe8/view?usp=sharing

And when I look at the PDGraphicsState for these visible lines I cannot
find a color either.

Is there a color there that I can use?  Or some other attribute that would
distinguish the visible from the invisible?

Thank you


On Thu, Aug 1, 2019 at 4:05 PM Joel Hirsh <joelehi...@gmail.com> wrote:

Ok, is there any way to identify them as being part of a clipping region
rather than lines that are part of the content?

On Thu, Aug 1, 2019 at 9:22 AM Tilman Hausherr <thaush...@t-online.de>
wrote:

I found the "white lines":

Root/Pages/Kids/[0]/Resources/XObject/Fm0/Resources/XObject/Fm1

they all look like this:

      0 792 m
      0 0 l
      612 0 l
      612 792 l
      h
      W
      n

These are lines, but they build a clipping region.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to