Re: stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-14 Thread chitgoks
Hi tilman. i ended up rotating the returned BufferedImage instead. I tried not to use raw commands and using only PDImageXObject like in the code above but the resized image is not accurate and i never did get the transforming right so i opted to just rotate the BufferedImage. thanks for the

Re: License and naming for derivative works

2018-01-14 Thread Andreas Lehmkuehler
Am 14.01.2018 um 14:56 schrieb Eliot Jones: Hi Andreas, Many thanks for your response. 1. When I forked I took trunk, the commit was "01aa37bcc4" (unfortunately I didn't realise there was a version 2.0 until much later). The trunk targets a 3.0.0 version containing some major

Re: stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-14 Thread Tilman Hausherr
Am 14.01.2018 um 14:35 schrieb chitgoks: i have not seen a sample appearance stream except that one involving raw commands In the CreateVisibleSignature2 code:     PDAppearanceDictionary appearance = new PDAppearanceDictionary();    

Re: License and naming for derivative works

2018-01-14 Thread Eliot Jones
Hi Andreas, Many thanks for your response. 1. When I forked I took trunk, the commit was "01aa37bcc4" (unfortunately I didn't realise there was a version 2.0 until much later). 2. Just to clarify what does "PMC" mean? And to include the PDFBox copyright in the license which text should

Re: stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-14 Thread chitgoks
hi tilman ok ill look for a way. so far found no way in batik. there are many rotation posts about it but nothing that involves directly converting to image that was my first intention. i have not seen a sample appearance stream except that one involving raw commands thanks for the tip On

Re: Does anyone has experience in using pdfbox in oracle database jvm?

2018-01-14 Thread Andreas Lehmkuehler
Hi, Am 11.01.2018 um 19:48 schrieb Ramos, Luis (DOC): Does anyone has experience in using pdfbox in oracle database jvm? I guess you have to be more specific. AFAIK the oracle db jvm is a fully featured jvm. Saying that, PDFBox should work as long a the minimum requirement for the java

Re: License and naming for derivative works

2018-01-14 Thread Andreas Lehmkuehler
Am 07.01.2018 um 16:54 schrieb Eliot Jones: I have been migrating PDFBox to C# in order to provide an Apache 2.0 licensed solution for working with PDFs in C#. Cool, there a a lot of people asking for a .NET version. Repository is here: https://github.com/UglyToad/Pdf What PDFBox version is

Re: stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-14 Thread Tilman Hausherr
Am 14.01.2018 um 13:51 schrieb chitgoks: hi tilman yeah  but try to move or resize the annotation and its rectangle becomes inverted Oops, yes, indeed :-( I set /Rotate 270 on the page of AnnotationSample.Standard.pdf and then tried to move the custom stamps and no problem. So how about a

Re: stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-14 Thread chitgoks
hi tilman yeah but try to move or resize the annotation and its rectangle becomes inverted mark On Sun, 14 Jan 2018 at 8:48 PM Tilman Hausherr wrote: > I played around a bit more... just reactivating >

Re: stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-14 Thread Tilman Hausherr
I played around a bit more... just reactivating form.setMatrix(AffineTransform.getRotateInstance(Math.toRadians(270))); and not setting the /Rotate entry in the annotation shows correct boundaries. Tilman Am 14.01.2018 um 13:06 schrieb chitgoks: i see i did try that before but did not

Re: stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-14 Thread chitgoks
i see i did try that before but did not notice the handle. you are right, the handle is now placed on top. when i tried that, i was so focused on the resulting rectangle when this property was added to dictionary because the rectangle became vertical, although calling form.setMatrix() to rotate

Re: stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-14 Thread Tilman Hausherr
I looked at the file AnnotationSample.Standard.pdf (google for it) and it has many stamps... They do also have the problem with the "X" except on standard stamps. I saw a "Rotate" entry in the dictionaries. Changing it changes the handle. This must be something non standard, i.e. for Adobe

Re: stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-14 Thread chitgoks
hi tilman, you are correct with the text. for example in free text, i had to rotate the content stream then translated its position (i placed the code in the jira thread) so that the text gets positioned correctly. appreciate your help. On Sun, Jan 14, 2018 at 7:17 PM, Tilman Hausherr

Re: stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-14 Thread Tilman Hausherr
Am 14.01.2018 um 11:37 schrieb chitgoks: hi tilman, please use this short code to convert base64 string to Image object. Thanks, I got it to run. And now I think I understand why in my signature code I had to use additional tricks, but not in the existing annotation appearance code: for

Re: stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-14 Thread chitgoks
hi tilman, please use this short code to convert base64 string to Image object. https://drive.google.com/open?id=1vHip_oi-JHMrFP0YtqOlHe9HNZZ8TY_a On Sun, Jan 14, 2018 at 6:22 PM, chitgoks wrote: > sorry i forgot about this > > ill email back with the method to convert base

Re: stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-14 Thread chitgoks
sorry i forgot about this ill email back with the method to convert base 64 to bufferedimage instead On Sun, 14 Jan 2018 at 5:46 PM Tilman Hausherr wrote: > I'm lazy. Please include the pom.xml parts for the batik component(s) > you're using, and FileUtils. Or change the

Re: stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-14 Thread Tilman Hausherr
I'm lazy. Please include the pom.xml parts for the batik component(s) you're using, and FileUtils. Or change the code so that it loads the image instead of the SVG file. Tilman Am 14.01.2018 um 02:52 schrieb chitgoks: hi. i have a question on stamps getting displayed in a pdf page that is

RE: Writing Urdu text has a small problem

2018-01-14 Thread Hesham Gneady
Hmmm ... Thanks for the reply Tilman. Best regards, Hesham -- Included Message: Hi, We don't support complex scripts so no help from us, sorry. Apache FOP does. Tilman Am 11.01.2018 um 21:10

Re: Writing Urdu text has a small problem

2018-01-14 Thread Tilman Hausherr
Hi, We don't support complex scripts so no help from us, sorry. Apache FOP does. Tilman Am 11.01.2018 um 21:10 schrieb Hesham Gneady: Hello , I have tried using ICU4J library to write Urdu text to a PDF file. I have succeeded in writing it, but it has a small problem. For example when