You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by S S Satyanarayana Damarla <sa...@oracle.com> on 2017/11/22 12:42:45 UTC

How to retrieve rectangle bounds for Shape element in the PDF document

Hi,

I have attached a PDF document "Shape.pdf" which contains a Shape element. This PDF document is originally converted from the Word document "Shape.docx" (attached) into PDF using Microsoft Word Application.

 

For our project, we need the ability to retrieve rectangle bounds for the Shape present in the attached PDF document "Shape.pdf". This shape is not recognized as image object (PDImageXObject). Looks like it is embedded in the content stream.

 

Appreciate if you can help me with a sample code in retrieving rectangle bounds for the shape present in the attached PDF document.

 

Thanks,

-Satya

RE: How to retrieve rectangle bounds for Shape element in the PDF document

Posted by S S Satyanarayana Damarla <sa...@oracle.com>.
Hi Tilman,
Thanks much for looking into this.

Uploaded the "Shape.pdf" at the following location.
https://drive.google.com/file/d/1VZVJ37eProWngHBUZIArc7cFJcvtORAT/view

This is not one time, we need to a generic solution for any such file.

Can you please check this PDF document available at above location and let me know on the solution.

Thanks
-Satya


> -----Original Message-----
> From: Tilman Hausherr [mailto:THausherr@t-online.de] 
> Sent: Wednesday, November 22, 2017 11:20 PM
> To: users@pdfbox.apache.org
> Subject: Re: How to retrieve rectangle bounds for Shape element in the PDF document
>
> Hi,
>
> The PDF attachment didn't get through. Please upload it somewhere. I'm reluctant to open a word file.
>
> If the shape is vector graphics then there is no easy method. If this is a one time only, then open the file with PDFDebugger command line app and move the mouse around and look at the coordinates shown in the corner.
>
> Tilman
>
> Am 22.11.2017 um 13:42 schrieb S S Satyanarayana Damarla:
>>
>> Hi,
>>
>> I have attached a PDF document "*Shape.pdf*" which contains a Shape 
>> element. This PDF document is originally converted from the Word 
>> document "Shape.docx" (attached) into PDF using Microsoft Word 
>> Application.
>>
>> For our project, we need the ability to retrieve rectangle bounds for 
>> the Shape present in the attached PDF document "Shape.pdf". This shape 
>> is not recognized as image object (PDImageXObject). Looks like it is 
>> embedded in the content stream.
>>
>> Appreciate if you can help me with a sample code in retrieving 
>> rectangle bounds for the shape present in the attached PDF document.
>>
>> Thanks,
>>
>> -Satya
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org

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


Re: How to retrieve rectangle bounds for Shape element in the PDF document

Posted by Tilman Hausherr <TH...@t-online.de>.
Hi,

The PDF attachment didn't get through. Please upload it somewhere. I'm 
reluctant to open a word file.

If the shape is vector graphics then there is no easy method. If this is 
a one time only, then open the file with PDFDebugger command line app 
and move the mouse around and look at the coordinates shown in the corner.

Tilman

Am 22.11.2017 um 13:42 schrieb S S Satyanarayana Damarla:
>
> Hi,
>
> I have attached a PDF document “*Shape.pdf*” which contains a Shape 
> element. This PDF document is originally converted from the Word 
> document “Shape.docx” (attached) into PDF using Microsoft Word 
> Application.
>
> For our project, we need the ability to retrieve rectangle bounds for 
> the Shape present in the attached PDF document “Shape.pdf”. This shape 
> is not recognized as image object (PDImageXObject). Looks like it is 
> embedded in the content stream.
>
> Appreciate if you can help me with a sample code in retrieving 
> rectangle bounds for the shape present in the attached PDF document.
>
> Thanks,
>
> -Satya
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org