Hello,
I can use PDFBox to extract text from an area :
http://kickjava.com/src/org/pdfbox/examples/util/ExtractTextByArea.java
I don't know if it is the desired behavior but it could be nice to mention
that the export area take all the content of original document (
Hi all,
I posted few days ago the same question in detail:
http://old.nabble.com/Registration-Black-tp16765868p26386868.html
I need to know how to define the stroke (ColorSpace and Color) for a
registration mark in iText so that it appears on all separated plates (CMYK
plus any Spot channel
If it is not supported already by iText, it would be quite simple to add to the
existing spot color/separation support.
Leonard
-Original Message-
From: George Bilalis [mailto:grg_b...@hotmail.com]
Sent: Thursday, November 19, 2009 9:42 AM
To: itext-questions@lists.sourceforge.net
Xavier Sudan wrote:
Hello,
I can use PDFBox to extract text from an area :
http://kickjava.com/src/org/pdfbox/examples/util/ExtractTextByArea.java
I don't know if it is the desired behavior but it could be nice to
mention that the export area take all the content of original document
Hi Mark,
I saw that you used the getMerged(0) method to retrieve the dictionary and
not the getValue(0).
I tried both in an example and got the same result.
So my question is, why you choose the first in favor over the second?
Yannis Iliadis
2009/11/19 ramachandran...@birlasoft.com
Thanks
Hi ,
Again a help is required.
I am reading the form fields from the PDF using Acrofields. I would like to
distinguish between Text and TextArea. I came to know that there is no such
thing as textArea its just text field with 'multiline' property set to true.
I would like to get the values of
Hi, the below gives the The original document was reused. Read it again
from file error because i am using both PdfEncryptor and PdfStamper
together (each on its own works fine). How should i do it please ? Do i need
to write to a temp file. How please ?
byte[] bb =
PdfReader
I check the iText in action book but do not find how to implement
this?
Olny toolbar, column, etc, things like this can be configured.
writer.setViewerPreferences(PdfWriter.PageModeUseOC |
PdfWriter.FitWindow);
I want to let the pdf reader(Internet explorer) to open the pdf file
with
No, it doesn't work. The HtmlWorker removes the nobr tag so it won't be
detected in the method IsSplitCharacter.
I have no idea how I can accomplish the task.
Philipp
1T3XT info wrote:
skuphi wrote:
Hi,
I have a string with html markup, which I process with the HtmlWorker to
get
Do anyone know about HTML table with picture as background and convert it to
PDF using IText?
I tried to convert the following line of HTML to PDF using IText, but the
background picture never appears:
td background='Images/kad mesra Statement
Assets/Pg01/km_statement_p1bar01.jpg'
Looking for
I've used the iText Java API to create a PDF with several images. Now
I'd like to write a unit test to verify my image placement logic. I
used Image.setAbsolutePosition to set the image when I initially
created the PDF. Now how do I get the position of that image when I
reopen the PDF? I
Hiyas
When I use a code like this:
Set fonts = FontFactory.getRegisteredFonts();
for (Object font : fonts) {
com.lowagie.text.Font fontInfo =
FontFactory.getFont(font.toString(), BaseFont.WINANSI,
BaseFont.NOT_EMBEDDED);
String familyname =
I'm using version 2.1.7, with IBM's JDK included in Rational Software
Developer, "java -version", says:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build
pwi32devifx-20080303 (SR6b + IZ15865))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows Vista x86-32
The PdfEncryptor.encrypt() method uses PdfStamper internally, and PdfStamper
tampers the PdfReader instance, so that it cannot be used by other objects ,
neither other PdfStampers.
If you only need to encrypt a document, I believe the PdfEncryptor class will
suffice.
Or you could only use the
I didn't look at your output files, but most likely that reduction is caused by
things such as the fonts no longer being embedded, image resolution being
reduced and the like. NOT the application of additional compression features.
When you throw things away - it's amazing how small you can
Parent fields can pass attributes down to their children, including /DA. The
merged dictionary contains all the current values, so I always use that when
I'm reading something.
For example: In a radio group, getValue(X) will return the parent of the radio
group for any valid X, while
That might be one way to focus the problem but, in such case, how can I
achive this kind of "compression" benefit programatically?
Atentamente,
Gonzalo Vsquez Sez
Gerente de Proyectos
Altiuz | Neox Desarrollo
Nueva Tajamar 555 Of. 802
Las Condes - Santiago
Fonos 56 (2) 335 2461 / 203 6200
liulei wrote:
I check the iText in action book but do not find how to implement
this?
See page 418. Use the two first code lines of the code sample.
Adapt the first parameters (page 1 instead of 2, Fit instead of XYZ).
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ -
Write the complex code necessary to do the same things that they are doing...
Its not a single API call - you will need to understand the nuances of the PDF
format and then write low level code to process each object of the file and do
whatever operations you feel are appropriate.
Or you can
Gonzalo Vásquez Sáez wrote:
That might be one way to focus the problem but, in such case, how can I
achive this kind of compression benefit programatically?
The link to the code sample you've sent doesn't work, and you're
trying to do something that should only be done by experts.
(The fact
I guess you could be right, the problem is that I'm getting extra huge
PDF files out of iText of what is supposed to be a small PDF file,
that's why I've just sent the multivalent API link, please see that
message.
Atentamente,
Gonzalo Vsquez Sez
Gerente de Proyectos
Altiuz | Neox
I have a document that prints both Hebrew and English on the same page
(sometimes even in the same cell). PdfPCell is working really well with one
exception -- punctuation marks, such as colons, periods, plus/minus signs
that are at the end or beginning of a string print on the wrong side of the
Dear iText
We have been using your conversion library as part of the deployment of
a Java web-based system (Pega BPM). During the conversion of some TIFF
files to PDF, we have found that if a TIFF file contains the same page
repeated twice or more, the conversion process fails. Is it possible
Tha Java API Multivalent (http://multivalent.sourceforge.net/
) is supposed to do what I need, but I haven't been able to find the
docs / JAVADOC withing their site, has anyone experimented with this
PDF Handling API (post generation via iText).
Atentamente,
Gonzalo Vsquez Sez
Gerente de
Gonzalo Vásquez Sáez wrote:
I guess you could be right, the problem is that I'm getting extra huge
PDF files out of iText
It's easy to create huge files with iText if you don't know what you're
doing.
Go to http://www.manning.com/affiliate/idevaffiliate.php?id=223_212 and
open chapter 2
Will Rayer,
Can you try following code its work.
Inside the For loop u can get all the time new RandomAccessFileOrArray its
works.
// Loop through all the pages in the TIFF file, convert each to
PDF.
for (int c = 0; c comps; ++c) {
try {
* **
Thanks
I'm going to read the topic you mentioned, but in out application it
may be a bit difficult (if not impossible) to know apriori, if
different pages will have repeated images, as the resulting pdf file is
a concatenation (via PdfCopy) of different documents, which sometimes
have
The punctuation mark is correct but it can look wrong if you don't fully
understand RTL, LTR and neutral chars. There's no magic way of knowing if
some text is RTL or LTR other that analysing each char and then deciding. A
way of doing it is to get the first non neutral char and set the text as
The problem that we have is exactly what is described in te article you
pointed me (as matter of fact, I've just also bought online iText in
Action, first edition, as waiting 6 months for the second edition won't
work for me right now).
So: we are having duplicate company logos on the header
Gents,
I use PdfStamper to flatten forms/free text and then typically perform other
operations using either PdfWriter or PdfCopy. This has been working fine
until recently when a customer complained that text fields in an AcroForm
were missing after flattening the form.
Upon investigating, I
Acrobat 9 Pro's PDF Syntax Check doesn't bat an eye. How very Odd. That
makes your get better tools argument that much more difficult.
--Mark Storer
Senior Software Engineer
Cardiff.com
#include disclaimer
typedef std::DisclaimerCardiff DisCard;
-Original Message-
From:
Problem solved using PdfSmartCopy instead of PdfCopy, thanks everybody
for your tips.
Atentamente,
Gonzalo Vsquez Sez
Gerente de Proyectos
Altiuz | Neox Desarrollo
Nueva Tajamar 555 Of. 802
Las Condes - Santiago
Fonos 56 (2) 335 2461 / 203 6200
IBM Certified Advanced
Hi,
I currently have code that checks whether a given PDF has embedded files:
...
PdfReader reader = new PdfReader(byteOutStream.toByteArray());
PdfDictionary names = (PdfDictionary)
PdfReader.getPdfObject(reader.getCatalog().get(PdfName.NAMES));
if (names != null) {
You should have a look at the PDF specification, available for free here:
http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf
Your questions are answered in section 12.7.4.3, pages 443 444.
--Mark Storer
Senior Software Engineer
Cardiff.com
#include disclaimer
typedef
Gonzalo Vásquez Sáez wrote:
as matter of fact, I've just also bought online iText in
Action, first edition, as waiting 6 months for the second edition won't
work for me right now
If you buy the 2nd edition now, you get:
- the first edition for free as an ebook (so in fact, you get two books
Simon, Peter wrote:
Now I had some bugs to fix with drawing Graphics2D.
Graphics2D means: java.awt classes.
To draw that graphics I create a PdfPTable with a PdfPCell.
PdfPTable and PdfPCell mean: com.lowagie classes.
These classes don't mix.
There's something wrong in your story.
I’m
36 matches
Mail list logo