how to set background opacity only for free text annotation

2023-06-29 Thread chitgoks
chitgoks Wed, Jun 28, 12:08 PM (21 hours ago) to users Hi this is my code when creating an annotation's appearance for free text PDAnnotationMarkup freeText = (PDAnnotationMarkup) annotation; cs.addRect(); cs.setNonStrokingColor(Util.hex2PD

how to set opacity between background and foreground freetext annotation

2023-06-28 Thread chitgoks
Hi this is my code when creating an annotation's appearance for free text PDAnnotationMarkup freeText = (PDAnnotationMarkup) annotation; cs.addRect(); cs.setNonStrokingColor(Util.hex2PDColor(pdfJSAnnotation.getBackgroundColor())); cs.fill();

Re: PDAnnotationTextMarkup workaround to include action?

2021-12-04 Thread chitgoks
is something that I missed. > > Tilman > > Am 05.12.2021 um 05:17 schrieb chitgoks: > > This didnt work. when i clicked the textmarkup annotation nothing > happens. > > > > this is my code > > > > PDActionURI action = new PDActionURI(); > > action

Re: PDAnnotationTextMarkup workaround to include action?

2021-12-04 Thread chitgoks
ote: > Am 05.12.2021 um 04:57 schrieb chitgoks: > > Hi tilman. the sample there is for PDAnnotationWidget > > PDAnnotationTextMarkup does not have a setAction() or setActions() > > method though. > > it's additional actions > > widget.setActions(annotationActions); >

Re: PDAnnotationTextMarkup workaround to include action?

2021-12-04 Thread chitgoks
Hi tilman. the sample there is for PDAnnotationWidget PDAnnotationTextMarkup does not have a setAction() or setActions() method though. On Sun, Dec 5, 2021 at 11:39 AM Tilman Hausherr wrote: > Am 05.12.2021 um 03:11 schrieb chitgoks: > > are there ways to add functio

PDAnnotationTextMarkup workaround to include action?

2021-12-04 Thread chitgoks
are there ways to add functionality to PDAnnotationTextMarkup wherein a click can do execute something? like opening a new url?

can pdfbox compare differences between 2 pdfs

2021-07-29 Thread chitgoks
i wish to ask if pdfbox can support this scenario. Say, pdf 1 page 4 pdf 2 is a copy of pdf 1 but with additional pages. user adds 3 pages to it. so page 4 will be on page 7. is there a way to detect what page # (which is page 7) in pdf 2 based on pdf 1's (page 4)?

Re: question on characters not showing

2019-09-26 Thread chitgoks
so it seems. my bad. thanks til On Fri, Sep 27, 2019 at 2:00 AM Tilman Hausherr wrote: > Because that is the content. The "greek" annotation has this: > > > > >

question on characters not showing

2019-09-26 Thread chitgoks
i , used pdfbox on this. embedded ArialUnicode ttf im not sure why in the free text annotation, arabic, greek, chinese, japanese all have

creating measurement dictionaries

2019-06-06 Thread chitgoks
hi. to anyone familiar with measure dictionaries, i would like to ask a few questions . please check the image. this area, for example i set as 30.335 mm, for this one, calibration value is 0.00039965mm and this is how i create a measure dictionary. it worked before when i was basing it via pixel

Re: flattening text in PDPageContentStream

2019-05-31 Thread chitgoks
ok. for extra layer, would that be the Overlay class? it looks limited. maybe doing vector graphics , i will try. im trying to avoid annotations since im also doing annotations separately and i do not want that to appear in the annotations list since it will be just a watermark On Fri, May 31, 20

Re: flattening text in PDPageContentStream

2019-05-30 Thread chitgoks
hi maruan. Yes everything should stay as is. I only wish to add a watermark text to every page and watermark page should not be selectable. so using PDPageContentStream currently, this is what i got. On Fri, May 31, 2019 at 2:10 PM Maruan Sahyoun wrote: > shall the regular text of the PDF still

Re: flattening text in PDPageContentStream

2019-05-30 Thread chitgoks
no. sorry. watermark as part of the page. instead of using images, i want to use text as watermarks. On Fri, May 31, 2019 at 1:53 PM Maruan Sahyoun wrote: > as part of an annotation? > > > Am 31.05.2019 um 07:47 schrieb chitgoks : > > > > im creating watermark text. sho

Re: flattening text in PDPageContentStream

2019-05-30 Thread chitgoks
n > > > Am 31.05.2019 um 07:31 schrieb chitgoks : > > > > so i show some text in PDPageContentStream using showText() but these are > > selectable. > > is there a way to make these not selectable? like they'

flattening text in PDPageContentStream

2019-05-30 Thread chitgoks
so i show some text in PDPageContentStream using showText() but these are selectable. is there a way to make these not selectable? like they're drawn in the page itself? anyone got ideas?

Re: box annotation cloud border effect

2019-05-28 Thread chitgoks
019 um 10:23 schrieb chitgoks: > > hi. im confused with these appearance handlers for annotations. are these > > available only for pdfbox 3.0? > > > Yes, that is available in 3.0 / trunk only. It won't be in 2.0. If you > need this for 2.0, you should grab the code and so

Re: box annotation cloud border effect

2019-05-28 Thread chitgoks
earances() on > the annotation. There is no need to make the stuff public. But you could > of course pass your own annotation handler. > > Tilman > > Am 28.05.2019 um 08:57 schrieb chitgoks: > > hi tilman. i checked the thread and i am under the assumption that jani&#

Re: box annotation cloud border effect

2019-05-28 Thread chitgoks
hi. im confused with these appearance handlers for annotations. are these available only for pdfbox 3.0?

Re: box annotation cloud border effect

2019-05-27 Thread chitgoks
asses. anyone got some sample code? doesnt have to be running code, im fine with knowing which classes to use. but if there's a sample running code, all the more better. On Tue, May 28, 2019 at 2:33 PM Tilman Hausherr wrote: > Am 28.05.2019 um 08:28 schrieb chitgoks: > > hi. >

box annotation cloud border effect

2019-05-27 Thread chitgoks
hi. has anyone here created an appearance stream for a box annotation with cloud border effect? i have done this in javascript but doing it in acrobat pdf's space, i am stumped.

box annotation border

2019-05-27 Thread chitgoks
hi. im not sure how to create this annotation type there are 2 options to make this kind of cloud like annotation box i figure it's PDBorderStyleDictionary? i checked the content of Pdf and all i can see is - /I: 2.0 (the other annotation is 1.0) - /S: /C also, since im asking about th

Re: adding review status problem

2019-04-25 Thread chitgoks
Accepted" and > not "accepted", and "None" instead of "none". I just noticed that, I > didn't test your code. The best would be to create a "gold standard" > model with Adobe, and then compare that one with yours. > > Tilman > > A

adding review status problem

2019-04-25 Thread chitgoks
hi. i used to have this working, adding review status to comments like none, accepted, rejected, canceled, etc. this used to be my working code public static void main(String[] args) { try (PDDocument pdfDocument = PDDocument.load(new File("src.pdf"))) { PDPage pdPage = pdfDoc

Re: nested replies of annotation

2019-04-03 Thread chitgoks
; > Tilman > > Am 03.04.2019 um 08:51 schrieb chitgoks: > > hi, i would like to ask if deep level nested replies are supported in > > annotations? > > > > e.g. > > > > annotation comment > > - reply 1 > >- comment to reply 1 > > - reply 2

nested replies of annotation

2019-04-02 Thread chitgoks
hi, i would like to ask if deep level nested replies are supported in annotations? e.g. annotation comment - reply 1 - comment to reply 1 - reply 2 - reply 3 - comment to reply 3 (id : abc) - another nested comment to reply id "abc" because here is what i have so far. i looked at adobe

Re: insert text at cursor annotation

2019-03-13 Thread chitgoks
Wed, Mar 13, 2019 at 1:55 AM Tilman Hausherr wrote: > Am 12.03.2019 um 16:23 schrieb chitgoks: > > hi. i am currently working on this kind of annotation > > > > what kind of class do i use? PDAnnotationMarkup? > > > > I figure it would be just like this &g

insert text at cursor annotation

2019-03-12 Thread chitgoks
hi. i am currently working on this kind of annotation what kind of class do i use? PDAnnotationMarkup? I figure it would be just like this PDAnnotationMarkup pd = new PDAnnotationMarkup(PDAnnotation.SUB_TYPE_CARET); pd.setLocation(rectangle). pd.setPage(page); but it does not show this is the

Re: bookmark zoom value

2018-05-08 Thread chitgoks
Please ignore my email i have managed to solve this. i got the right values . thank you On Tue, May 8, 2018 at 2:36 PM, chitgoks wrote: > I am currently working on bookmarks in pdfbox and i have a question to >> those familiar with PDF and pdf.js > > > im creating a book

Re: bookmark zoom value

2018-05-07 Thread chitgoks
ect, which lets you define the zoom level. >> >> On Thu, Apr 26, 2018 at 9:17 AM, chitgoks wrote: >> >> > hi everyone >> > >> > im currently looking into bookmarks and i saw some post using the >> > PDOutlineItem class. >> > >>

Re: bookmark zoom value

2018-04-26 Thread chitgoks
ion/destination/PDPageXYZDestination.html> > object, which lets you define the zoom level. > > On Thu, Apr 26, 2018 at 9:17 AM, chitgoks wrote: > > > hi everyone > > > > im currently looking into bookmarks and i saw some post using the > > PDOutlineItem class.

bookmark zoom value

2018-04-26 Thread chitgoks
hi everyone im currently looking into bookmarks and i saw some post using the PDOutlineItem class. However, it looks like it only contain ways to save the position and the page number. I saw a video in acrobat that the bookmark will also store the zoom value. is this supported in pdfbox? please

PDPageContentStream text make it unselectable

2018-01-18 Thread chitgoks
is it possible to make text that you add in PDPageContentStream unselectable?

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

2018-01-14 Thread chitgoks
help mark On Sun, Jan 14, 2018 at 9:59 PM, Tilman Hausherr wrote: > 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: > > > >

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

2018-01-14 Thread chitgoks
Sun, 14 Jan 2018 at 9:26 PM Tilman Hausherr wrote: > 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 Annot

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

2018-01-14 Thread chitgoks
t 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 notice the handle. you are right, the > handle is now placed on top. > >

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

2018-01-14 Thread chitgoks
270)); > > 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 of >> 270 degree rotation >> >> i use batik to convert svg to a BufferedImage object >> >> please see sourc

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

2018-01-14 Thread chitgoks
: > 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 tri

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 64 to buff

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

2018-01-14 Thread chitgoks
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 > of > > 270 degree rotation > > > > i use batik to convert

stamp annotation in pdf page 270 degree rotation incorrectly disdplayed

2018-01-13 Thread chitgoks
hi. i have a question on stamps getting displayed in a pdf page that is of 270 degree rotation i use batik to convert svg to a BufferedImage object please see source files svg file - https://drive.google.com/open?id=16WmOTp-9ReIhmsld7kU5N5VUevPF7duP java file - https://drive.google.com/open?id=

Re: remove rotate handle of stamp annotation?

2018-01-13 Thread chitgoks
:29 schrieb chitgoks: > > i uploaded the image here > > > > https://imgur.com/a/laK7V > > > > is it possible to remove that in the dictionary? > > The PDF specification (Table 181 – Additional entries specific to a > rubber stamp annotation) mentions no such

Re: remove rotate handle of stamp annotation?

2018-01-13 Thread chitgoks
i uploaded the image here https://imgur.com/a/laK7V is it possible to remove that in the dictionary? On Sat, Jan 13, 2018 at 9:24 PM, Tilman Hausherr wrote: > Am 13.01.2018 um 14:06 schrieb chitgoks: > >> is it possible to remove the rotate handle of the stamp annotation? >>

remove rotate handle of stamp annotation?

2018-01-13 Thread chitgoks
is it possible to remove the rotate handle of the stamp annotation? because if we rotate it, the image becomes blank and an X shows up - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail:

Re: media box with rotation

2018-01-10 Thread chitgoks
Could that vertical area where the annotations are not rotated as well be some kind of bounding box? maybe it is possible to rotate that if it is indeed found within some kind of container. On Wed, Jan 10, 2018 at 8:42 PM, Maruan Sahyoun wrote: > Hi, > > Am 10.01.2018 um 12:41 schrieb

Re: media box with rotation

2018-01-10 Thread chitgoks
Hi maruan i tried it like this PDRectangle rectToUse = pdPage.getMediaBox(); if (pdPage.getRotation() != 0 && pdPage.getRotation() != 180) rectToUse = new PDRectangle(0, 0, pdPage.getMediaBox().getHeight(), pdPage.getMediaBox().getWidth()); the annotations do

appearance streams for landscape

2018-01-09 Thread chitgoks
hi tilman i placed a comment int he jira issue on appearance streams any chance they be updated for landscape? at 270 degrees? i can contribute on some. got square, circle, stamp and free text working

Re: media box with rotation

2018-01-09 Thread chitgoks
oh thats it? lol sorry. my bad. i thought thered be some other things needed in order to get the correct mediabox dimension thanks On Tue, 9 Jan 2018 at 4:33 PM Maruan Sahyoun wrote: > Hi, > > > tilman mentioned this before that there is no convenience method > available > > > > just wondering

Re: How to Save PNG image from All Pages of PDF doc

2018-01-08 Thread chitgoks
http://www.ghost4j.org/ On Tue, 9 Jan 2018 at 7:51 AM Mark Bolduc wrote: > Looking for a java solution > > > Sent from my iPhone > > > On Jan 8, 2018, at 6:43 PM, chitgoks wrote: > > > > you can use ghost script > > > >> On Tue, 9 Jan 2018 at

media box with rotation

2018-01-08 Thread chitgoks
tilman mentioned this before that there is no convenience method available just wondering if anyone else made this work? i need a rectangle returned based on page orientation @maruan did you come across this case scenario?

Re: How to Save PNG image from All Pages of PDF doc

2018-01-08 Thread chitgoks
you can use ghost script On Tue, 9 Jan 2018 at 7:40 AM Mark Bolduc wrote: > I have a PDF document with multiple pages. > I want to create a single PNG file image containing all pages. > > Is there any code examples for this? > > PS. I have code which allows me to save a specific page image to a

Re: freetext annotation appearance stream in landscape

2018-01-08 Thread chitgoks
hi maruan managed to solved this. took me a day to finally get it what i did is translate it via bbox.getHeight(), 0 transform rotate 270 degrees translate via -bbox.getHeight(), -bbox.getHeight() not sure though if the same will work for 90 and 180 degrees. will verify

Re: freetext annotation appearance stream in landscape

2018-01-07 Thread chitgoks
hi maruan sent you the files so the issue is that my freetext annotation has its own appearance stream so that any viewer will be able to display them. in portrait, there is no problem. but in landscape, when i rotate the content stream, the result is not positioned correctly. im not sure which

freetext annotation appearance stream in landscape

2018-01-07 Thread chitgoks
so i am currently working on making my free text annotation appearance stream work in landsdcape mode thing so, the content stream does not rotate even if i rotate it via transform() using Matrix.getRotateInstance() is there some other issue i need to take into account? page rotation is 270

Re: License and naming for derivative works

2018-01-07 Thread chitgoks
please let us know if indeed you decide to publish it in nuget thank you On Sun, 7 Jan 2018 at 11:54 PM Eliot Jones wrote: > I have been migrating PDFBox to C# in order to provide an Apache 2.0 > licensed solution for working with PDFs in C#. > > Repository is here: https://github.com/UglyToad/

Re: pdf with vertical mediabox but landscape rotation

2018-01-07 Thread chitgoks
i think ill do away with the norotate flag then it is a pain though doing your own rendering lol. but it looks to be the only way On Sun, Jan 7, 2018 at 6:30 PM, Tilman Hausherr wrote: > Am 07.01.2018 um 11:17 schrieb chitgoks: > >> hi tilman ok >> >> i dont understan

Re: pdf with vertical mediabox but landscape rotation

2018-01-07 Thread chitgoks
this issue: > https://github.com/mozilla/pdf.js/issues/7631 > > Tilman > > Am 07.01.2018 um 03:11 schrieb chitgoks: > >> hi tilman >> >> does this means adding annotations in landscape is not supported yet? >> >> thanks >> >> On Sat, Jan

Re: pdf with vertical mediabox but landscape rotation

2018-01-06 Thread chitgoks
hi tilman does this means adding annotations in landscape is not supported yet? thanks On Sat, Jan 6, 2018 at 7:35 PM, Tilman Hausherr wrote: > Am 06.01.2018 um 11:19 schrieb chitgoks: > >> regarding my previous email on landscape >> >> it looks like portrait or land

Re: pdf with vertical mediabox but landscape rotation

2018-01-06 Thread chitgoks
regarding my previous email on landscape it looks like portrait or landscape have same bbox but for landscape there is a rotation value does pdfbox have some sort of convenience method to get bbox (like in itext page.getPageSizeWithRotation()) based on rotation? or how to do this manually in pdfb

pdf with vertical mediabox but landscape rotation

2018-01-05 Thread chitgoks
hi. i have created annotations in the pdf but i encountered 1 weird pdf wherein it is displayed as horizontal but the mediabox is 729x1224 which is vertical and the PDPage.getRottation() has a value of 270 which explains why it is displayed horizontally (landscape). my problem is when i add annot

Re: calculate area of polygon

2017-10-15 Thread chitgoks
Sorry i replied to the wrong email address please ignore my previous email measurement area, i meant polygonDimension annotation. i specify a calculation and set it as content to the annotation. when i move the polygonDimension annotation, it updates its calculation whether it is resized or moved

Re: calculate area of polygon

2017-10-15 Thread chitgoks
y, maybe start with a simple shape, e.g. a right triangle or a > rectangle so you can verify who is correct. > > Tilman > > Am 15.10.2017 um 15:18 schrieb chitgoks: > > hi all > > > > need input > > > > so i create a measurement area annotation and this i

calculate area of polygon

2017-10-15 Thread chitgoks
hi all need input so i create a measurement area annotation and this is the formula i followed http://www.techbluff.com/javascript/function-to-calculate-polygon-area/ however, when the pdf is created and i move the annotation the value is not the same. my formula for converting pixel to inches

Re: appearance stream ideas for PDTextAnnotationMarkup

2017-08-26 Thread chitgoks
thank you tilman will check this out and let you know much appreciated! On Sat, 26 Aug 2017 at 7:58 PM Tilman Hausherr wrote: > Am 26.08.2017 um 13:08 schrieb chitgoks: > > tilman would it be alright to open an issue ticket in jira for this? > > No, there is one for it alread

Re: appearance stream ideas for PDTextAnnotationMarkup

2017-08-26 Thread chitgoks
guys have provided sample code and are very much appreciated. On Sat, Aug 26, 2017 at 5:16 PM, chitgoks wrote: > > > > On Sat, 26 Aug 2017 at 4:33 PM Tilman Hausherr > wrote: > >> Am 26.08.2017 um 07:09 schrieb chitgoks: >> > so i tried to create an appea

Re: appearance stream ideas for PDTextAnnotationMarkup

2017-08-26 Thread chitgoks
On Sat, 26 Aug 2017 at 4:33 PM Tilman Hausherr wrote: > Am 26.08.2017 um 07:09 schrieb chitgoks: > > so i tried to create an appearance stream for a highlight text > > > > drawing shapes in content stream does nothing > > Maybe you didn't set the color... or

appearance stream ideas for PDTextAnnotationMarkup

2017-08-25 Thread chitgoks
so i tried to create an appearance stream for a highlight text drawing shapes in content stream does nothing upon inspecting the pdf after saving it in acrobat, it has an extra appearance stream dictionary containing an xform but i looked at xform and there does not seem to be any way to draw or

Re: appearance stream for line dimension

2017-08-24 Thread chitgoks
Hi Tilman i uploaded the PDF file. i set the 2nd half of the line to color blue so you can see where it is being drawn thank you mark On Fri, Aug 25, 2017 at 1:09 AM, Tilman Hausherr wrote: > Am 24.08.2017 um 11:57 schrieb chitgoks: > >> hi im working on an appearance str

appearance stream for line dimension

2017-08-24 Thread chitgoks
hi im working on an appearance stream for line dimension and this is the closest that i came across https://issues.apache.org/jira/secure/attachment/12805085/showAnnotation.java bottom most if condition the code actually works. partially. i assumed that once you rotate the content stream's matr

Re: tips on pdf font size

2017-08-23 Thread chitgoks
hi chris i also came across this. thank you for the help. this definitely did it. On Thu, Aug 24, 2017 at 12:50 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > To whom it may concern, > > On 8

tips on pdf font size

2017-08-23 Thread chitgoks
hi. if anyone has ideas regarding font size in pdf and the font size in html, would like to ask some inputs i created a free text annotation using coordinates taken from javascript code and with html font size and a fixed font helvetica but the result is not the same when generated in pdf. using

Re: drawing arrow in content stream

2017-08-22 Thread chitgoks
hi tilman youre right i tried to do that before to no avail but now i got it to work thanks On Tue, 22 Aug 2017 at 1:26 AM Tilman Hausherr wrote: > Am 21.08.2017 um 04:41 schrieb chitgoks: > > because there is no padding, part of the arrow head is cut off > > > Why don&#

Re: drawing arrow in content stream

2017-08-20 Thread chitgoks
test.pdf")); } } On Sun, Aug 20, 2017 at 2:34 PM, chitgoks wrote: > hi maruan here > > https://www.dropbox.com/sh/f5zfhh00jhab48n/AABMJ4wpqeyNrmRFhKQPh_Gfa?dl=0 > > all annotations are created with pdfbox > > there are 2 arrows , 1st is a line dimension (shows only

Re: watermark text issue

2017-08-20 Thread chitgoks
okay thank you On Sun, 20 Aug 2017 at 6:41 PM Tilman Hausherr wrote: > Am 20.08.2017 um 12:34 schrieb chitgoks: > > ok. for watermark, here is the sample pdf. this is the same link i gave > to > > maruan > > > > > https://www.dropbox.com/sh/f5zfhh00jhab4

Re: watermark text issue

2017-08-20 Thread chitgoks
ok. for watermark, here is the sample pdf. this is the same link i gave to maruan https://www.dropbox.com/sh/f5zfhh00jhab48n/AABMJ4wpqeyNrmRFhKQPh_Gfa?dl=0 the code i use for watermark is this. i did save the graphic state then restored it. the issue is that the transparent text i created is sele

Re: watermark text issue

2017-08-20 Thread chitgoks
ilman Hausherr wrote: > You first call "cs.setGraphicsStateParameters(gs)" and then save the > graphics state. So the setting will be kept even after you've called > "cs.restoreGraphicsState();". > > Tilman > > Am 20.08.2017 um 09:33 schrieb chitgoks:

Re: watermark text issue

2017-08-20 Thread chitgoks
http://wuhtevah.chitgoks.com http://disneyusa.blogspot.com On Sun, Aug 20, 2017 at 2:56 PM, Tilman Hausherr wrote: > Am 20.08.2017 um 08:38 schrieb chitgoks: > >> Hi gilad. thank you for replying >> >> there should still be some way to do this right? if not the content stream >>

Re: watermark text issue

2017-08-19 Thread chitgoks
On Sat, Aug 19, 2017 at 4:42 PM, Gilad Denneboom wrote: > If you're adding text it will always be selectable. If you don't want it to > be you need to use an image. > > On Sat, Aug 19, 2017 at 4:53 AM, chitgoks wrote: > > > i have question regarding watermarks

Re: drawing arrow in content stream

2017-08-19 Thread chitgoks
http://disneyusa.blogspot.com On Sun, Aug 20, 2017 at 1:06 AM, Maruan Sahyoun wrote: > Hi, > > > Am 19.08.2017 um 03:31 schrieb chitgoks : > > > > i hope you guys can make this work > > > > this would flat out beat out other libraries. > > > >

watermark text issue

2017-08-18 Thread chitgoks
i have question regarding watermarks so i have created some transparent like text in the content stream to mimic a watermark problem is, it can still be selected. is there an option in content stream to flatten this? i read about overlay but my code is already catered to content stream. so would

Re: drawing arrow in content stream

2017-08-18 Thread chitgoks
19, 2017 at 12:40 AM, Maruan Sahyoun > wrote: > >> >> > Am 18.08.2017 um 18:22 schrieb Tilman Hausherr : >> > >> > Am 18.08.2017 um 06:49 schrieb chitgoks: >> >> Hi tilman >> >> >> >> http://imgur.com/a/Dp0tU >> >

Re: drawing arrow in content stream

2017-08-18 Thread chitgoks
i hope you guys can make this work this would flat out beat out other libraries. On Sat, Aug 19, 2017 at 12:40 AM, Maruan Sahyoun wrote: > > > Am 18.08.2017 um 18:22 schrieb Tilman Hausherr : > > > > Am 18.08.2017 um 06:49 schrieb chitgoks: > >> Hi tilman >

Re: drawing arrow in content stream

2017-08-18 Thread chitgoks
, 18 Aug 2017 at 5:11 PM chitgoks wrote: > i noticed it only adds padding to point based annotations like line, > vertices and inklist > > vertices and inklist are ok when if there is no padding since it is not > needed. the problem is the line when it is of arrow type. tsk > >

Re: drawing arrow in content stream

2017-08-18 Thread chitgoks
> > Am 18.08.2017 um 06:49 schrieb chitgoks : > > > > Hi tilman > > > > http://imgur.com/a/Dp0tU > > keep in mind that a viewers appearance handler might add some specific > handling so doesn't exactly follow the content of the appearance stream. > Adobe Re

Re: drawing arrow in content stream

2017-08-17 Thread chitgoks
Hi tilman http://imgur.com/a/Dp0tU On Fri, Aug 18, 2017 at 12:46 PM, Tilman Hausherr wrote: > Am 18.08.2017 um 03:55 schrieb chitgoks: > >> please see attached >> > > Please upload to a share

Re: drawing arrow in content stream

2017-08-17 Thread chitgoks
Thank you for the input Peter I instead looked at some javascript code and integrated it in Java. i have a different question for everyone. please see attached arrow1 annotation is created without appearance stream. when viewed in acrobat reader, the selected area has some padding (gap between

appearance stream of annotation is 2.0.7

2017-08-17 Thread chitgoks
i was previously using 2.0.4 and gave 2.0.7 a try there are vast improvements (for me) when it comes to annotations without appearance streams getting generated by default. i can confirm the following works in chrome viewer -square stroke -square fill (except it comes with a stroke, either strok

drawing arrow in content stream

2017-08-17 Thread chitgoks
has anyone done this? im creating an appearance stream for an arrow annotation. so it is easy to draw a line. i have no idea on the angle value and arrow head length for a line end point. if anyone has ideas, please advise or, if perhaps you have code, please share. thank you mark

Re: content stream setGraphicsStateParameters gives null pointer

2017-08-16 Thread chitgoks
found the culprit the appearance stream does not have any resources object so i just instantiated a new one contentStream.setResources(new PDResource()); i hope in the near future, new versions will create an instance of this automatically. On Wed, Aug 16, 2017 at 7:20 PM, chitgoks wrote

Re: content stream setGraphicsStateParameters gives null pointer

2017-08-16 Thread chitgoks
16 PM, Maruan Sahyoun wrote: > > > Am 16.08.2017 um 13:14 schrieb chitgoks : > > > > hi maruan. it is actually not null. it draws the shape and color as > > intended. just not transparent. > > then I'd need a little more code and the stacktrace - even better would be

Re: content stream setGraphicsStateParameters gives null pointer

2017-08-16 Thread chitgoks
://disneyusa.blogspot.com On Wed, Aug 16, 2017 at 7:10 PM, Maruan Sahyoun wrote: > > > Am 16.08.2017 um 13:00 schrieb chitgoks : > > > > hi. anyone got ideas why i get a nullpointer when my code looks like > this? > > > > square is a PDAnnotation object. > > >

content stream setGraphicsStateParameters gives null pointer

2017-08-16 Thread chitgoks
hi. anyone got ideas why i get a nullpointer when my code looks like this? square is a PDAnnotation object. cs.setStrokingColor(square.getInteriorColor()); cs.setNonStrokingColor(square.getInteriorColor()); PDExtendedGraphicsState graphicsState = new PDExtendedGraphicsState(); graphicsState.setS

Re: annotations not displayed in other viewers

2017-08-15 Thread chitgoks
wrote: > Am 15.08.2017 um 08:40 schrieb chitgoks: > >> im coding my own appearance stream for each annotation instead. seems like >> there's no other way. >> >> i have a quick question. is there some sort of PDColor.NONE value >> equivalent? >> &

Re: annotations not displayed in other viewers

2017-08-14 Thread chitgoks
ilman Hausherr wrote: > Am 15.08.2017 um 06:03 schrieb chitgoks: > >> by the way >> >> came across a post that confirmed this a bug for pdfbox >> >> seems creating annotations, no appearance stream is included. that's why >> viewers dont show any ann

Re: annotations not displayed in other viewers

2017-08-14 Thread chitgoks
at 11:43 AM, chitgoks wrote: > hi > > i think this is a pretty common problem > > anontations created by pdfbox get shown in acrobat reader > > but in some other reader? like chrome, osx viewer, skype preview and > pdf.js? they do not get displayed > > i came acr

annotations not displayed in other viewers

2017-08-14 Thread chitgoks
hi i think this is a pretty common problem anontations created by pdfbox get shown in acrobat reader but in some other reader? like chrome, osx viewer, skype preview and pdf.js? they do not get displayed i came across an issue thread in pdf.js which states: So PDF.js fallback to use base annot

Re: square pdfbox ikvm

2017-06-06 Thread chitgoks
Okay. it seems that constructor does not work but the other constructor where you pass a BufferedImage object instead of stream did the trick by using ImageIO.read(new ByteArrayInputStream(byteArray)) On Tue, Jun 6, 2017 at 4:48 PM, chitgoks wrote: > hi tilman ok thank you > > looks

Re: square pdfbox ikvm

2017-06-06 Thread chitgoks
array is correct since it gets outputted correctly in java pdfbox 2+ On Tue, Jun 6, 2017 at 2:22 PM, Tilman Hausherr wrote: > Am 06.06.2017 um 01:47 schrieb chitgoks: > >> hi >> >> has anyone used the .net version of pdfbox 1.8.9? >> >> would like to ask about cr

square pdfbox ikvm

2017-06-05 Thread chitgoks
hi has anyone used the .net version of pdfbox 1.8.9? would like to ask about creating a rubber stamp how you did it because the .net version relies heavily still on java classes and in this case, it needs a bufferedimage and i have no idea how to do this. if this was 2.0+ it would have been no p

Re: rubberstamp annotation with base 64 image

2017-06-01 Thread chitgoks
://disneyusa.blogspot.com On Thu, Jun 1, 2017 at 9:30 PM, chitgoks wrote: > Thanks. i found this > > http://codegist.net/snippet/java/bufferedimagetranscoderjava_comfreek_java > > the generated is not as crisp and clear though. > > > On Thu, Jun 1, 2017 at 8:48 PM, Thad Humphries >

Re: rubberstamp annotation with base 64 image

2017-06-01 Thread chitgoks
Thanks. i found this http://codegist.net/snippet/java/bufferedimagetranscoderjava_comfreek_java the generated is not as crisp and clear though. On Thu, Jun 1, 2017 at 8:48 PM, Thad Humphries wrote: > On Thu, Jun 1, 2017 at 8:13 AM, chitgoks wrote: > > > Hi Peter > >

  1   2   >