Re: drawing arrow in content stream

2017-08-18 Thread Tilman Hausherr
Am 19.08.2017 um 03:50 schrieb chitgoks: i checked out a line dimension annotation i created in itext rups http://imgur.com/a/QsQpa the only suspicious info i see is the /L which i do not know what that is for That's the line coordinates. Obviously, you need that. An array of four numbers, [

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
i checked out a line dimension annotation i created in itext rups http://imgur.com/a/QsQpa the only suspicious info i see is the /L which i do not know what that is for and the matrix under the /AP appearance dictionary (no idea what the matrix is for) could the /L be it? > On Sat, Aug 19,

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 > >> > >> http://imgur.com/a/Dp0tU >

Re: Converting PDF to image

2017-08-18 Thread Bharat Bhatt
Thanks a lot for quick response On Fri, Aug 18, 2017 at 9:45 PM, Tilman Hausherr wrote: > Am 18.08.2017 um 12:38 schrieb Bharat Bhatt: > >> Hi, >> >> I am creating PDF using PDFBox apis. I want to create the image (replica >> of >> PDF). >> How to convert converted PDF to image? Or directly rend

Re: drawing arrow in content stream

2017-08-18 Thread Maruan Sahyoun
> 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 > > You can confirm what Maruan wrote by doing this: take an existing PDF file > and open it with Adobe Reader. It allows to make annotations. So make an

Re: drawing arrow in content stream

2017-08-18 Thread Tilman Hausherr
Am 18.08.2017 um 06:49 schrieb chitgoks: Hi tilman http://imgur.com/a/Dp0tU You can confirm what Maruan wrote by doing this: take an existing PDF file and open it with Adobe Reader. It allows to make annotations. So make an arrow annotation from visible point 1 to visible point 2. Then save

Re: PDFbox unable to render Chinese font correctly when converting pdf to images

2017-08-18 Thread Tilman Hausherr
Hello Fangqiao, Your files didn't get through, you must upload them to a sharehoster. But I suspect that this is a known problem with chinese fonts, the cause is explained here: https://issues.apache.org/jira/browse/PDFBOX-3293 How to fix it - by implementing font hinting. Which we haven't do

Re: Converting PDF to image

2017-08-18 Thread Tilman Hausherr
Am 18.08.2017 um 12:38 schrieb Bharat Bhatt: Hi, I am creating PDF using PDFBox apis. I want to create the image (replica of PDF). How to convert converted PDF to image? Or directly render PDDocument into image (PNG) file? Which will be faster? You cannot "directly render PDDocument into ima

Converting PDF to image

2017-08-18 Thread Bharat Bhatt
Hi, I am creating PDF using PDFBox apis. I want to create the image (replica of PDF). How to convert converted PDF to image? Or directly render PDDocument into image (PNG) file? Which will be faster? Thanks, Bharat

PDFbox unable to render Chinese font correctly when converting pdf to images

2017-08-18 Thread YE ...
Hi, I am from China and using PDFBox to convert pdf files to images. It worked excellently in most cases. Thanks a lot for the team's great work. However recently I used it to convert some invoices in PDF to images and then some Chinese characters weren't converted correctly. Attached is a sam

Re: drawing arrow in content stream

2017-08-18 Thread Maruan Sahyoun
> Am 18.08.2017 um 11:15 schrieb chitgoks : > > maruan > > so this is currently not doable right? I'll take a look later today - I assume you are missing to define the "content box" although that term doesn't exist in the spec. > > i managed to make the arrow head and it looks the same as a

Re: drawing arrow in content stream

2017-08-18 Thread chitgoks
maruan so this is currently not doable right? i managed to make the arrow head and it looks the same as acrobats angle and length however at certain positions sometimes the arrow head is cut off or not shown with the padding it gets ensured that the arrowhead is always visible mark On Fri, 1

Re: drawing arrow in content stream

2017-08-18 Thread chitgoks
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 On Fri, 18 Aug 2017 at 5:07 PM Maruan Sahyoun wrote: > > > > Am 18.08.

Re: drawing arrow in content stream

2017-08-18 Thread Maruan Sahyoun
> 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 Reader nearly always adds padding. > > > > On Fri,