Re: [iText-questions] Background PDF question

2010-05-31 Thread Harri T.
On 31.5.2010 9:05 1T3XT info wrote:
>
> As documented, that can be done with "page events". See chapter 5 of 
> the second edition of "iText in Action".

I have only the first edition, but I got the point and now the 
background is printed on every page. Thanks a lot!

Harri

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Extended Features don't work in ITextSharp

2010-05-31 Thread 1T3XT info
MarkWhite wrote:
> The code I used to reproduce the case is this, included in a c# project with
> reference to itextSharp:

Based on your code snippet, it's clear that you didn't read the 
documentation. You're describing exactly the problem that is explained 
in "8.6 Preserving the usage rights of reader enabled forms" (iText in 
Action - second edition). You'll find the solution to this problem in 
the same section.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Extended Features don't work in ITextSharp

2010-05-31 Thread MarkWhite

The code I used to reproduce the case is this, included in a c# project with
reference to itextSharp:

string pdfTemplate = @"D:\scheda.pdf";
string newFile = @"D:\scheda_2.pdf";

PdfReader pdfReader = new PdfReader(pdfTemplate);
PdfStamper pdfStamper = new PdfStamper(pdfReader, new
FileStream(newFile, FileMode.Create));
//PdfStamper pdfStamper = new PdfStamper(pdfReader, new
FileStream(pdfTemplate, FileMode.Open));
AcroFields pdfFormFields = pdfStamper.AcroFields;

pdfFormFields.SetField("nome
http://itext-general.2136553.n4.nabble.com/file/n2237575/scheda.pdf
scheda.pdf ", "Try with iTextSharp");

// flatten the form to remove editting options, set it to false
// to leave the form open to subsequent manual edits
pdfStamper.FormFlattening = false;

// close the pdf
pdfStamper.Close();

I also included the pdf of the try. The resulting pdf (scheda_2.pdf) is no
longer modificable.
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Extended-Features-don-t-work-in-ITextSharp-tp2237320p2237575.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread Leonard Rosenthol
And resolution in EXIF is _NOT_ considered authoritative - only the resolution 
in the native format.

Leonard

-Original Message-
From: Paulo Soares [mailto:psoa...@glintt.com] 
Sent: Monday, May 31, 2010 9:15 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] getDpiX, Y returns 0 or wrong value but 
WinExplorer and Acrobate get Dpi

The images store the resolution in the EXIF extension but iText only looks for 
the resolution in the place described by the jfif standard where it should be 
even if also present the the EXIF. 

Paulo

-Original Message-
From: dermoritz [mailto:tantea...@hotmail.com] 
Sent: Monday, May 31, 2010 12:54 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] getDpiX, Y returns 0 or wrong value but 
WinExplorer and Acrobate get Dpi


edit: i just checked some of the images here:
http://www.fileformat.info/convert/image/identify.htm (uses imageMagick)

for all images "Resolution: 240x240" is shown! 


Aviso Legal:

Esta mensagem ? destinada exclusivamente ao destinat?rio. Pode conter 
informa??o confidencial ou legalmente protegida. A incorrecta transmiss?o desta 
mensagem n?o significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. ? proibido a qualquer pessoa que n?o o destinat?rio de 
usar, revelar ou distribuir qualquer parte desta mensagem. 



Disclaimer:

This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.




--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Questions about iText before I make a commitment

2010-05-31 Thread jc
That is very good to know. We definitely do not want our app to become open
source, so I guess we need to look into purchasing options. That makes the
answers to my questions even more important, because I don't want to invest
in something that isn't going to do what we need, or that will be very
difficult to use.

Thanks, I'll check into it.

Jesse

-Original Message-
From: Hendricks, Kevin [mailto:khendri...@insurancetechnologies.com] 
Sent: Sunday, May 30, 2010 10:48 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Questions about iText before I make a
commitment

Jesse,

For a commercial application I would check with
"sa...@itextsoftware.com" before considering the software "Free".  It is
my understanding that the licensing for version 5.0 has changed and
support for version 3 and 4 will be discontinued at the end of the
summer.  There are varying degrees of licensing provided.

Quote from itextsoftware.com: 

" iTextSharp version 5.x is ONLY available under the open-source AGPL,
not MPL or LGPL.

At http://www.itextsoftware.com/downanddocs.shtml you have access to the
source code which within it descriobes AGPL. 

Equally goto wikipedia and read the AGPL, known as a copy-left license.

An application that includes an open-source AGPL also becomes
open-source.

Consult with your legal counsel."

Regards,

Kevin

-Original Message-
From: Jesse Castleberry [mailto:jes...@registermychapter.com] 
Sent: Saturday, May 29, 2010 6:33 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Questions about iText before I make a
commitment

Hello,
I have a few questions about iText before I make a commitment.  I
realize
the tool is free, and that is MUCH appreciated.  I am considering
getting
the pre-release book, however, so I can learn in greater detail how to
do
what I want to do.  Few questions:

1. If I get the book in pre-release form, as more is added, will I have
the
ability to download the updated version?

2. I also want to confirm that the ebook version of the book is in .PDF
format, right?

3. My primary need for using .PDF's in my web app (which are mostly
written
in VB.Net) is to print Name Badges, Labels, and Certificates.
Everything
else I can do with a regular report to the screen.  How complicated is
it to
print labels, for instance?  In the VB sample code I found online, there
were no examples of that sort of thing.

Thanks,
Jesse Castleberry
DLG Enterprises, inc.
(863) 965-7745





--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list:
http://1t3xt.info/tutorials/keywords/


--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/



--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Extended Features don't work in ITextSharp

2010-05-31 Thread 1T3XT info
MarkWhite wrote:
> I have heard that with Itext in
> Java this problem is not present and the document can be modified without
> problems... 

It IS a problem in JAVA too IF you don't follow the instructions 
explained in chapter 8 of "iText in Action - second edition".

Are you sure you're using iTextSharp correctly?
(Did you follow the instructions?)
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread dermoritz

in meantime i downloaded imageMagick's "identify.exe" and discovered the
following:

all images have a Resolution of 240x240. but the only image of the tested
group where iText shows correct resolution is a image WITHOUT an
exif:xresolution/exif:yresolution tag!

So all Programs show the resolution correctly (ImageMagick's identify i.e.
"Resolution: 300x300") including iText. But if there is an exif tag (with
exactly the same Resolution, output from imageMagick's identify:
"exif:ResolutionUnit: 2 exif:XResolution: 240/1 exif:YResolution: 240/1")
iText shows wrong Resolution 96dpi (no "96" found in identify.exe output for
this image) or 0 resolution.

I can hardly believe that i discovered a bug in iText so here is my code (i
am using slightly modified code from Toolbox tiff2pdf plugin):

"
private void addSingleImage(Image image, boolean originalSize){
if (image.getDpiX() > 0 && image.getDpiY() > 0) {
System.out.println(image.getDpiX());
System.out.println(image.getDpiY());
image.scalePercent(7200f / image.getDpiX(), 7200f / 
image.getDpiY());
}
else {
System.out.println(image.getDpiX());
System.out.println(image.getDpiY());
}
if (originalSize) {
pdf.setPageSize(new
Rectangle(image.getScaledWidth(),image.getScaledHeight()));
} else {
if (image.getScaledWidth() > PageSize.A4.getWidth() ||
image.getScaledHeight() > PageSize.A4.getHeight()) {
//0 wird zurückgegeben falls dpi-Auflösung nicht verfügbar
if (image.getDpiX() > 0 && image.getDpiY() > 0) 
{
float adjx = PageSize.A4.getWidth() /
image.getScaledWidth();
float adjy = PageSize.A4.getHeight() /
image.getScaledHeight();
float adj = Math.min(adjx, adjy);
image.scalePercent(7200f / image.getDpiX() * adj, 7200f
/ image.getDpiY() * adj);
}
else
image.scaleToFit(PageSize.A4.getWidth(),
PageSize.A4.getHeight());
}
pdf.setPageSize(PageSize.A4);
}
//image.scaleToFit(PageSize.A4.getWidth(), 
PageSize.A4.getHeight());
//pdf.setPageSize(image);
pdf.newPage();
try {
pdf.add(image);
} catch (DocumentException e) {
// sollte nicht passieren, da nur geworfen falls 
Dokument (pdf) nicht
geöffnet ("when a document isn't open yet, or has been closed").
throw new IllegalStateException(e);
}
}
"

-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/getDpiX-Y-returns-0-or-wrong-value-but-WinExplorer-and-Acrobate-get-Dpi-tp2237115p2237268.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Extended Features don't work in ITextSharp

2010-05-31 Thread Paulo Soares
As far as I know it works using the latest release. If it doesn't work for you 
show us what is needed to reproduce the case.

Paulo 

-Original Message-
From: MarkWhite [mailto:denis.n...@gmail.com] 
Sent: Monday, May 31, 2010 4:20 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Extended Features don't work in ITextSharp



Paulo Soares-3 wrote:
> 
> What "Extended Features" don't work in iTextSharp but work in Java?
> 
> Paulo 
> 
When You save a pdf with form that can be modified with ItextSharp, when
opening the pdf Acrobat Reader says "This document enabled extended features
in Adobe Reader. The document has been changed since it was created an use
of extended features in no longer available. Please contact the author for
the original version of this document." . I have heard that with Itext in
Java this problem is not present and the document can be modified without
problems... 
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Extended-Features-don-t-work-in-ITextSharp-tp2237320p2237510.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Extended Features don't work in ITextSharp

2010-05-31 Thread MarkWhite


Paulo Soares-3 wrote:
> 
> What "Extended Features" don't work in iTextSharp but work in Java?
> 
> Paulo 
> 
When You save a pdf with form that can be modified with ItextSharp, when
opening the pdf Acrobat Reader says "This document enabled extended features
in Adobe Reader. The document has been changed since it was created an use
of extended features in no longer available. Please contact the author for
the original version of this document." . I have heard that with Itext in
Java this problem is not present and the document can be modified without
problems... 
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Extended-Features-don-t-work-in-ITextSharp-tp2237320p2237510.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Custom view in a portable collection

2010-05-31 Thread 1T3XT info
Nguyen Minh Thang wrote:
> Looking at the source, I see that I can specify the initialView to 
> PdfName.C. But there is no way that I can embed a custom navigator to 
> the PDF.

You need to read the extensions to ISO-32000-1 (level 3) and create the 
necessary streams and dictionaries at the lowest level.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Extended Features don't work in ITextSharp

2010-05-31 Thread Paulo Soares
What "Extended Features" don't work in iTextSharp but work in Java?

Paulo 

-Original Message-
From: pippopanni [mailto:pippopa...@infinito.it] 
Sent: Monday, May 31, 2010 1:59 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Extended Features don't work in ITextSharp


Hei boys Extended Features don't work in ITextSharp implementation but work
in Java.
I am a very hard-working and i want complete this feature, help me to find
portion of code to modify.

Good Bye


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] Extended Features don't work in ITextSharp

2010-05-31 Thread pippopanni

Hei boys Extended Features don't work in ITextSharp implementation but work
in Java.
I am a very hard-working and i want complete this feature, help me to find
portion of code to modify.

Good Bye
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Extended-Features-don-t-work-in-ITextSharp-tp2237320p2237320.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Extended Features don't work in ITextSharp

2010-05-31 Thread MarkWhite


pippopanni wrote:
> 
> Hei boys Extended Features don't work in ITextSharp implementation but
> work in Java.
> I am a very hard-working and i want complete this feature, help me to find
> portion of code to modify.
> 
> Good Bye
> 
I also want to modify the code to make it work correctly. I Think the
solution is start from the function Close() of PdfStamper, but I'm not sure,
there are too many rows of code to watch, I hope the author will give Us the
point in the code to look at. 
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Extended-Features-don-t-work-in-ITextSharp-tp2237320p2237449.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread dermoritz

paulo i now tried irfan view's "image->information" and this seem to confirm
your info: the first page of the info seem to show jfif information. and in
case of the pictures where itext has problems this info is empty or shows
the "wrong info".
so iText shows jfif and only jfif and all other programms seem to show exif
and jfif as "resolution". 

i think i could handle this by parsing the exif data if no resolution info
is present via jfif. thx to you all for the fast and valuable replies
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/getDpiX-Y-returns-0-or-wrong-value-but-WinExplorer-and-Acrobate-get-Dpi-tp2237115p2237460.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread Paulo Soares
iText currently doesn't support EXIF tags. 

Paulo

-Original Message-
From: dermoritz [mailto:tantea...@hotmail.com] 
Sent: Monday, May 31, 2010 3:10 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] getDpiX, Y returns 0 or wrong value but 
WinExplorer and Acrobate get Dpi


thx for this info, wikipedia for jfif yields: "Resolution:... Exif images
recorded by digital cameras generally do not include this segment"

so i guess some Programs to Edit Exif data seem to write JFIF on saving the
images. or has itext problems with pictures including efif and jfif info (if
exif is first)? Where from all other programs got the Resolutioninfo? 

Is there any Program that shows jfif-infos? All Exif Editors i tried show
only Exif not jfif. 

Conclusion: Images from most digital cameras must be edited prior to be
handled via itext?



Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread dermoritz

thx for this info, wikipedia for jfif yields: "Resolution:... Exif images
recorded by digital cameras generally do not include this segment"

so i guess some Programs to Edit Exif data seem to write JFIF on saving the
images. or has itext problems with pictures including efif and jfif info (if
exif is first)? Where from all other programs got the Resolutioninfo? 

Is there any Program that shows jfif-infos? All Exif Editors i tried show
only Exif not jfif. 

Conclusion: Images from most digital cameras must be edited prior to be
handled via itext?


-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/getDpiX-Y-returns-0-or-wrong-value-but-WinExplorer-and-Acrobate-get-Dpi-tp2237115p2237422.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread dermoritz

to summerize the things a bit:

iText shows "0" or wrong Resolution for some Images. Other Tools like
ImageMagicks' identify -verbose, Acrobat, WinExplorer, ExifTool show all the
same Resolution (The Examples delivered show all 240dpi (x and y)).
Images where iText shows the correct solution don't have a EFIX:yresolution,
EFIX:xresolution tag. That could be reproduced by deleting this Tags from
images. (i used "Opanda PowerExif to "Remove Exif")

So where are "most" of all image-relating programs look for Resolution?
Where iText looks for Resolution?
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/getDpiX-Y-returns-0-or-wrong-value-but-WinExplorer-and-Acrobate-get-Dpi-tp2237115p2237406.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Question About manipulating PDFs

2010-05-31 Thread Paulo Soares
It's possible to call .NET from COM but it's not something that comes out of 
the box. You'll have to write a wrapper around iTextSharp to take care of the 
COM limitations, like a default constructor, for example.

Paulo 

-Original Message-
From: 1T3XT info [mailto:i...@1t3xt.info] 
Sent: Saturday, May 29, 2010 9:27 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Question About manipulating PDFs

j...@msdlg.com wrote:
> I've got a question about iText's ability to manipulate .PDF's. We have a
> customer who has about 60 .PDF's that they modify every year. We have to
> duplicate those in Excel in order to fill in certain cells with our
> application to print out (huge task).  It would be great if we could take
> these .PDF files and just add rotated text t them at certain positions.  Is
> it possible with iText's capabilities to:
> 
> 1. Turn text sideways? We have to print text rotated 90 degrees to fit into
> these cells.

If the existing PDF doesn't have to be changed,
then you can stamp extra content on each page using PdfStamper.
You can add extra text in any orientation (but it's stamped
on top of the existing content, the existing content doesn't
move; you can't "insert" a row or a line).

> 2. Place that rotated text at certain positions in the document. We have 10
> to 12 spaces that we need to fill in with numbers, and if we can tell it
> exactly where to place these, that would be exactly what we're looking for.

The best way to do this, would be to ask the supplier of the documents
to add text field annotations (AcroForm technology). You can easily do
that in Acrobat. iText can fetch the coordinates of those fields, fill
them out, and "flatten" the PDF.

> 3.  This one may be a stretch, but we have a Delphi 5 (Visual Pascal)
> application.  It can usually use Com Objects and .dll's, does anyone know if
> it'd be possible to use iText to do this sort of work in Delphi?

Delphi... It has been 10 years since I last heard of somebody using 
Delphi. I have no idea if you could use iText in a Delphi context.

Maybe another subscriber of the list can help you further.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread Paulo Soares
The images store the resolution in the EXIF extension but iText only looks for 
the resolution in the place described by the jfif standard where it should be 
even if also present the the EXIF. 

Paulo

-Original Message-
From: dermoritz [mailto:tantea...@hotmail.com] 
Sent: Monday, May 31, 2010 12:54 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] getDpiX, Y returns 0 or wrong value but 
WinExplorer and Acrobate get Dpi


edit: i just checked some of the images here:
http://www.fileformat.info/convert/image/identify.htm (uses imageMagick)

for all images "Resolution: 240x240" is shown! 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Questions about iText before I make a commitment

2010-05-31 Thread jc
Thank you for the information.  I've also learned that for commercial use we
need to purchase a license, otherwise, our application becomes open source,
which we do not want to do.  I have emailed sa...@itextsoftware.com to get
commercial pricing.  I will wait to determine which direction we go once I
get the pricing.

Thanks for your help.

Jesse

-Original Message-
From: 1T3XT info [mailto:i...@1t3xt.info] 
Sent: Sunday, May 30, 2010 3:08 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Questions about iText before I make a
commitment

Jesse Castleberry wrote:
> 1. If I get the book in pre-release form, as more is added, will I have
the
> ability to download the updated version?

Of course. Every time a new MEAP version is ready,
you get a mail with a download link.
Once the book is finished, you get the official release
(on paper and/or eBook).

> 2. I also want to confirm that the ebook version of the book is in .PDF
> format, right?

It's PDF. What else? ;-)

> 3. My primary need for using .PDF's in my web app (which are mostly
written
> in VB.Net) is to print Name Badges, Labels, and Certificates.  Everything
> else I can do with a regular report to the screen.  How complicated is it
to
> print labels, for instance?  In the VB sample code I found online, there
> were no examples of that sort of thing.

I think you'll find the book valuable enough.
There is no "literal" example "how to print labels",
but you'll find a plethora of examples that offer different
alternatives that allow you to make the best choice for your app.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info


--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/



--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread Mike Marchywka










> Date: Mon, 31 May 2010 04:53:45 -0700
> From: tantea...@hotmail.com
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] getDpiX, Y returns 0 or wrong value but 
> WinExplorer and Acrobate get Dpi
>
>
> edit: i just checked some of the images here:
> http://www.fileformat.info/convert/image/identify.htm (uses imageMagick)
>
> for all images "Resolution: 240x240" is shown!

I never hit "info" links but you may need to run with "-verbose" to get
all the metadata detailed. This is resolution ( as in DPI) and not pixel 
dimension?


> --
> View this message in context: 
> http://itext-general.2136553.n4.nabble.com/getDpiX-Y-returns-0-or-wrong-value-but-WinExplorer-and-Acrobate-get-Dpi-tp2237115p2237219.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
> --
>
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.itextpdf.com/book/
> Check the site with examples before you ask questions: 
> http://www.1t3xt.info/examples/
> You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread Mike Marchywka











> Date: Mon, 31 May 2010 04:44:47 -0700
> From: tantea...@hotmail.com
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] getDpiX, Y returns 0 or wrong value but 
> WinExplorer and Acrobate get Dpi
>
>
> thx, but to look for myself for "correct" meta-data is no option. in this

LOL

> case i have to decide what is the "correct" resolution or what is the most
> credible place to look for resolution.
> the only thing i know is that iText don't shows the "correct" resolution
> (but probably looking at correct place for it) and many other programs
> showing the "correct" resolution (probably looking at "well known places").
>
> can anyone tell me where iText looks for dpi? and does anybody know where
> all those other programs look for it? - i think all programs only look in
> one place?!

Generally you want to get the most direct or definitive result
you can. Getting bunch of "IIRC" usually just leads to more problems.
It may be a simple matter to just look with a command line tool rather
than getting human input that may or may not help. 

So ok you find out that itext looks in place A and product
B looks in place C then what? Usually it is just easier if you want
to say " itext doesn't work" to have some specific case under 
which it appears to fail. if you could run identify on the bad images
that may help and the answer may even be evident ( " itext forgot
to divide by blah"). IF the people you are asking don't know
the answer they will need to do all this anyway. 




> --
> View this message in context: 
> http://itext-general.2136553.n4.nabble.com/getDpiX-Y-returns-0-or-wrong-value-but-WinExplorer-and-Acrobate-get-Dpi-tp2237115p2237210.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
> --
>
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.itextpdf.com/book/
> Check the site with examples before you ask questions: 
> http://www.1t3xt.info/examples/
> You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
  
_
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread dermoritz

edit: i just checked some of the images here:
http://www.fileformat.info/convert/image/identify.htm (uses imageMagick)

for all images "Resolution: 240x240" is shown! 
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/getDpiX-Y-returns-0-or-wrong-value-but-WinExplorer-and-Acrobate-get-Dpi-tp2237115p2237219.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread dermoritz

thx, but to look for myself for "correct" meta-data is no option. in this
case i have to decide what is the "correct" resolution or what is the most
credible  place to look for resolution. 
the only thing i know is that iText don't shows the "correct" resolution
(but probably looking at correct place for it) and many other programs
showing the "correct" resolution (probably looking at "well known places").

can anyone tell me where iText looks for dpi? and does anybody know where
all those other programs look for it? - i think all programs only look in
one place?!
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/getDpiX-Y-returns-0-or-wrong-value-but-WinExplorer-and-Acrobate-get-Dpi-tp2237115p2237210.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread Mike Marchywka








> From: psoa...@glintt.com
> To: itext-questions@lists.sourceforge.net
> Date: Mon, 31 May 2010 11:21:30 +0100
> Subject: Re: [iText-questions] getDpiX, Y returns 0 or wrong value but 
> WinExplorer and Acrobate get Dpi
>
> Why do you think iText is wrong? Post the images for inspection.
>
> Paulo
>
> -Original Message-
> From: dermoritz [mailto:tantea...@hotmail.com]
> Sent: Monday, May 31, 2010 11:17 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] getDpiX, Y returns 0 or wrong value but 
> WinExplorer and Acrobate get Dpi
>
>
> i have some Problems with image.getDpiX/Y (iText 5.0.2) on some Images. This
> Images come from different digital camaras and WinExplorer shows for all of
> the 240dpi. I rotated one of them 90° via the WindowsXP build in image
> viewer. For this rotated image getDpi returns 96dpi! But still WinExplorer
> an Acrobat and MS-Office Picture Manager show 240dpi for all Images.
>
> So why iText cant't get correct dpi from them?

You could probably get something like imagemagick and use identify to
dump the metadata for the images that work and those that don't. I don't 
know formats well enough to know what is posible but looking at stuff I have
from various phnes/cameras, it seems there is a resolution entry but also 
something
called "Exif" thta contains more res info. I guess it is possible that some 
images only
have it in a non standard but well known location.


>
>
> Aviso Legal:
> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
> informação confidencial ou legalmente protegida. A incorrecta transmissão 
> desta mensagem não significa a perca de confidencialidade. Se esta mensagem 
> for recebida por engano, por favor envie-a de volta para o remetente e 
> apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o 
> destinatário de usar, revelar ou distribuir qualquer parte desta mensagem.
>
> Disclaimer:
> This message is destined exclusively to the intended receiver. It may contain 
> confidential or legally protected information. The incorrect transmission of 
> this message does not mean the loss of its confidentiality. If this message 
> is received by mistake, please send it back to the sender and delete it from 
> your system immediately. It is forbidden to any person who is not the 
> intended receiver to use, distribute or copy any part of this message.
>
> --
>
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.itextpdf.com/book/
> Check the site with examples before you ask questions: 
> http://www.1t3xt.info/examples/
> You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
  
_
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread dermoritz

if iText is right WinExplorer, Acrobat and MSOffice Picture Manager must be
wrong. http://itext-general.2136553.n4.nabble.com/file/n2237144/image.7z
image.7z 

i uploaded a 7z file containing 3 images (hope you can acces it). For two of
the getDpi returns 0 and for on 96dpi is returned.
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/getDpiX-Y-returns-0-or-wrong-value-but-WinExplorer-and-Acrobate-get-Dpi-tp2237115p2237144.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] iText Sharp

2010-05-31 Thread Paulo Soares
The examples will also be provided in C#. See 
http://kuujinbo.info/iTextInAction2Ed/index.aspx.

Paulo


From: Robert Alexander [mailto:robert.alexan...@btconnect.com]
Sent: Sunday, May 30, 2010 10:51 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] iText Sharp

I have just downloaded iText Sharp second edition, and found all the examples 
are in java.

Is there an equivalent book for C-Sharp?

Are the any examples in C-Sharp

I look forward to hearing from you

Robert P Alexander


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread Paulo Soares
Why do you think iText is wrong? Post the images for inspection.

Paulo

-Original Message-
From: dermoritz [mailto:tantea...@hotmail.com] 
Sent: Monday, May 31, 2010 11:17 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer 
and Acrobate get Dpi


i have some Problems with image.getDpiX/Y (iText 5.0.2) on some Images. This
Images come from different digital camaras and WinExplorer shows for all of
the 240dpi. I rotated one of them 90° via the WindowsXP build in image
viewer. For this rotated image getDpi returns 96dpi! But still WinExplorer
an Acrobat and MS-Office Picture Manager show 240dpi for all Images.

So why iText cant't get correct dpi from them? 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] getDpiX, Y returns 0 or wrong value but WinExplorer and Acrobate get Dpi

2010-05-31 Thread dermoritz

i have some Problems with image.getDpiX/Y (iText 5.0.2) on some Images. This
Images come from different digital camaras and WinExplorer shows for all of
the 240dpi. I rotated one of them 90° via the WindowsXP build in image
viewer. For this rotated image getDpi returns 96dpi! But still WinExplorer
an Acrobat and MS-Office Picture Manager show 240dpi for all Images.

So why iText cant't get correct dpi from them? 
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/getDpiX-Y-returns-0-or-wrong-value-but-WinExplorer-and-Acrobate-get-Dpi-tp2237115p2237115.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] Custom view in a portable collection

2010-05-31 Thread Nguyen Minh Thang
Hi all, 
I've just found that since iText 5.02, custom view in a portable collection
is supported. But I can't find any document show me how to do this.
Looking at the source, I see that I can specify the initialView to
PdfName.C. But there is no way that I can embed a custom navigator to the
PDF.
Please help.

Thank you.
Thang.


--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] iText Read Chuncks of PDF into java

2010-05-31 Thread crimeunit

Dear 1T3XT info,

I wanna thank you very mutch for helping me out with this problem.
Sometimes the solution is closer then you think (but can be very annoying to
find it)

Thanks!
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-Read-Chuncks-of-PDF-into-java-tp2219554p2237056.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] iText Read Chuncks of PDF into java

2010-05-31 Thread 1T3XT info
crimeunit wrote:
> in mijn debugging-output window krijg ik de respectievelijke (rood
> omcirkelde) resultaten van mijn keys.
> Ik neem aan dat deze 2 refereren naar de m1-toc.pdf en m2-toc.pdf?

OK, for English subscribers:

Getting the annotations for a page with subtype Link, two annotations 
are found. The annotation dictionary has the following keys:

/Subtype => /Link
/C => value is an array defining a color
/Border => value is an array defining the border
/Rect => value is an array defining a rectangle: the position
/A => THE ACTION OF THE LINK ANNOTATION

What you need is the action dictionary (as already  suggested by 
Cameron). You need to look at section 12.6.2 of ISO-32000.

Based on your description, I think you have two Remote Go-To actions.
If you do: PdfDictionary action = annot.getAsDict(PdfName.A);
You'll find a dictionary with the following key-value pairs:

/S => /GoToR
/F => the filename you're looking for
/D => a destination in that file

In other words: you're very close to finding what you need.
You only need to add the line that gets the "action" from the "annot"
and inspect the /F key.

> Ik hoop dat u met deze reply me beter kan begrijpen?

Not for other subscribers who don't understand Dutch,
but it was much clearer for me.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] iText Read Chuncks of PDF into java

2010-05-31 Thread crimeunit

Beste 1T3XT info,

ik heb geprobeerd met jou input betreffende het nemen van de link annots van
de PageDirectory


http://itext-general.2136553.n4.nabble.com/file/n2236950/iText_getLinkAnnotsOfPageDictionary.jpg
 


in mijn debugging-output window krijg ik de respectievelijke (rood
omcirkelde) resultaten van mijn keys.
Ik neem aan dat deze 2 refereren naar de m1-toc.pdf en m2-toc.pdf?

deze 2 *.pdf links in de "ctd-toc.pdf" file zijn clickable en openen de
content onmiddelijk in diezelfde acrobat reader.

ipv eeb resultaat als dit 'annot[/C, /Border, /Subtype, /A, /Rect]', kan ik
niet gewoon de naam m1-toc.pdf & de link er ergens uit filteren? (zoja, weet
u eventueel ook hoe ik dit in code kan doen)?
(Ik heb al gezocht op alle mogelijke plaatsen van attributen tijdens
debugging, maar deze link en naam krijg nergens gevonden.)

noot: link is de m1 folder en daarin de pdf-file 'm1-toc.pdf'  [zoals in
bovenstaand screen (wel met PDFOne library) 'analyse_-_PDFOneJava.jpg'
getoond wordt ])

Ik hoop dat u met deze reply me beter kan begrijpen?

Alvast bedankt voor jullie support!
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-Read-Chuncks-of-PDF-into-java-tp2219554p2236950.html
Sent from the iText - General mailing list archive at Nabble.com.

--

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/