Thanks Tilman. I played around a bit with the pdf drawing and noticed
that if I do menu item Edit->Find and type in the dimension value, it
will find it and highlight it in blue background. Then if I click the
Zoom Up (+) icon, it keeps the highlighted dimension in the middle of
the screen as it zooms. That is exactly the behavior I am looking for.
Is it possible to do the same thing programmatically using pdfbox api?
On 3/20/2019 12:48 PM, Tilman Hausherr wrote:
Am 20.03.2019 um 19:31 schrieb Greg Hanowski:
Hi Tilman,
Oh, ok, I understand. I've uploaded a new pdf to here:
http://www.tekknow.net/MoneyMachine/386-5001.pdf
I created this pdf from the Creo 5.0 CAD system. It is not proprietary.
Thank you for checking whether the dimensions exist in a "dictionary"
and can be accessed.
I had a look with PDFDebugger and it's really just text and vector
graphics.
Tilman
Greg
On 3/20/2019 11:08 AM, Tilman Hausherr wrote:
Hi,
The problem is that I need an actual PDF to see whether these
"dimensions" exist as a dictionary somewhere (there are so many
"exotic" PDF features). If this is just a vector graphic then we
can't fetch it without OCR or pattern recognition.
I thought it had to do with viewports but now I think that isn't. A
file with it is in this question:
https://stackoverflow.com/questions/47772334/how-do-i-extract-viewport-from-a-pdf-and-modify-an-annotations-bounding-rectang
Tilman
Am 20.03.2019 um 15:39 schrieb Greg Hanowski:
That's just an example to help people understand what a dimension
is and what I'm trying to accomplish. The real pdf drawings are
proprietary so can't show them. But they will not be screen
shots. They will be PDF drawings generated by the CAD (Computer
Aided Design) systems.
Greg
On 3/20/2019 1:45 AM, Tilman Hausherr wrote:
That's just an image in a PDF. No way to find that dimension
programmatically (one could use OCR, with all the difficulties)
Tilman
Am 19.03.2019 um 22:18 schrieb Greg Hanowski:
Ok, I've uploaded it to here:
http://www.tekknow.net/MoneyMachine/drawing.pdf
I want to be able to programmatically zoom up on the "4 +/- 0.2"
dimension, for example, highlight it in some way (Put a
transparent yellow over it, or change the color of it), then
create an image file of the zoomed up view.
On 3/19/2019 2:35 PM, Tilman Hausherr wrote:
Hi,
nothing attached, you need to upload it somewhere. It would be
useful to have the PDF too. If you can't share it, then please
create a dummy. Btw I don't have Adobe Professional, only the
reader.
Tilman
Am 19.03.2019 um 21:29 schrieb Greg Hanowski:
I've pasted a screenshot of an engineering drawing. Dimensions
are the numbers that define distances between two points. I
want to be able to programmatically zoom up on the 12.000
dimension, for example, highlight it in some way (Put a
transparent yellow over it, or change the color of it), then an
image file of the zoomed up view.
**
On 3/19/2019 1:33 AM, Tilman Hausherr wrote:
Am 18.03.2019 um 22:40 schrieb Greg Hanowski:
We get pdf engineering drawings from suppliers. We need to
programmatically zoom up on a specified dimension, highlight
it, and create an image file of the zoomed up view. How to
specify the dimension is unknown. Some dimensions might have
the same text so not sure how to differentiate. Suggestions
welcome. Can pdfbox do this?
With "dimension" do you mean a rectangle coordinate or this
viewport thing? (An exotic feature of PDF)
"Zoom up" - do you want to make it bigger? Or do you just mean
to cut it out?
Highlight = ? Put a yellow over it?
It is possible to crop on a specific area by modifying the
cropbox of a page, then only the cropped area will be seen.
It's also possible to highlight by filling a rectangle and
blending this on top.
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]