. It is 13881 but should be 90.
However a similar problem is in the source file. Parent points to 98 but
should be 18564.
Tilman
Am 27.01.2021 um 12:41 schrieb Hesham Gneady:
Hello,
I am trying to add a blank page to a PDF file after specific page, using
PDFBox 2.0.21
Hello,
I am trying to add a blank page to a PDF file after specific page, using
PDFBox 2.0.21. For some PDFs it works fine, but for others when opening the
PDF using Adobe Reader or any reader the PDF becomes totally ruined. Many
pages have 0 dimensions. Zooming becomes wrong, and I get error
.
-Original Message-
From: Hesham Gneady
Sent: Saturday, November 21, 2020 11:11 PM
To: users@pdfbox.apache.org
Subject: RE: Reading page using PDFTextStripper
CAUTION: [EXTERNAL]
I've tried it now, but it made no difference. I've actually explained the
problem wrong, here's what actually
>
>
>
>
>
> Best regards,
>
> Hesham
>
>
>
> -
> ---
> --
>
> Included Message:
>
>
>
> Am 17.11.20 um 07:54 schrieb Hesham Gneady
t; number.
Best regards,
Hesham
--
Included Message:
Am 17.11.20 um 07:54 schrieb Hesham Gneady:
> Hi,
>
>
>
> I am trying to read this PDF file using
> PDFTe
Hi,
I am trying to read this PDF file using
PDFTextStripper.processTextPosition():
https://dl.dropboxusercontent.com/s/o660xrp4sgp9tbv/PDFTextStripper%20readin
g%20sample.pdf?dl=0
But when I do that it reads it with wrong order. It reads the 2nd line
before the 1st line because the 1st
who are not familiar with that language and with
the API for it.
Tilman
Am 14.05.2020 um 00:02 schrieb Hesham Gneady:
> Hello,
>
>
>
> When reading this Hindi PDF book using PDFBox 2.0.19:
>
> https://dl.dropboxusercontent.com/s/laixlb5omvjqr7y/Hindi%20Book.pdf?d
>
Hello,
When reading this Hindi PDF book using PDFBox 2.0.19:
https://dl.dropboxusercontent.com/s/laixlb5omvjqr7y/Hindi%20Book.pdf?dl=0
It reads it with some wrong characters for conjuncts as it appears in this
file:
is an OutOfMemory if you open and close the
document a lot of times.
If no => then don't bother.
If yes => please test whether the problem is gone with jdk11 or jdk14, if not,
please share the file.
(I assume you are using PDFBox 2.0.19)
Tilman
Am 25.03.2020 um 11:17 schrieb Hesham Gnead
surprised with the results. There is some permanent stuff, but I didn't
expect it to be that high (58 MB).
However a real memory leak could be proven (somewhat) only by running that open
and close several times.
Tilman
Am 24.03.2020 um 20:24 schrieb Hesham Gneady:
> It's 8u231
> Do y
? (Exact version)
I'm asking just to check that you haven't an old one, e.g. 40.
Tilman
Am 24.03.2020 um 17:26 schrieb Hesham Gneady:
> JDK 8.0
>
>
> Best regards,
> Hesham
>
> --
> ---
JDK 8.0
Best regards,
Hesham
--
Included Message:
What jdk are you using?
Tilman
Am 24.03.2020 um 17:15 schrieb Hesham Gneady:
> Oh! ... That's absolutely right. I am now getting right resu
ieb Hesham Gneady :
>
> Hello,
>
>
>
> I am trying to make a test to see the amount of memory consumed before
> and after loading a PDF file using PDFBox, and also the consumed
> memory after closing the PDF file, but I've noticed that the memory
> consumed after lo
Hello,
I am trying to make a test to see the amount of memory consumed before and
after loading a PDF file using PDFBox, and also the consumed memory after
closing the PDF file, but I've noticed that the memory consumed after
loading the PDF file is the same after closing the PDF file. It
s fake bold fonts on its own).
> They exist on their own, with their own names. True, they are usually
> a variant of another existing font, but there's no mandatory naming
> scheme that says that if font X exists then the bold variant will be
> called X-Bold, or something like that, or
Hesham Gneady <
<mailto:heshamgne...@gmail.com> heshamgne...@gmail.com>
wrote:
> Hello ,
>
>
>
> I am trying to extract the bold text for some PDF files, but some fail
> like this one:
>
> <https://www.dropbox.com/s/gh2zwdh3sl3isc
Hello ,
I am trying to extract the bold text for some PDF files, but some fail like
this one:
https://www.dropbox.com/s/gh2zwdh3sl3isck/Bold%20Font%20Sample.pdf?dl=0
I am overriding the processTextPosition (.) method to do this, and i have
tried all these options, but none has worked for
Maruan,
I am checking bold sentences inside a page. After reading each letter
specifications using PDFontDescriptor, if that letter is not bold then I save
the last bold sentence collected before this letter, and so on till the end of
the page.
The problem is in the last letter in the page, if
That has fixed this, and the colors appear with right RGB values now!
I am not sure what this file does, but it has fixed it!
Thanks a lot Tilman.
Best regards,
Hesham
--
Included Message:
Add this
----------
Included Message:
Am 08.01.2019 um 11:16 schrieb Hesham Gneady:
> Thanks Telman!
>
> I have tested the PrintTextColors example and I am getting the same results!
> Sti
Thanks Telman!
I have tested the PrintTextColors example and I am getting the same results!
Still, PDFBox reports RGB values different than the ones I see in Adobe
Acrobat when using the PrintTextColors example with my PDF sample.
Best regards,
Hesham Gneady
Hello,
In this sample PDF file:
https://www.dropbox.com/s/2z5b3vrvnzjo0lo/Font%20color%20Sample.pdf?dl=0
I am trying to check the font colors for all letters, but I have noticed
that PDFBox gets colors with values partially different from the ones that I
see in Adobe Acrobat. I use this
. See also the
DrawPrintTextLocations.java example.
Tilman
Am 06.01.2019 um 10:26 schrieb Hesham Gneady:
Hello ,
In this PDF sample:
https://www.dropbox.com/s/9kpm0jmb6h3mrhy/Font%20Size%20Sample.pdf?dl=0
When it try to get the font sizefor any letter it always returns 1.0, using
this code:
pu
Hello ,
In this PDF sample:
https://www.dropbox.com/s/9kpm0jmb6h3mrhy/Font%20Size%20Sample.pdf?dl=0
When it try to get the font sizefor any letter it always returns 1.0, using
this code:
public class PDFTextStripperExtender extends PDFTextStripper {
@Override
public void
Excellent!
Best regards,
Hesham
--
Included Message:
Am 25.01.2018 um 21:33 schrieb Hesham Gneady:
> I have reported this because the PDF appeared normal to me. If there
> is a way to read th
.
Tilman
Am 25.01.2018 um 15:20 schrieb Hesham Gneady:
Hello ,
While reading a pdf using PDFBox v2.0.8 many spaces are being ignored, so
words are merged together while reading the pdf. You can test a 1-page
sample PDF from here:
https://www.dropbox.com/s/9i9ofl3tje4iy3k
Hello ,
While reading a pdf using PDFBox v2.0.8 many spaces are being ignored, so
words are merged together while reading the pdf. You can test a 1-page
sample PDF from here:
https://www.dropbox.com/s/9i9ofl3tje4iy3k/wrong_space_parsed_sample.pdf?dl=1
You can see wrong read words like :
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 writing the following:
>
> https://imgur.com/B5ScEWJ
>
>
>
> It
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
writing the following:
https://imgur.com/B5ScEWJ
It appeared in the PDF file as:
https://imgur.com/wFJ6itz
The letters appeared
InBytes);
}
You could also try to use incremental saving. But it is tricky (you need to set
a "breadcrumb trail" to your updated element(s)) and buggy (if there is a
signature and you don't sign yourself).
Tilman
Am 04.01.2018 um 08:26 schrieb Hesham Gneady:
>
n and owner key from the
PDEncryption object you get by calling document.getEncryption() 2) check that
revision is smaller then 5, and 3) call getUserPassword().
Tilman
Am 03.01.2018 um 09:29 schrieb Hesham Gneady:
> Hello,
>
>
>
> I have a PDF file that has an owner password &
--
Included Message:
You can't do that. The library is obviously not going to reveal to you what the
password was...
On Wed, Jan 3, 2018 at 9:29 AM, Hesham Gneady <heshamgne...@gmail.com>
wrote:
> Hello,
>
>
>
> I have a PDF file that has an owner password &
Hello,
I have a PDF file that has an owner password & user password. I'd like to
decrypt it using the owner password, make some modifications to it, then
encrypt it back and save it. I did the first part successfully, but how can
I encrypt it again using the same encryption settings it had,
example. There is a difference between 100
and 500. You can see the difference by looking at the scroll bar.
Tilman
Am 12.12.2017 um 10:50 schrieb Hesham Gneady:
> Hello ,
>
>
>
> I am trying to use PDPageXYZDestination to create an internal link
> that could
Hello ,
I am trying to use PDPageXYZDestination to create an internal link that
could move to a specific area in another page in the same PDF. Here is the
code I've tried:
List annotations = page1.getAnnotations();
PDPageXYZDestination dest = new PDPageXYZDestination();
dest.setPage(
A sentence could also end with a question mark, exclamation mark, ... Etc.
I think there will be many cases to handle.
I also wonder .. When reading text from the book using PDFTextStripper it
can read the new line characters, right ? TextPosition seems to be reading
the pdf text in a different
editor that shows me the bookmark destinations ... So when I showed
the
named destination for this bookmark, it was empty !
Some how it was not set at all. Is this the problem you are facing ?
Best regards ,
Hesham
--
Thanks ,
Hesham Gneady
Software Developer
Kevin ,
I have been investigating the Named destinations for bookmarks, and i
remembered your problem. Please try this example to get the names of the
destinations ... I hope it's right :
try {
PDNamedDestination pn = (PDNamedDestination)bookmark.getDestination(); //
The bookmark = A
38 matches
Mail list logo