Re: [iText-questions] iText help resources?

2016-01-14 Thread mkl
Steve,

Steve Garcia wrote
> Am trying to pull table data out of PDF files that contain non tabular
> text as well as the tables.  I've successfully parsed the non tabled text
> using PdfTextExtractor.GetTextFromPage(), but the resulting text stream is
> empty at each table location.

The text in the tables cannot be extracted without OCR.

The text in the tables is drawn using type 3 fonts with an ad-hoc encoding,
i.e. the first glyph drawn on the page is encoded as 0, the second
(differing) glyph as 1, ...

E.g. on page 11 the first text drawn is "B6 Summary (Official Form 6 -
Summary) (12/14)" and is encoded as 00, 01, 02, 03, 04, 05, 05, 06, 07, 08,
02, 09, 0A, 0B, 0B, 0C, 0D, 0C, 06, 0E, 02, 0F, ...

Furthermore the font has not mapping to Unicode.

Thus, automated text extraction without some kind of OCR is impossible.

Regards,   Michael



--
View this message in context: 
http://itext.2136553.n4.nabble.com/iText-help-resources-tp4660980p4660981.html
Sent from the iText mailing list archive at Nabble.com.

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] Itext-questions-request

2015-08-03 Thread Deepak Thorat
Hi,

Please add me to itext question forum.
My mail id: deepak.4...@gmail.com

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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] iText question about PdfTable

2015-05-19 Thread Haddy, Diane E
Hello

I am very new to iText and still in the learning mode.  I have downloaded 
itextpdf - 5.5.6 jar file in eclipse.  I have the iText api library too to 
reference too.

My question is this:

When I try to instantiate the PdfTable like below

PdfTable table = new PdfTable(3);

I receive an error stating there is not a constructor  ofnew 
PdfTable()

Can someone tell me how to get a reference to this object?

Thank you,
Diane

Diane Haddy
Application Developer
Health Care Information Systems
Phone  (319) 384-9725

[cid:image001.png@01D09222.F04DD380]

University of Iowa Hospitals  Clinics, S363-CDD
200 Hawkins Drive, Iowa City, IA  52242




Notice: This UI Health Care e-mail (including attachments) is covered by the 
Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and 
may be legally privileged.  If you are not the intended recipient, you are 
hereby notified that any retention, dissemination, distribution, or copying of 
this communication is strictly prohibited.  Please reply to the sender that you 
have received the message in error, then delete it.  Thank you.

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText question about PdfTable

2015-05-19 Thread Nicolas Conde
http://java-white-box.blogspot.com.ar/2014/03/itext-pdfptable-como-agregar-una-tabla.html
plz view this

On Tue, May 19, 2015 at 12:59 PM, Haddy, Diane E diane-ha...@uiowa.edu
wrote:

  Hello



 I am very new to iText and still in the learning mode.  I have downloaded
 itextpdf – 5.5.6 jar file in eclipse.  I have the iText api library too to
 reference too.



 My question is this:



 When I try to instantiate the PdfTable like below



 PdfTable table = new PdfTable(3);



 I receive an error stating there is not a constructor  ofnew
 PdfTable()



 Can someone tell me how to get a reference to this object?



 Thank you,

 Diane



 *Diane Haddy*

 *Application Developer*

 *Health Care Information Systems*

 *Phone  (319) 384-9725*





 *University of Iowa Hospitals  Clinics, S363-CDD*

 *200 Hawkins Drive, Iowa City, IA  52242*




 --
 Notice: This UI Health Care e-mail (including attachments) is covered by
 the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is
 confidential and may be legally privileged.  If you are not the intended
 recipient, you are hereby notified that any retention, dissemination,
 distribution, or copying of this communication is strictly prohibited.
 Please reply to the sender that you have received the message in error,
 then delete it.  Thank you.
 --


 --
 One dashboard for servers and applications across Physical-Virtual-Cloud
 Widest out-of-the-box monitoring support with 50+ applications
 Performance metrics, stats and reports that give you Actionable Insights
 Deep dive visibility with transaction tracing using APM Insight.
 http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples:
 http://itextpdf.com/themes/keywords.php

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Itext : do not know how to remove watermark (filigrane)

2015-01-20 Thread iText mailing list

You sound like you know more about the nature of the watermark.
Please share that information with us.
For instance:
- is the watermark added as an annotation or as content that is part of 
the content stream?
- if it's part of the content stream, is it part of the same content 
stream as the rest of the content, or is it part of a separate content 
stream.
- if it's a separate content stream, is there any way to detect that the 
separate content stream contains a watermark?
- is the watermark marked as a watermark, e.g. using Marked Content 
operators?


Without the answer to these counter-questions, there is NO WAY any one 
can answer your question. You may even be trying to do something that is 
impossible, e.g. if there is no way for a machine to distinguish the 
watermark from other content.


Please note that this mailing-list is about to be closed down.

You should either post your question on StackOverflow, or post it to the 
issue tracker at iText Software. The latter option is only available for 
iText customers.


On 1/20/2015 15:12 PM, Prevost, Sylvain wrote:


Hello,

This is my code (in VB.Net), using unprotect password process, but I 
do not know really how to do to remove the watermark and then save my 
file …


Please help….

Annots id Nothing … Which is the property to use ? CONTENTS seems not 
working also…


The PDF has been generated with Acrobat Std. The watermark is added as 
a Gif.


PrivateSub Remove_Password_PDF(ByVal F_FullName As String, ByVal 
F_Name As String, ByVal Dir_Out As String)


Dim myFile As String

Dim subrep As String

Dim NewDir As String

Dim password As String = xx

Dim i, j As Integer

Dim nb_pages As Integer

subrep = Get_Dir_File(F_Name)

NewDir = Path.Combine(Dir_Out, subrep)

If Directory.Exists(NewDir) Then

'Ne rien Faire

Else

Directory.CreateDirectory(NewDir)

End If

myFile = Path.Combine(Dir_Out, subrep, F_Name)

Dim pdf_reader As New PdfReader(F_FullName, New 
System.Text.ASCIIEncoding().GetBytes(password))


nb_pages = pdf_reader.NumberOfPages

Dim page As PdfDictionary

Dim annot As PdfDictionary

Dim annots As PdfArray

Dim content As PdfString

DimRcontent As PdfStream

For i = 1 To nb_pages

page = pdf_reader.GetPageN(i)

annots = page.GetAsArray(PdfName.ANNOTS)

If annots IsNot Nothing Then

‘Code to add here to remove WaterMark which is the overlayer

End If

Next

Dim pdf_stamper As New PdfStamper(pdf_reader, New FileStream(myFile, 
System.IO.FileMode.Create))


pdf_reader.Close()

pdf_stamper.Close()

EndSub




Recipharm Legal Notice:

The information transmitted may contain confidential material and
is intended only for the person or entity to which it is
addressed. Any review, retransmission, dissemination or other
use of, or taking of any action by persons or entities other than
the intended recipient is prohibited. If you are not the
intended recipient, please delete the information from your
system and contact the sender.


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Itext : do not know how to remove watermark (filigrane)

2015-01-20 Thread Prevost, Sylvain
Hello,

Thanks for your answer.

I've found  
My watermark is named Watermark (added under Acrobat)

This is my code working.

Dim myFile As String
Dim subrep As String
Dim NewDir As String
Dim password As String = scandoc

Dim i, j As Integer
Dim nb_pages As Integer

Dim dict As New Dictionary(Of String, PdfLayer)()


subrep = Get_Dir_File(F_Name)
NewDir = Path.Combine(Dir_Out, subrep)
If Directory.Exists(NewDir) Then
'Ne rien Faire
Else
Directory.CreateDirectory(NewDir)

End If

myFile = Path.Combine(Dir_Out, subrep, F_Name)

Dim pdf_reader As New PdfReader(F_FullName, New 
System.Text.ASCIIEncoding().GetBytes(password))
Dim pdf_stamper As New PdfStamper(pdf_reader, New FileStream(myFile, 
System.IO.FileMode.Create))

nb_pages = pdf_reader.NumberOfPages

Dim page As PdfDictionary
Dim annot As PdfLayer



For i = 1 To nb_pages
page = pdf_reader.GetPageN(i)

dict = pdf_stamper.GetPdfLayers

If dict.Count = 1 Then
' watermark is here...
If dict.ContainsKey(Watermark) Then
annot = dict(Watermark)
annot.On = False
End If
End If
Next

pdf_reader.Close()
pdf_stamper.Close()



Thanks !!!



De : iText mailing list [mailto:i...@1t3xt.info]
Envoyé : mardi 20 janvier 2015 15:37
À : Post all your questions about iText here
Objet : Re: [iText-questions] Itext : do not know how to remove watermark 
(filigrane)

You sound like you know more about the nature of the watermark.
Please share that information with us.
For instance:
- is the watermark added as an annotation or as content that is part of the 
content stream?
- if it's part of the content stream, is it part of the same content stream as 
the rest of the content, or is it part of a separate content stream.
- if it's a separate content stream, is there any way to detect that the 
separate content stream contains a watermark?
- is the watermark marked as a watermark, e.g. using Marked Content operators?

Without the answer to these counter-questions, there is NO WAY any one can 
answer your question. You may even be trying to do something that is 
impossible, e.g. if there is no way for a machine to distinguish the watermark 
from other content.

Please note that this mailing-list is about to be closed down.

You should either post your question on StackOverflow, or post it to the issue 
tracker at iText Software. The latter option is only available for iText 
customers.

On 1/20/2015 15:12 PM, Prevost, Sylvain wrote:
Hello,

This is my code (in VB.Net), using unprotect password process, but I do not 
know really how to do to remove the watermark and then save my file ...
Please help

Annots id Nothing ... Which is the property to use ? CONTENTS seems not working 
also...

The PDF has been generated with Acrobat Std. The watermark is added as a Gif.


Private Sub Remove_Password_PDF(ByVal F_FullName As String, ByVal F_Name As 
String, ByVal Dir_Out As String)
Dim myFile As String
Dim subrep As String
Dim NewDir As String
Dim password As String = xx

Dim i, j As Integer
Dim nb_pages As Integer

subrep = Get_Dir_File(F_Name)
NewDir = Path.Combine(Dir_Out, subrep)
If Directory.Exists(NewDir) Then
'Ne rien Faire
Else
Directory.CreateDirectory(NewDir)

End If

myFile = Path.Combine(Dir_Out, subrep, F_Name)

Dim pdf_reader As New PdfReader(F_FullName, New 
System.Text.ASCIIEncoding().GetBytes(password))

nb_pages = pdf_reader.NumberOfPages

Dim page As PdfDictionary
Dim annot As PdfDictionary
Dim annots As PdfArray
Dim content As PdfString
Dim Rcontent As PdfStream

For i = 1 To nb_pages
page = pdf_reader.GetPageN(i)
annots = page.GetAsArray(PdfName.ANNOTS)

If annots IsNot Nothing Then

'Code to add here to remove WaterMark which is the overlayer

End If

Next








Dim pdf_stamper As New PdfStamper(pdf_reader, New FileStream(myFile, 
System.IO.FileMode.Create))

pdf_reader.Close()
pdf_stamper.Close()


End Sub




Recipharm Legal Notice:

The information transmitted may contain confidential material and
is intended only for the person or entity to which it is
addressed. Any review, retransmission, dissemination or other
use of, or taking of any action by persons or entities other than
the intended recipient is prohibited. If you are not the
intended recipient, please delete the information from your
system and contact the sender

[iText-questions] Itext : do not know how to remove watermark (filigrane)

2015-01-20 Thread Prevost, Sylvain
Hello,

This is my code (in VB.Net), using unprotect password process, but I do not 
know really how to do to remove the watermark and then save my file ...
Please help

Annots id Nothing ... Which is the property to use ? CONTENTS seems not working 
also...

The PDF has been generated with Acrobat Std. The watermark is added as a Gif.


Private Sub Remove_Password_PDF(ByVal F_FullName As String, ByVal F_Name As 
String, ByVal Dir_Out As String)
Dim myFile As String
Dim subrep As String
Dim NewDir As String
Dim password As String = xx

Dim i, j As Integer
Dim nb_pages As Integer

subrep = Get_Dir_File(F_Name)
NewDir = Path.Combine(Dir_Out, subrep)
If Directory.Exists(NewDir) Then
'Ne rien Faire
Else
Directory.CreateDirectory(NewDir)

End If

myFile = Path.Combine(Dir_Out, subrep, F_Name)

Dim pdf_reader As New PdfReader(F_FullName, New 
System.Text.ASCIIEncoding().GetBytes(password))

nb_pages = pdf_reader.NumberOfPages

Dim page As PdfDictionary
Dim annot As PdfDictionary
Dim annots As PdfArray
Dim content As PdfString
Dim Rcontent As PdfStream

For i = 1 To nb_pages
page = pdf_reader.GetPageN(i)
annots = page.GetAsArray(PdfName.ANNOTS)

If annots IsNot Nothing Then

'Code to add here to remove WaterMark which is the overlayer

End If

Next








Dim pdf_stamper As New PdfStamper(pdf_reader, New FileStream(myFile, 
System.IO.FileMode.Create))

pdf_reader.Close()
pdf_stamper.Close()


End Sub




Recipharm Legal Notice:

The information transmitted may contain confidential material and
is intended only for the person or entity to which it is
addressed. Any review, retransmission, dissemination or other
use of, or taking of any action by persons or entities other than
the intended recipient is prohibited. If you are not the
intended recipient, please delete the information from your
system and contact the sender.
--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] itext in C?

2014-10-31 Thread CARMEN GARCIA BLANCO
Hello to all,

I have to convert some tiff files to pdf ones and I've been given the itext
to work with. The first idea is to program a batch in java to do so, but as
I already have one in C that generate the tiff files, I was wandering if I
could use the itext tool to do the conversion without adding the Java batch
to the system (it's a quite old one and there are only C batchs here). And
when I say C I mean just C, not C++ nor C#..  :|

Thanks!

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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] itext in C?

2014-10-31 Thread Michaël Demey
It might be easier to use a C library or a command line tool than to try 
and shoehorn a Java/.NET library into a non-Java/non-.NET environment.

A quick google search returned this stackoverflow question:
- 
http://stackoverflow.com/questions/58730/open-source-pdf-library-for-c-c-application


Kind regards,
Michaël.

CARMEN GARCIA BLANCO schreef op 31/10/2014 om 9:09:
 Hello to all,

 I have to convert some tiff files to pdf ones and I've been given the
 itext to work with. The first idea is to program a batch in java to do
 so, but as I already have one in C that generate the tiff files, I was
 wandering if I could use the itext tool to do the conversion without
 adding the Java batch to the system (it's a quite old one and there are
 only C batchs here). And when I say C I mean just C, not C++ nor C#..  :|

 Thanks!

 Carmen





 --



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

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php



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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] itext in C?

2014-10-31 Thread CARMEN GARCIA BLANCO
Thanks a lot, Michaël. I'll have a look there.


2014-10-31 10:13 GMT+01:00 Michaël Demey michael.de...@itextpdf.com:

 It might be easier to use a C library or a command line tool than to try
 and shoehorn a Java/.NET library into a non-Java/non-.NET environment.

 A quick google search returned this stackoverflow question:
 -

 http://stackoverflow.com/questions/58730/open-source-pdf-library-for-c-c-application


 Kind regards,
 Michaël.

 CARMEN GARCIA BLANCO schreef op 31/10/2014 om 9:09:
  Hello to all,
 
  I have to convert some tiff files to pdf ones and I've been given the
  itext to work with. The first idea is to program a batch in java to do
  so, but as I already have one in C that generate the tiff files, I was
  wandering if I could use the itext tool to do the conversion without
  adding the Java batch to the system (it's a quite old one and there are
  only C batchs here). And when I say C I mean just C, not C++ nor C#..  :|
 
  Thanks!
 
  Carmen
 
 
 
 
 
 
 --
 
 
 
  ___
  iText-questions mailing list
  iText-questions@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/itext-questions
 
  iText(R) is a registered trademark of 1T3XT BVBA.
  Many questions posted to this list can (and will) be answered with a
 reference to the iText book: http://www.itextpdf.com/book/
  Please check the keywords list before you ask for examples:
 http://itextpdf.com/themes/keywords.php
 



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

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples:
 http://itextpdf.com/themes/keywords.php

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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] itext in C?

2014-10-31 Thread Andreas Kuehne
Hi Michaël, hi Carmen,

I saw some good results with IKVMC
(http://www.ikvm.net/userguide/ikvmc.html) when using a java lib in the
context of an Exchange server! Despite my expectations it worked like a
charm.But I used my own Java code, not the iText lib.

Anyway, if you try please share some feedback.

Greetings,

Andreas
 It might be easier to use a C library or a command line tool than to try 
 and shoehorn a Java/.NET library into a non-Java/non-.NET environment.

 A quick google search returned this stackoverflow question:
 - 
 http://stackoverflow.com/questions/58730/open-source-pdf-library-for-c-c-application


 Kind regards,
 Michaël.

 CARMEN GARCIA BLANCO schreef op 31/10/2014 om 9:09:
 Hello to all,

 I have to convert some tiff files to pdf ones and I've been given the
 itext to work with. The first idea is to program a batch in java to do
 so, but as I already have one in C that generate the tiff files, I was
 wandering if I could use the itext tool to do the conversion without
 adding the Java batch to the system (it's a quite old one and there are
 only C batchs here). And when I say C I mean just C, not C++ nor C#..  :|

 Thanks!

 Carmen





 --



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

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php


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

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php



-- 
Andreas Kühne 
phone: +49 177 293 24 97 
mailto: kue...@trustable.de

Trustable Ltd. Niederlassung Deutschland Ströverstr. 18 - 59427 Unna 
Amtsgericht Hamm HRB 5868

Directors Andreas Kühne, Heiko Veit

Company UK Company No: 5218868 Registered in England and Wales 


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] iText returning Unicode characters

2014-10-30 Thread Adesh Nayak
Hi Team,

Need some help. I was using below code (C#) to read some text from a PDF
file. I am looking to read a numeric value from the PDF which is rendered
in English, but when I use below code, it returns some Unicode characters
to me. Please let me know how to fix these kind of issues. I am using iText
for the first time today.

StringBuilder text = new StringBuilder();

text.Append(PdfTextExtractor.GetTextFromPage(reader, 3));


Thanks,

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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText returning Unicode characters

2014-10-30 Thread iText mailing list

IMPORTANT: you are not subscribed to the mailing-list.
As a result, all mail you send to the mailing-list has to be accepted 
manually.
Many genuine questions get lost in that process, because they are buried 
in SPAM.


If you post further questions without being subscribed, DON'T BE 
SURPRISED IF NOBODY ANSWERS. Chances are that your mail got lost.


This being said: your question can't be answered without seeing the PDF.

If you can't share that PDF, please watch this video: 
https://www.youtube.com/watch?v=wxGEEv7ibHE
Maybe you can use RUPS to examine if one of the problems explained in 
the video applies to your PDF.


Also: the quality of the output largely depends on the version of 
iText(Sharp). The more recent the version, the more accurate the output.


On 10/29/2014 23:04 PM, Adesh Nayak wrote:

Hi Team,

Need some help. I was using below code (C#) to read some text from a 
PDF file. I am looking to read a numeric value from the PDF which is 
rendered in English, but when I use below code, it returns some 
Unicode characters to me. Please let me know how to fix these kind of 
issues. I am using iText for the first time today.


StringBuildertext = newStringBuilder();

text.Append(PdfTextExtractor.GetTextFromPage(reader, 3));


Thanks,

Adesh



--


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText prepend named destinations? (open with exact coordinates page)

2014-10-28 Thread Leonard Rosenthol
Of course - that's one key use of iText, to modify PDFs dynamically.

Adding named destinations should be very fast, because the data can just be 
appended to the end of the document as part of an update section.  However, it 
is NOT necessary to load the entire PDF to add new stuff.

Also, it is not possible to prepend in PDF - only append.

Leonard

From: Feng Qing [mailto:fengqing...@yahoo.com]
Sent: Tuesday, October 28, 2014 1:45 AM
To: Leonard Rosenthol; Post all your questions about iText here; iText mailing 
list
Subject: iText prepend named destinations? (open with exact coordinates  page)

Can I use iText to add such named destinations on the fly?

The main concern is

  1.  can iText, or PDFBox or other tools capable of adding names destinations?
  2.  what is the speed of iText's opening-modify-save the PDF? This is a 
question analogous to the concept of linearized PDF which enables fast 
viewing for web browsers by organizing page information to more front of the 
document stream. If I would like to add named destinations to a PDF with iText, 
can they be prepended before actually fully loading the entire document, using 
C#/Java operations like simply appending something to the existing file at the 
front, without even loading the entire one; or we must loading the entire 
content first and then add the named destinations?


Feng

On Tuesday, October 28, 2014 3:23 AM, Leonard Rosenthol 
lrose...@adobe.commailto:lrose...@adobe.com wrote:

No, there is not.

If you have a PDF where you need this level of viewing control, preparing it in 
advanced with named destinations is the best approach.

Or perhaps if you tell us what you end goal is we might be able to help.

From: Feng Qing fengqing...@yahoo.commailto:fengqing...@yahoo.com
Reply-To: Feng Qing fengqing...@yahoo.commailto:fengqing...@yahoo.com
Date: Monday, October 27, 2014 at 2:08 PM
To: Leonard Rosenthol lrose...@adobe.commailto:lrose...@adobe.com, Post 
here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net,
 iText mailing list i...@1t3xt.infomailto:i...@1t3xt.info
Subject: Re: [iText-questions] Link to specific coordinates within PDF?

No directly ways of doing that, like appending
http://...example.pdf#page=1xCoord=200yCoord=300http://...example.pdf/#page=1xCoord=200yCoord=300
 ?

On Monday, October 27, 2014 11:40 PM, Leonard Rosenthol 
lrose...@adobe.commailto:lrose...@adobe.com wrote:

Yes, if you prepare the PDF first, you can use named destinations.

From: Feng Qing fengqing...@yahoo.commailto:fengqing...@yahoo.com
Reply-To: Feng Qing fengqing...@yahoo.commailto:fengqing...@yahoo.com, Post 
here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Monday, October 27, 2014 at 11:22 AM
To: iText mailing list i...@1t3xt.infomailto:i...@1t3xt.info, Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Link to specific coordinates within PDF?

Hello,

Thanks very much!

However, although there are
{

page number
specific comment
view
zoom level

}

parameters that can be embedded in URL, there is no option to exactly specify 
the coordinate location associated with opening a specific page.

Can that actually be done?


Feng



On Monday, October 27, 2014 5:29 PM, iText mailing list 
i...@1t3xt.infomailto:i...@1t3xt.info wrote:

On 10/26/2014 21:53 PM, Feng Qing wrote:
Hello,

As http://helpx.adobe.com/acrobat/kb/link- html -pdf-page-acrobat. 
htmlhttp://helpx.adobe.com/acrobat/kb/link-html-pdf-page-acrobat.html%5D 
shown, to add html link to specific page in a PDF document one writes

http://www.example.com/myfile.pdf#page=4;http://www.example.com/myfile.pdf#page=4
However if further we would like to link to specific coordinate within the PDF 
file, like (300, 500), is there a link scheme to achieve that?


Please take a look at the following document for more info:
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf

You are looking for the view parameter.




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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText prepend named destinations? (open with exact coordinates page)

2014-10-28 Thread Feng Qing
Dear Leonard,

Thanks very much!

Feng



On Tuesday, October 28, 2014 8:34 PM, Leonard Rosenthol lrose...@adobe.com 
wrote:
 


Of course – that’s one key use of iText, to modify PDFs dynamically.
 
Adding named destinations should be very fast, because the data can just be 
appended to the end of the document as part of an update section.  However, it 
is NOT necessary to load the entire PDF to add new stuff.
 
Also, it is not possible to prepend in PDF – only append.
 
Leonard
 
From:Feng Qing [mailto:fengqing...@yahoo.com] 
Sent: Tuesday, October 28, 2014 1:45 AM
To: Leonard Rosenthol; Post all your questions about iText here; iText mailing 
list
Subject: iText prepend named destinations? (open with exact coordinates  page)
 
Can I use iText to add such named destinations on the fly? 
 
The main concern is 
1. can iText, or PDFBox or other tools capable of adding names 
destinations?
2. what is the speed of iText's opening-modify-save the PDF? This is a 
question analogous to the concept of linearized PDF which enables fast 
viewing for web browsers by organizing page information to more front of the 
document stream. If I would like to add named destinations to a PDF with iText, 
can they be prepended before actually fully loading the entire document, using 
C#/Java operations like simply appending something to the existing file at the 
front, without even loading the entire one; or we must loading the entire 
content first and then add the named destinations?
 
 
Feng
 
On Tuesday, October 28, 2014 3:23 AM, Leonard Rosenthol lrose...@adobe.com 
wrote:
 
No, there is not.  
 
If you have a PDF where you need this level of viewing control, preparing it in 
advanced with named destinations is the best approach.
 
Or perhaps if you tell us what you end goal is we might be able to help.
 
From: Feng Qing fengqing...@yahoo.com
Reply-To: Feng Qing fengqing...@yahoo.com
Date: Monday, October 27, 2014 at 2:08 PM
To: Leonard Rosenthol lrose...@adobe.com, Post here 
itext-questions@lists.sourceforge.net, iText mailing list i...@1t3xt.info
Subject: Re: [iText-questions] Link to specific coordinates within PDF?
 
No directly ways of doing that, like appending 
http://...example.pdf#page=1xCoord=200yCoord=300 ?
 
On Monday, October 27, 2014 11:40 PM, Leonard Rosenthol lrose...@adobe.com 
wrote:
 
Yes, if you prepare the PDF first, you can use named destinations.
 
From: Feng Qing fengqing...@yahoo.com
Reply-To: Feng Qing fengqing...@yahoo.com, Post here 
itext-questions@lists.sourceforge.net
Date: Monday, October 27, 2014 at 11:22 AM
To: iText mailing list i...@1t3xt.info, Post here 
itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Link to specific coordinates within PDF?
 
Hello,

Thanks very much!

However, although there are 
{


page number
specific comment
view
zoom level


}

parameters that can be embedded in URL, there is no option to exactly specify 
the coordinate location associated with opening a specific page.

Can that actually be done?


Feng



 
On Monday, October 27, 2014 5:29 PM, iText mailing list i...@1t3xt.info wrote:
 
On 10/26/2014 21:53 PM, Feng Qing wrote:
Hello,
 
As http://helpx.adobe.com/acrobat/kb/link- html -pdf-page-acrobat. html shown, 
to add html link to specific page in a PDF document one writes
http://www.example.com/myfile.pdf#page=4;
However if further we would like to link to specific coordinate within the PDF 
file, like (300, 500), is there a link scheme to achieve that?
 

Please take a look at the following document for more info:
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf

You are looking for the view parameter. --
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText prepend named destinations? (open with exact coordinates page)

2014-10-28 Thread Feng Qing
Dear Leonard,

Thanks very much!

Feng



On Tuesday, October 28, 2014 8:34 PM, Leonard Rosenthol lrose...@adobe.com 
wrote:
 


Of course – that’s one key use of iText, to modify PDFs dynamically.
 
Adding named destinations should be very fast, because the data can just be 
appended to the end of the document as part of an update section.  However, it 
is NOT necessary to load the entire PDF to add new stuff.
 
Also, it is not possible to prepend in PDF – only append.
 
Leonard
 
From:Feng Qing [mailto:fengqing...@yahoo.com] 
Sent: Tuesday, October 28, 2014 1:45 AM
To: Leonard Rosenthol; Post all your questions about iText here; iText mailing 
list
Subject: iText prepend named destinations? (open with exact coordinates  page)
 
Can I use iText to add such named destinations on the fly? 
 
The main concern is 
1. can iText, or PDFBox or other tools capable of adding names 
destinations?
2. what is the speed of iText's opening-modify-save the PDF? This is a 
question analogous to the concept of linearized PDF which enables fast 
viewing for web browsers by organizing page information to more front of the 
document stream. If I would like to add named destinations to a PDF with iText, 
can they be prepended before actually fully loading the entire document, using 
C#/Java operations like simply appending something to the existing file at the 
front, without even loading the entire one; or we must loading the entire 
content first and then add the named destinations?
 
 
Feng
 
On Tuesday, October 28, 2014 3:23 AM, Leonard Rosenthol lrose...@adobe.com 
wrote:
 
No, there is not.  
 
If you have a PDF where you need this level of viewing control, preparing it in 
advanced with named destinations is the best approach.
 
Or perhaps if you tell us what you end goal is we might be able to help.
 
From: Feng Qing fengqing...@yahoo.com
Reply-To: Feng Qing fengqing...@yahoo.com
Date: Monday, October 27, 2014 at 2:08 PM
To: Leonard Rosenthol lrose...@adobe.com, Post here 
itext-questions@lists.sourceforge.net, iText mailing list i...@1t3xt.info
Subject: Re: [iText-questions] Link to specific coordinates within PDF?
 
No directly ways of doing that, like appending 
http://...example.pdf#page=1xCoord=200yCoord=300 ?
 
On Monday, October 27, 2014 11:40 PM, Leonard Rosenthol lrose...@adobe.com 
wrote:
 
Yes, if you prepare the PDF first, you can use named destinations.
 
From: Feng Qing fengqing...@yahoo.com
Reply-To: Feng Qing fengqing...@yahoo.com, Post here 
itext-questions@lists.sourceforge.net
Date: Monday, October 27, 2014 at 11:22 AM
To: iText mailing list i...@1t3xt.info, Post here 
itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Link to specific coordinates within PDF?
 
Hello,

Thanks very much!

However, although there are 
{


page number
specific comment
view
zoom level


}

parameters that can be embedded in URL, there is no option to exactly specify 
the coordinate location associated with opening a specific page.

Can that actually be done?


Feng



 
On Monday, October 27, 2014 5:29 PM, iText mailing list i...@1t3xt.info wrote:
 
On 10/26/2014 21:53 PM, Feng Qing wrote:
Hello,
 
As http://helpx.adobe.com/acrobat/kb/link- html -pdf-page-acrobat. html shown, 
to add html link to specific page in a PDF document one writes
http://www.example.com/myfile.pdf#page=4;
However if further we would like to link to specific coordinate within the PDF 
file, like (300, 500), is there a link scheme to achieve that?
 

Please take a look at the following document for more info:
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf

You are looking for the view parameter. --
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] iText prepend named destinations? (open with exact coordinates page)

2014-10-27 Thread Feng Qing
Can I use iText to add such named destinations on the fly? 

The main concern is 
1. can iText, or PDFBox or other tools capable of adding names 
destinations?

2. what is the speed of iText's opening-modify-save the PDF? This is a 
question analogous to the concept of linearized PDF which enables fast 
viewing for web browsers by organizing page information to more front of the 
document stream. If I would like to add named destinations to a PDF with iText, 
can they be prepended before actually fully loading the entire document, using 
C#/Java operations like simply appending something to the existing file at the 
front, without even loading the entire one; or we must loading the entire 
content first and then add the named destinations?


Feng



On Tuesday, October 28, 2014 3:23 AM, Leonard Rosenthol lrose...@adobe.com 
wrote:
 


No, there is not.  

If you have a PDF where you need this level of viewing control, preparing it in 
advanced with named destinations is the best approach.

Or perhaps if you tell us what you end goal is we might be able to help.

From: Feng Qing fengqing...@yahoo.com
Reply-To: Feng Qing fengqing...@yahoo.com
Date: Monday, October 27, 2014 at 2:08 PM
To: Leonard Rosenthol lrose...@adobe.com, Post here 
itext-questions@lists.sourceforge.net, iText mailing list i...@1t3xt.info
Subject: Re: [iText-questions] Link to specific coordinates within PDF?


No directly ways of doing that, like appending 

http://...example.pdf#page=1xCoord=200yCoord=300 ?



On Monday, October 27, 2014 11:40 PM, Leonard Rosenthol lrose...@adobe.com 
wrote:



Yes, if you prepare the PDF first, you can use named destinations.
 
From: Feng Qing fengqing...@yahoo.com
Reply-To: Feng Qing fengqing...@yahoo.com, Post here 
itext-questions@lists.sourceforge.net
Date: Monday, October 27, 2014 at 11:22 AM
To: iText mailing list i...@1t3xt.info, Post here 
itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Link to specific coordinates within PDF?


Hello,

Thanks very much!

However, although there are 
{
 
page number
specific comment
view
zoom level
}

parameters that can be embedded in URL, there is no option to exactly specify 
the coordinate location associated with opening a specific page.

Can that actually be done?


Feng




On Monday, October 27, 2014 5:29 PM, iText mailing list i...@1t3xt.info wrote:



On 10/26/2014 21:53 PM, Feng Qing wrote:

Hello,


As http://helpx.adobe.com/acrobat/kb/link- html -pdf-page-acrobat. html shown, 
to add html link to specific page in a PDF document one writes
http://www.example.com/myfile.pdf#page=4;
However if further we would like to link to specific coordinate within the PDF 
file, like (300, 500), is there a link scheme to achieve that?

Please take a look at the following document for more info:
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf

You are looking for the view parameter. --
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] iText isn't outputting working jpegs

2014-10-08 Thread Ben
As it stands i've a section of code which writes to the SD card. It writes 
.jpegs, and it is giving them all variable kb sizes like you'd expect from a 
pdf full of images. However, when I select them on the tablet it's 'Unable to 
open photo', and when I open them on my computer it doesn't allow it either so 
there's obviously some level of corruption that i'm missing.I've also tested 
the image.length and that seems to be working too in terms of outputting many 
different byte sizes.If anyone could point me in the right direction atleast as 
to what i'm doing wrong i'd be greatful. By the way, i've tried a few things 
with bitmap factory to try and make it work such as re-opening the file with 
bitmap factory hoping that for some reason it might fix it. It didn't. Thanks 
very much for your time.
try {
InputStream is = this.getAssets().open(iText-40.pdf);
PdfReader reader = new PdfReader(is);
for (int i = 0; i  reader.getXrefSize(); i++) {
PdfObject pdfobj = reader.getPdfObject(i);
if (pdfobj != null  pdfobj.isStream()) {
PdfStream stream = (PdfStream) pdfobj;
PdfObject pdfsubtype = stream.get(PdfName.SUBTYPE);
if (pdfsubtype != null
 pdfsubtype.toString().equals(
PdfName.IMAGE.toString())) {
byte[] image = PdfReader
.getStreamBytesRaw((PRStream) stream);
FileOutputStream out = new FileOutputStream(new 
File(file.getParentFile(), i + .jpeg));
Bitmap bitmap = BitmapFactory.decodeByteArray(image, 0, 
image.length);
System.out.println(image.length);

out.write(image);
out.flush();
out.close();

}
}
}

} catch (IOException e2) {
System.out.println(e2);
e2.printStackTrace();
} --
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2014-08-27 Thread Abedellatif Hussein
Hello,
In PDF/A using the CreateXmpMetadata(), will only convert the standard
document metadata to XMP. What is the best way to add all (Dublin Core) DC
metadata to XMP metadata to PDF/A? 

Thanks,
Abedellatif



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Itext-5-4-1-Metadata-Bug-tp4658360p4660284.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2014-08-25 Thread Abedellatif Hussein
Hello,
where can I find example usage of the iTextsharp.xmp package?
also I know that for PDF/A the CreateXmpMetadata(); will create the xmp
metadata from the document metadata. will Adding custom metadata using
addheader(tag1,value1) be added also to the xmp metadata when using the
CreateXmpMetadata()?

Thanks,
Abedellatif



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Itext-5-4-1-Metadata-Bug-tp4658360p4660270.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2014-08-25 Thread iText mailing list
On 8/25/2014 6:05 PM, Abedellatif Hussein wrote:
 where can I find example usage of the iTextsharp.xmp package?

In the iTextSharp project.
http://sourceforge.net/p/itextsharp/code/HEAD/tree/trunk/src/core/iTextSharp/xmp/

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2014-08-21 Thread iText mailing list
On 8/20/2014 8:57 PM, Abedellatif Hussein wrote:
 Hello,
 I am having the same validation error issue when generating PDF/A files. Did
 you have any solution or workaround for it?
Have you tried upgrading to 5.5.1?

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2014-08-21 Thread Abedellatif Hussein
Hello, Thanks for the suggestion, I upgraded to iTextShar v5.5.2.0 and the
issue with PDF/A validation is fixed. I encountered many deprecated methods
when manually adding xmp, such as AddRdfDescription(),
what can be an alternative for that in the new library? or is there a place
where we can find the alternatives for the obsolete methods and classes?

Thanks,
Abedellatif



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Itext-5-4-1-Metadata-Bug-tp4658360p4660260.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2014-08-21 Thread iText mailing list
On 8/21/2014 11:12 AM, Abedellatif Hussein wrote:
 what can be an alternative for that in the new library? or is there a place
 where we can find the alternatives for the obsolete methods and classes?
The old iText XMP classes were replaced with classes provided by Adobe.
You can find these classes in the com.itextpdf.xmp.* packages in iText 
or in iTextSharp.xmp in iTextSharp.

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2014-08-20 Thread Abedellatif Hussein
Hello,
I am having the same validation error issue when generating PDF/A files. Did
you have any solution or workaround for it?

Thanks,
Abedellatif



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Itext-5-4-1-Metadata-Bug-tp4658360p4660258.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext can't detect a link

2014-08-14 Thread iText mailing list
On 8/14/2014 12:10 AM, minsu wrote:
 In the file i just uploaded, on page 48, there are 3 links there, but when i
 use itext to parse it, it only gives me 2. Is there any thing wrong with the
 third link?

You refer to a file management-basics.pdf but the link to that file 
doesn't work.

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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] Itext can't detect a link

2014-08-13 Thread minsu
Hi all,

In the file i just uploaded, on page 48, there are 3 links there, but when i
use itext to parse it, it only gives me 2. Is there any thing wrong with the
third link?

Thanks,

management-basics.pdf
http://itext-general.2136553.n4.nabble.com/file/n4660237/management-basics.pdf
  



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Itext-can-t-detect-a-link-tp4660237.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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText 5 - Draw a table with table border , But No borders inside the table

2014-08-01 Thread Nishant Bulchandani
Thanks Eduard. That helps.
I had found a simple solution for the above use case - emebdding a table
with no borders into a table with single cell.
But , I had other customizations which could not be done by above solution
but can be easily done with the way you described :).

Regards,
Nishant


On Sun, Jul 27, 2014 at 3:40 PM, Eduard Drenth eduarddre...@gmail.com
wrote:

 You could use pdfptableevent.

 In my own iText based library I have this:


 http://www.vectorprint.nl/userContent/reporttarget/site/apidocs/com/vectorprint/report/itext/style/ZebraStripes.html


 https://java.net/projects/vectorprintreport/sources/subversion/content/trunk/src/main/java/com/vectorprint/report/itext/style/ZebraStripes.java?rev=596

 It has a method you can override, for example:

 protected void paintRow(int row, Rectangle rect, PdfContentByte[]
 canvases, boolean last, boolean first) {
 if (last) {
 // set left, bottom, right border
 } else if (first) {
 // set left, top, right border
 } else {
 // set left, right border
 }
 canvases[PdfPTable.BACKGROUNDCANVAS].rectangle(rect);
 }

 suc6

 On 27-07-14 11:13, Nishant Bulchandani wrote:
  Hi iText Users,
 
  I want to render tables which have a border outside them , but none
 inside.
 
  I know I can use PDFPCell.setBorder to disable borders of all cells
  inside table , but I want a border outside the whole table as well. Any
  way in iText to do so? I don't see any such method in the API.
 
  Adding to directContent might be possible, but it would create
  complications when table stretches against pages..suggestions?
 
 
  Regards,
 
  Nishant
 
 
 
 
 --
  Want fast and easy access to all the code in your enterprise? Index and
  search up to 200,000 lines of code with a free copy of Black Duck
  Code Sight - the same software that powers the world's largest code
  search on Ohloh, the Black Duck Open Hub! Try it now.
  http://p.sf.net/sfu/bds
 
 
 
  ___
  iText-questions mailing list
  iText-questions@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/itext-questions
 
  iText(R) is a registered trademark of 1T3XT BVBA.
  Many questions posted to this list can (and will) be answered with a
 reference to the iText book: http://www.itextpdf.com/book/
  Please check the keywords list before you ask for examples:
 http://itextpdf.com/themes/keywords.php
 


 --
 Want fast and easy access to all the code in your enterprise? Index and
 search up to 200,000 lines of code with a free copy of Black Duck
 Code Sight - the same software that powers the world's largest code
 search on Ohloh, the Black Duck Open Hub! Try it now.
 http://p.sf.net/sfu/bds
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples:
 http://itextpdf.com/themes/keywords.php

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] iText 5 - Draw a table with table border , But No borders inside the table

2014-07-27 Thread Nishant Bulchandani
Hi iText Users,

I want to render tables which have a border outside them , but none inside.

I know I can use PDFPCell.setBorder to disable borders of all cells inside
table , but I want a border outside the whole table as well. Any way in
iText to do so? I don't see any such method in the API.

Adding to directContent might be possible, but it would create
complications when table stretches against pages..suggestions?


Regards,

Nishant
--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText 5 - Draw a table with table border , But No borders inside the table

2014-07-27 Thread Eduard Drenth
You could use pdfptableevent.

In my own iText based library I have this:

http://www.vectorprint.nl/userContent/reporttarget/site/apidocs/com/vectorprint/report/itext/style/ZebraStripes.html

https://java.net/projects/vectorprintreport/sources/subversion/content/trunk/src/main/java/com/vectorprint/report/itext/style/ZebraStripes.java?rev=596

It has a method you can override, for example:

protected void paintRow(int row, Rectangle rect, PdfContentByte[]
canvases, boolean last, boolean first) {
if (last) {
// set left, bottom, right border
} else if (first) {
// set left, top, right border
} else {
// set left, right border
}
canvases[PdfPTable.BACKGROUNDCANVAS].rectangle(rect);
}

suc6

On 27-07-14 11:13, Nishant Bulchandani wrote:
 Hi iText Users,
 
 I want to render tables which have a border outside them , but none inside.
 
 I know I can use PDFPCell.setBorder to disable borders of all cells
 inside table , but I want a border outside the whole table as well. Any
 way in iText to do so? I don't see any such method in the API.
 
 Adding to directContent might be possible, but it would create
 complications when table stretches against pages..suggestions?
 
 
 Regards,
 
 Nishant
 
 
 
 --
 Want fast and easy access to all the code in your enterprise? Index and
 search up to 200,000 lines of code with a free copy of Black Duck
 Code Sight - the same software that powers the world's largest code
 search on Ohloh, the Black Duck Open Hub! Try it now.
 http://p.sf.net/sfu/bds
 
 
 
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php
 

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] itext with dynamic headers

2014-07-07 Thread Randy E. Hoover
Your reply: 
If you're referring to the event class and the onEndPage() you've written, then 
the solution is simple: add member-variables to your PdfPageEvent 
implementation, add getters and setters and use the setters to keep the current 
state of the header/footer.

I still fail to see how this is an iText question as opposed to being a general 
programming question.

Because of the nature of how the PDF is streamed the setters/getters have to be 
accessed after the table is built and then the setter does not have access to 
the original value ... 

I am calling the event when the CreatePDF method is called and looping thru 
each day (setting the member variable in foreach loop) ... the EndOfPage event 
is called during creation of PDF from stream after CreatePDF ... hence the only 
stored value in the setter is the last day (Saturday) ... do you understand now 
why it is an itextsharp question? I know how to use set/get but because of the 
way itext streams after creating tables it does not know what to place in the 
page header except the last day set? Right? If not please show example ... 

Randy Hoover
ran...@projectcadd.org
www.projectcadd.org
cel: 619.228.6348
fax: 619.589.2233


-Original Message-
From: iText mailing list [mailto:i...@1t3xt.info] 
Sent: Sunday, July 06, 2014 10:45 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] itext with dynamic headers

On 7/7/2014 7:43 AM, iText mailing list wrote:
 On 7/6/2014 4:57 PM, Randy E. Hoover wrote:
 and i tried onEndPage - i cant get the data i need passed up to the 
 FTNs

 What are the FTNs? I've never heard of that abbreviation. 

If you're referring to the event class and the onEndPage() you've written, then 
the solution is simple: add member-variables to your PdfPageEvent 
implementation, add getters and setters and use the setters to keep the current 
state of the header/footer.

I still fail to see how this is an iText question as opposed to being a general 
programming question.

--
Open source business process management suite built on Java and Eclipse Turn 
processes into business applications with Bonita BPM Community Edition Quickly 
connect people, data, and systems into organized workflows Winner of BOSSIE, 
CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/ Please check the keywords list 
before you ask for examples: http://itextpdf.com/themes/keywords.php

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] itext with dynamic headers

2014-07-06 Thread iText mailing list
On 7/6/2014 4:57 PM, Randy E. Hoover wrote:
 and i tried onEndPage - i cant get the data i need passed up to the FTNs

What are the FTNs? I've never heard of that abbreviation.

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] itext with dynamic headers

2014-07-06 Thread iText mailing list
On 7/7/2014 7:43 AM, iText mailing list wrote:
 On 7/6/2014 4:57 PM, Randy E. Hoover wrote:
 and i tried onEndPage - i cant get the data i need passed up to the FTNs

 What are the FTNs? I've never heard of that abbreviation. 

If you're referring to the event class and the onEndPage() you've 
written, then the solution is simple: add member-variables to your 
PdfPageEvent implementation, add getters and setters and use the setters 
to keep the current state of the header/footer.

I still fail to see how this is an iText question as opposed to being a 
general programming question.

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] itext create pdf issue with corrupted image

2014-06-24 Thread iText Info
Jayachandrareddy V schreef op 24/06/2014 12:54:

 *Caused by: com.lowagie.text.DocumentException*

You are using an obsolete version of iText.
It is our policy not to answer questions about iText versions that are 5 
years old.
See also http://itextpdf.com/salesfaq

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] iText 5.5.1 has been released

2014-05-20 Thread iText mailing list

Hello all,

yesterday, we've released iText 5.5.1; today we released iTextSharp 5.5.1.
The Central Maven Repository is being updated as we speak.

For more info about this release, please take a look at the
- release notes: http://itextpdf.com/release/iText551
- changelog: http://itextpdf.com/changelog/551

We value your feedback. Help us Improve iText by taking a short survey:
https://www.surveymonkey.com/s/iText-community

best regards,
iText Software
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText-questions Digest, Vol 96, Issue 2

2014-05-05 Thread pedram khoshdani
How to stop receiving these emails?
--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
#149; 3 signs your SCM is hindering your productivity
#149; Requirements for releasing software faster
#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText-questions Digest, Vol 96, Issue 2

2014-05-05 Thread iText Info
pedram khoshdani schreef op 5/05/2014 17:24:
 How to stop receiving these emails?

By unsubscribing.

1. Go to https://lists.sourceforge.net/lists/listinfo/itext-questions
2. Scroll down,
3. Fill out your mail address,
4. Hit the Unsubscribe or edit options button.

--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
#149; 3 signs your SCM is hindering your productivity
#149; Requirements for releasing software faster
#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] itext not displaying image from db

2014-04-14 Thread aaa
i am getting html which contains images form the database. the images was
inserted into the database with the html into 1 meduimText column not in a
separate table. so here is an example snippet, (the  in the second image
source is not there in the real html)



so the pdf is including the first image but not the second image, now i
understand this is happening because i need to include absolute path, but i
have no idea how to get the absolute path for that image.



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/itext-not-displaying-image-from-db-tp4659937.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] iText Asian Query

2014-04-09 Thread Lata Choudhary
Hi,
I am trying to understand the licencing part of iText-2.1.7,

As I know this is free version and I want to integrate with iTextAsian.jar
to support multiple language. Could you please suggest whether
iTextAsian.jar is also comes under same licence like iText-2.1.7 ?

Thanks,
Lata Choudhary
--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText Asian Query

2014-04-09 Thread TvT
As Bruno has written here:
http://itext-general.2136553.n4.nabble.com/Asian-font-not-recognized-after-update-td2991134.html

In the old iTextAsian.jar there are directories com/lowagie/text/pdf/fonts
In the new iTextAsian.jar there are directories com/itextpdf/text/pdf/fonts
The new iTextAsian.jar won't work for the old iText, and vice versa.

Thus you need to use the com.lowagie version. You'll find the license in
the jar file: iTextAsian.jar\com\lowagie\text\pdf\fonts\cmap_info.txt



2014-04-09 9:28 GMT+02:00 Lata Choudhary lata.choudhar...@gmail.com:

 Hi,
 I am trying to understand the licencing part of iText-2.1.7,

 As I know this is free version and I want to integrate with iTextAsian.jar
 to support multiple language. Could you please suggest whether
 iTextAsian.jar is also comes under same licence like iText-2.1.7 ?

 Thanks,
 Lata Choudhary


 --
 Put Bad Developers to Shame
 Dominate Development with Jenkins Continuous Integration
 Continuously Automate Build, Test  Deployment
 Start a new project now. Try Jenkins in the cloud.
 http://p.sf.net/sfu/13600_Cloudbees
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples:
 http://itextpdf.com/themes/keywords.php

--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText Asian Query

2014-04-09 Thread iText mailing list
On 4/9/2014 3:28 AM, Lata Choudhary wrote:
 I am trying to understand the licencing part of iText-2.1.7
All is explained on this page: http://itextpdf.com/salesfaq

--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText - create PDF/A Problem

2014-02-28 Thread TvT
@Gabriella
Bruno thinks that you violate the AGPL license and use iText in a
commercial setting without paying/buying a commercial license - thats why
you don't get anymore help.
I don't take sides however if you do so (and Bruno has some inside info on
your project/company/your customer) buy a license. If you fully comply with
the AGPL license there is no reason for you to get forced to buy a license
and I would strongly reject those unfounded allegations. Alternativly you
may try to ask your questions at stackoverflow in future...

So what's the problem with your code? (the bug in iText will probably be in
the next iText release, can't help you with that)

Read_PDF_To_Watermark.close();
stamp.close();

You are closeing the reader before the stamper. That is wrong. If you
delete that line it will probably work (can't test it right now).
The reader is implicitly closed when closing the stamper so there is no
need to close it explicitely. If you really want to make sure (e.g. a
different exeption is thrown before) you can add the following lines at the
end:

catch (Exception i1) {
   i1.printStackTrace();
}
finally{
   if(Read_PDF_To_Watermark!=null){
  Read_PDF_To_Watermark.close();
   }
}

Of course you have to define a PdfReader Read_PDF_To_Watermark=null; out
of the try/catch block for that...


2014-02-27 19:40 GMT+01:00 iText mailing list i...@1t3xt.info:

 On 2/27/2014 5:55 PM, Gabriella wrote:
  I already have iText 5
 Yes, but are you a customer?


 --
 Flow-based real-time traffic analytics software. Cisco certified tool.
 Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
 Customize your own dashboards, set traffic alerts and generate reports.
 Network behavioral analysis  security monitoring. All-in-one tool.

 http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples:
 http://itextpdf.com/themes/keywords.php

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis  security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText - create PDF/A Problem

2014-02-27 Thread Gabriella
Hi, 
this is the code:
public static void main(String[] args) {   

   try {   



PdfReader Read_PDF_To_Watermark = new
PdfReader(C:/SampleA.pdf);

int number_of_pages = 
Read_PDF_To_Watermark.getNumberOfPages();



PdfAStamper stamp = new PdfAStamper(Read_PDF_To_Watermark, 
new
FileOutputStream(C:/SampleAWM.pdf),PdfAConformanceLevel.PDF_A_1A);



int i = 0;

Image watermark_image = 
Image.getInstance(C:/watermark.png);

watermark_image.setAbsolutePosition(200, 400);

PdfContentByte add_watermark;

while (i  number_of_pages) {

  i++;

  add_watermark = stamp.getUnderContent(i);

  add_watermark.addImage(watermark_image);

}
Read_PDF_To_Watermark.close();
stamp.close();

}

catch (Exception i1) {

i1.printStackTrace();

}

}



I have attached the PDF/A  and the watermark:

SampleA.pdf
http://itext-general.2136553.n4.nabble.com/file/n4659796/SampleA.pdf  
watermark.PNG
http://itext-general.2136553.n4.nabble.com/file/n4659796/watermark.PNG  



when run this code
stamp.close();
there is this Exception:

java.io.IOException: RandomAccessSource not opened
at
com.itextpdf.text.io.MappedChannelRandomAccessSource.get(MappedChannelRandomAccessSource.java:141)
at
com.itextpdf.text.io.FileChannelRandomAccessSource.get(FileChannelRandomAccessSource.java:97)
at
com.itextpdf.text.io.GetBufferedRandomAccessSource.get(GetBufferedRandomAccessSource.java:91)
at
com.itextpdf.text.io.IndependentRandomAccessSource.get(IndependentRandomAccessSource.java:77)
at
com.itextpdf.text.pdf.RandomAccessFileOrArray.read(RandomAccessFileOrArray.java:225)
at
com.itextpdf.text.pdf.RandomAccessFileOrArray.readFully(RandomAccessFileOrArray.java:247)
at
com.itextpdf.text.pdf.RandomAccessFileOrArray.readFully(RandomAccessFileOrArray.java:241)
at 
com.itextpdf.text.pdf.PdfReader.getStreamBytesRaw(PdfReader.java:2469)
at 
com.itextpdf.text.pdf.PdfReader.getStreamBytesRaw(PdfReader.java:2506)
at com.itextpdf.text.pdf.PdfStamperImp.close(PdfStamperImp.java:313)
at com.itextpdf.text.pdf.PdfStamper.close(PdfStamper.java:207)
at it.equitaliaservizi.fascicolo.watermark.Test.main(Test.java:50)






--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-create-PDF-A-Problem-tp4659694p4659796.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis  security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText - create PDF/A Problem

2014-02-27 Thread Gabriella
Can you give me a PDF/A-1A?



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-create-PDF-A-Problem-tp4659694p4659798.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis  security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText - create PDF/A Problem

2014-02-27 Thread Gabriella
Thank you,
but also with this correct pdf A, there is the same error.
However , that is a forum



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-create-PDF-A-Problem-tp4659694p4659800.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis  security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText - create PDF/A Problem

2014-02-27 Thread iText mailing list
On 2/27/2014 3:22 PM, Gabriella wrote:
 but also with this correct pdf A, there is the same error.

There's a bug in your code.
There's a bug in iText.

I've fixed both, but only customers get hotfixes.

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis  security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText - create PDF/A Problem

2014-02-27 Thread Gabriella
Sorry, but I thought that this forum give me back a solution of problem and
not   that there is a bug in itex.

Sorry again



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-create-PDF-A-Problem-tp4659694p4659802.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis  security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText - create PDF/A Problem

2014-02-27 Thread iText mailing list
On 2/27/2014 3:56 PM, Gabriella wrote:
 Sorry, but I thought that this forum give me back a solution of problem
The main problem is that we see that the AGPL version of iText is used 
in many cases where a commercial license is mandatory.

We've had situations where a company discovered that an employee at an 
integrator introduced iText without mentioning that a commercial license 
was needed. The consequence: the customer decided not to work with that 
integrator ever again.

Something similar happened to a start-up: they wanted funding and we 
were contacted by the VC during the due diligence process. The start-up 
didn't get funding as they didn't use the proper license for iText (and 
other software).

The fact that we give quality answers for free on a forum may create the 
impression that all the work we do is done for free. That impression 
would be wrong.
Especially in this case, I choose to be very strict: you need iText 5 
and you have a problem we can solve (*). We can help you if you're a 
customer. We can choose not to help you if you're not.

(*) Except for the garbage in, garbage out problem: if you feed iText a 
document that isn't PDF/A-1A and you expect it to become a PDF/A-1A 
file, then you're doing something wrong.

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis  security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText - create PDF/A Problem

2014-02-27 Thread Gabriella
I already have iText 5 and a correct PDF/A-1A 



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-create-PDF-A-Problem-tp4659694p4659805.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis  security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText - create PDF/A Problem

2014-02-27 Thread iText mailing list
On 2/27/2014 5:55 PM, Gabriella wrote:
 I already have iText 5
Yes, but are you a customer?

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis  security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] Itext Combobox onChange Event?

2014-02-24 Thread kyde
HI, I am new to Itext lib. looking for change event listeners for comboField.
I want to  get the selected text information whenever i select item in
combobox .
Could you please throw some light on how to achieve this. Thanks in advance.



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Itext-Combobox-onChange-Event-tp4659782.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis  security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText - create PDF/A Problem

2014-02-20 Thread Gabriella
Hi
I have the same problem 



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-create-PDF-A-Problem-tp4659694p4659758.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText - create PDF/A Problem

2014-02-20 Thread iText Info
Gabriella schreef op 20/02/2014 10:17:
 I have the same problem
1. People who aren't on Nabble don't know what you mean by same.
2. The OP was asked for a sample PDF, but as he didn't provide one, we 
can't help him.
3. You didn't describe your problem, nor post a PDF.

My guess: you want to add a watermark to a document that isn't PDF/A-1 
Level A and you expect it to be a PDF/A-1 Level A.
It should be obvious that such an expectation is wrong, but once again: 
how can we know? You're not sharing your PDF.

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText - create PDF/A Problem

2014-02-09 Thread r.figliuolo
I'm using iText version 5.4.5.



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-create-PDF-A-Problem-tp4659694p4659724.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] iText - create PDF/A Problem

2014-01-28 Thread Figliuolo Rocco
Hi,
I want put the watermark into the pdf, but I receive this error message:

java.lang.NullPointerException
   at 
com.itextpdf.text.pdf.internal.PdfA1Checker.checkPdfObject(PdfA1Checker.java:304)
   at 
com.itextpdf.text.pdf.internal.PdfAChecker.checkPdfAConformance(PdfAChecker.java:201)
   at 
com.itextpdf.text.pdf.internal.PdfAConformanceImp.checkPdfIsoConformance(PdfAConformanceImp.java:70)
   at 
com.itextpdf.text.pdf.PdfWriter.checkPdfIsoConformance(PdfWriter.java:3380)
   at 
com.itextpdf.text.pdf.PdfWriter.checkPdfIsoConformance(PdfWriter.java:3376)
   at com.itextpdf.text.pdf.PdfDictionary.toPdf(PdfDictionary.java:136)
   at 
com.itextpdf.text.pdf.PdfIndirectObject.writeTo(PdfIndirectObject.java:157)
   at com.itextpdf.text.pdf.PdfWriter$PdfBody.write(PdfWriter.java:424)
   at com.itextpdf.text.pdf.PdfWriter$PdfBody.add(PdfWriter.java:402)
   at com.itextpdf.text.pdf.PdfWriter.addToBody(PdfWriter.java:886)
   at com.itextpdf.text.pdf.PdfStamperImp.close(PdfStamperImp.java:398)
   at com.itextpdf.text.pdf.PdfStamperImp.close(PdfStamperImp.java:372)
   at com.itextpdf.text.pdf.PdfStamper.close(PdfStamper.java:207)
   at WatermarkPDF.main(WatermarkPDF.java:44)


public static void main(String[] args) {
   try {

PdfReader Read_PDF_To_Watermark = new PdfReader(C:/SampleA.pdf);
int number_of_pages = Read_PDF_To_Watermark.getNumberOfPages();

PdfAStamper stamp = new PdfAStamper(Read_PDF_To_Watermark, new 
FileOutputStream(C:/SampleAWM.pdf),PdfAConformanceLevel.PDF_A_1A);

int i = 0;
Image watermark_image = Image.getInstance(C:/watermark.jpg);
watermark_image.setAbsolutePosition(200, 400);
PdfContentByte add_watermark;
while (i  number_of_pages) {
  i++;
  add_watermark = stamp.getUnderContent(i);
  add_watermark.addImage(watermark_image);
}
stamp.close();
}
catch (Exception i1) {
i1.printStackTrace();
}
}

AlmavivA Spa (www.almavivaitalia.ithttp://www.almavivaitalia.it)
Divisione IT - Area Pubblica Amministrazione Centrale e Locale
Via di Casal Boccone, 188/190
00137 - Roma

Tel.: 06.39.93.34.79
e-mail: r.figliu...@almavivaitalia.itmailto:r.figliu...@almavivaitalia.it

[cid:image001.gif@01CC30ED.E0ACDFB0]

inline: image001.gif--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText - create PDF/A Problem

2014-01-28 Thread Raf Hens
On 28/01/2014 14:10, Figliuolo Rocco wrote:
 I want put the watermark into the pdf, but I receive this error message:

Can you tell us which version of iText you tested with and provide the 
PDF that triggered this issue?  If you don't want to make the PDF 
publicly available, you can send it to me directly.

Thanks,

Raf Hens
iText Software

--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText PDF java on MAC OS

2014-01-27 Thread Michael Demey
Hi,


What errors are you getting? This would help a lot in the debugging of 
your code.


Kind regards,
Michaël.


Marcos Fogaca schreef op 24/01/2014 18:55:
 Hi,

 Somebody knows if iText PDF (java) works on MAC OS X 10.8.5?

 More specifically : digital signing PDF documents

 We have success on windows, but when we run de application on MAC OS we
 are getting some errors.

 Any tips will be appreciated.

 Regards,
 Marcos Fogaça



 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today.
 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk



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

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php



--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] iText PDF java on MAC OS

2014-01-24 Thread Marcos Fogaca
Hi,

Somebody knows if iText PDF (java) works on MAC OS X 10.8.5?

More specifically : digital signing PDF documents

We have success on windows, but when we run de application on MAC OS we are
getting some errors.

Any tips will be appreciated.

Regards,
Marcos Fogaça
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] itext and itexG?

2013-11-22 Thread Hamid Shahsavari
Hello
I have the book ( itext in action). this book is somehow a user manual for
itext. but i want to program for itextG(itext for android). i want to know
is this book useful for itextG too? or not? i mean for example are the
methods in itexg same as itext?!
thanks
--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] itext and itexG?

2013-11-22 Thread iText Info
Hamid Shahsavari schreef op 21/11/2013 15:27:
 Hello
 I have the book ( itext in action). this book is somehow a user manual 
 for itext. but i want to program for itextG(itext for android). i want 
 to know is this book useful for itextG too? or not? i mean for example 
 are the methods in itexg same as itext?!

iTextG is (almost) identical to iText.
The exceptions are:
- no nio classes,
- some AWT functionality is missing (PdfGraphics2D, java.awt.Image)
- we use SpongyCastle instead of BouncyCastle
A more elaborate explanation can be found here: 
http://itextpdf.com/product/itextg

--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] itext and itexG?

2013-11-22 Thread Michael Demey
Hi,


The versions are pretty much the same aside from a few differences which 
are listed here:

http://itextpdf.com/product/itextg

Kind regards,
Michaël.


Hamid Shahsavari schreef op 21/11/2013 15:27:
 Hello
 I have the book ( itext in action). this book is somehow a user manual
 for itext. but i want to program for itextG(itext for android). i want
 to know is this book useful for itextG too? or not? i mean for example
 are the methods in itexg same as itext?!
 thanks


 --
 Shape the Mobile Experience: Free Subscription
 Software experts and developers: Be at the forefront of tech innovation.
 Intel(R) Software Adrenaline delivers strategic insight and game-changing
 conversations that shape the rapidly evolving mobile landscape. Sign up now.
 http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk



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

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php



--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] IText in OSGi.

2013-10-29 Thread MacGregor, Duncan (GE Energy Management)
I’m working on a fairly large project which has to be deployable within an OSGi 
environment and needs to output high quality PDFs of maps. We’re looking at 
iText because we can use our existing java Graphics2D rendering code to render 
straight into a PDF and the tests we’ve done look excellent but I’ve hit a 
small problem when building a deployable version of the project.

iText’s manifest does contain OSGi bundle information but I’ve hit two issues 
with it so far.

  1.  com.itextpdf.awt is not in the export list so we cannot call the 
constructor for PdfGraphics2D.
  2.  If we use one of the deprecated methods on PdfContentByte to create the 
PdfGraphics2D then we get a class not found exception because the bundle 
doesn’t import javax.imageio, or javax.imageio.plugins.jpeg

I’m going to work round this temporarily by editing the manifest and placing 
the altered jar in our local maven repo.

Regards, Duncan.

--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] iText - getOverContent vs rotation

2013-10-14 Thread Diego Villatora
Hi all,
 I'm working on the generation of few reports with iText.
I'm completely stuck trying to understand what's going on and I have no
more ideas on how to debug it.
Basically I produce a series of PDFs (1 or more pages) and afterwards I
want to add a watermark.

It seems working good if I use the getUnderContent from the PDFStamper, but
this correctly put my watermark in the background.
I want my text (or image) in the top layer, so I tried to use
getOverContent.

And here the weird behaviour: when I try to rotate it (text) the rotation
is correct for few pages and is 90 degrees wrong for others!

I cannot understand where's the issue here as I've checked rotation for all
the pages and is 90 degrees for all of them.

private void addDraftWatermark(String filename) throws IOException,
DocumentException {
File subClientFolder = new File(filename);

if (subClientFolder.exists()  subClientFolder.list().length  0) {
for (File folder : subClientFolder.listFiles()) {
File[] listPDFs = folder.listFiles();
for (File pdf : listPDFs) {
String realFilename = pdf.getAbsolutePath();
PdfReader reader = new PdfReader(realFilename);
String draftFilePath = pdf.getParent() + \\draft -  +
pdf.getName();
PdfStamper stamper = new PdfStamper(reader, new
FileOutputStream(draftFilePath));

//Properties properties = new Properties();
//
 
properties.load(AbstractReport.class.getResourceAsStream(/kobalt/sax/reports/properties/javareports.properties));
//String temp = (String)
properties.get(imagelocationdev);
//Image img = Image.getInstance((String)
properties.get(imagelocationdev) + draftwatermark.png);
//img.setAbsolutePosition(150, 60);

PdfContentByte wtmk;
BaseFont bf =
BaseFont.createFont(BaseFont.HELVETICA_BOLD, BaseFont.CP1250,
BaseFont.NOT_EMBEDDED);
int total = reader.getNumberOfPages() + 1;
for (int i = 1; i  total; i++) {
wtmk = stamper.getOverContent(i);
//image
//wtmk.addImage(img);
//text
//PdfGState gState = new PdfGState();
//gState.setFillOpacity(0.4f);
//wtmk.setGState(gState);

wtmk.beginText();
wtmk.setFontAndSize(bf, 200);
wtmk.setRGBColorFill(0xC8, 0xB4, 0xB4); // rotation
wtmk.showTextAligned(PdfContentByte.ALIGN_LEFT,
DRAFT, 140, 90, 25);

// test
int rotation = reader.getPageRotation(1);
Rectangle box =
wtmk.getPdfWriter().getBoxSize(media);

wtmk.endText();

}
stamper.close();
reader.close();
pdf.delete();

File draft = new File(draftFilePath);
draft.renameTo(new File(realFilename));
}
}
}
}

I'll really appreciate any suggestion.

Thanks,
Diego
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] iText for Android

2013-09-23 Thread Vaikunth Parmar
Hi Experts,

I need below functionality in my Android app.

Highlight The Text(user can select the color and opacity of 
Highlighted), Search Text(page wise), Add Note, Free hand (user can 
select the color, opacity and thickness for the freehand), Can copy the 
Text, Can copy the Annotation.
With this it can change the size of any annotation and put that into 
other pdf.

Can iText supports this features for Android?

Thanks

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText for Android

2013-09-23 Thread iText Info
Op 23/09/2013 8:18, Vaikunth Parmar schreef:
 Can iText supports this features for Android?
If you are looking for a tool to VIEW PDFs on a device: NO
iText isn't a PDF viewer.

If you are building a viewer and you want to use iText as a component to 
access and change the contents of a PDF file: YES, but you'd be crazy to 
build your own viewer.

If you are NOT looking to build a viewer, but you want to add background 
colors to highlight text OF WHICH YOU KNOW THE COORDINATES, add 
annotations of all kinds,...: YES

The requirement can copy the text doesn't really make sense if you're 
not talking about viewing PDF. You can extract text, that's not the same 
as copy/paste.

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] iText-modified PDF causes Bad parameter error in Acrobat

2013-08-15 Thread Kevin Klein
I am using iText to modify a PDF to remove Extended Features using the process 
described on page 278 of the book. It appears to produce the expected result.

However, I then open the PDF in Acrobat and add password encryption. When I do 
this and attempt to save the PDF, I get an error The document could not be 
saved. Bad parameter.

Test case code is below. I can provide the input PDF text-ext.pdf via email 
upon request.

Any help you can provide would be appreciated.

--- cut here --

package test;

import com.itextpdf.text.pdf.PdfReader;
import com.itextpdf.text.pdf.PdfStamper;

import java.io.FileInputStream;
import java.io.FileOutputStream;

public class TestIText
{
   public static void main(String[] args)
   {
  try
  {
 FileInputStream pdfInputStream = new FileInputStream(test-ext.pdf);
 PdfReader reader = new PdfReader(pdfInputStream);
 reader.removeUsageRights();

 // open PDF stamper on output PDF
 FileOutputStream destStream = new FileOutputStream(test-noext.pdf);
 PdfStamper stamper;
 stamper = new PdfStamper(reader, destStream);

 stamper.close();
 destStream.close();
 pdfInputStream.close();
  }
  catch (Exception ex)
  {
 ex.printStackTrace();
  }
   }
}


Kevin Klein | Director of Technology | Celera Systems LLC | 
kkl...@celerasystems.commailto:kkl...@celerasystems.com
Bus 262.834.0080 x203 | Fax 262.834.0079 | 
www.celerasystems.comhttp://www.celerasystems.com
10325 North Port Washington Rd, Suite 100 Mequon, WI 53092

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] Itext checkbox is always checked

2013-08-04 Thread Jason Hamm
I am using Itext to create a pdf and I cannot get the checkbox to uncheck.
Here is my code:

RadioCheckField bt = new RadioCheckField(writer, new Rectangle(100,
100, 200, 200), radio, v1);
bt = new RadioCheckField(writer, new Rectangle(300, 300, 400, 400),
check1, Yes);
bt.setCheckType(RadioCheckField.TYPE_CHECK);
bt.setBorderWidth(BaseField.BORDER_WIDTH_THICK);
bt.setBorderColor(BaseColor.BLACK);
bt.setBackgroundColor(BaseColor.WHITE);
bt.setChecked(false);
PdfFormField ck = bt.getCheckField();
writer.addAnnotation(ck);

You can see that the bt.setChecked(false) is in the code, but the checkbox
is still checked. I looked at the docs and it seems to me that it is
supposed to work this way. What do I not understand?



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Itext-checkbox-is-always-checked-tp4658866.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext checkbox is always checked

2013-08-04 Thread iText Info

Op 3/08/2013 16:49, Jason Hamm schreef:

I am using Itext to create a pdf and I cannot get the checkbox to uncheck.
Here is my code:

RadioCheckField bt = new RadioCheckField(writer, new Rectangle(100,
 100, 200, 200), radio, v1);
bt = new RadioCheckField(writer, new Rectangle(300, 300, 400, 400),
 check1, Yes);
bt.setCheckType(RadioCheckField.TYPE_CHECK);
bt.setBorderWidth(BaseField.BORDER_WIDTH_THICK);
bt.setBorderColor(BaseColor.BLACK);
bt.setBackgroundColor(BaseColor.WHITE);
bt.setChecked(false);
PdfFormField ck = bt.getCheckField();
writer.addAnnotation(ck);

You can see that the bt.setChecked(false) is in the code, but the checkbox
is still checked. I looked at the docs and it seems to me that it is
supposed to work this way. What do I not understand?


The problem you're reporting can't be reproduced.
See code and PDF in attachment.


checkboxproblem.pdf
Description: Adobe PDF document
package examples.forms;

import java.io.FileOutputStream;
import java.io.IOException;

import com.itextpdf.text.BaseColor;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Rectangle;
import com.itextpdf.text.pdf.BaseField;
import com.itextpdf.text.pdf.PdfFormField;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.text.pdf.RadioCheckField;

public class CheckboxProblem {

public static void main(String[] args) throws IOException, 
DocumentException {
Document document = new Document();
PdfWriter writer = PdfWriter.getInstance(document, new 
FileOutputStream(checkboxproblem.pdf));
document.open();
RadioCheckField bt = new RadioCheckField(writer, new 
Rectangle(300, 300, 400, 400), check1, Yes);
bt.setCheckType(RadioCheckField.TYPE_CHECK);
bt.setBorderWidth(BaseField.BORDER_WIDTH_THICK);
bt.setBorderColor(BaseColor.BLACK);
bt.setBackgroundColor(BaseColor.WHITE);
bt.setChecked(false);
PdfFormField ck = bt.getCheckField();
writer.addAnnotation(ck);
document.close();
}
}
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] iText 5.4.2 / requirements

2013-06-26 Thread Robin Tremblay (BIA)
Hi,
I would like to use iText 5.4.2 in my Java application. 
 
What are the requirements (versions, etc) ?
 
Jdeveloper ? (from oracle)
Java ?
 
Thanks !

Robin
 
 
 
 
 
Robin Tremblay
Administrateur de bases de données Oracle, CGI
Service du pilotage et de l'évolution des systèmes
Ministère de la Justice, Bureau des Infractions et des Amendes
1200, route de l'Église, 6.09
Québec (Québec), G1V 4M1
Tél.: 418-644-2330 #21470
Fax: 418-644-8486
Courriel: robin.trembl...@justice.gouv.qc.ca 
 
 
Avis de confidentialité: Ce message est confidentiel. Il est à l'usage
exclusif du destinataire ci-dessus. Toute autre personne est par les
présentes avisée qu'il lui est strictement interdit de le diffuser,
de le distribuer ou de le reproduire. Si le destinataire ne peut être
joint ou vous est inconnu, nous vous prions d'en informer immédiatement
l'expéditeur par courrier électronique et de détruire ce message et
toute copie de celui-ci. 
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText 5.4.2 / requirements

2013-06-26 Thread Paulo Soares
You'll need at least the Java jdk 1.5. About the IDE, that's your
choice: I use Netbeans, Bruno uses Eclipse, others use IntelliJ IDEA,
etc.

Paulo

2013/6/26 Robin Tremblay (BIA) robin.trembl...@justice.gouv.qc.ca:
 Hi,
 I would like to use iText 5.4.2 in my Java application.

 What are the requirements (versions, etc) ?

 Jdeveloper ? (from oracle)
 Java ?

 Thanks !

 Robin





 Robin Tremblay
 Administrateur de bases de données Oracle, CGI
 Service du pilotage et de l'évolution des systèmes
 Ministère de la Justice, Bureau des Infractions et des Amendes
 1200, route de l'Église, 6.09
 Québec (Québec), G1V 4M1
 Tél.: 418-644-2330 #21470
 Fax: 418-644-8486
 Courriel: robin.trembl...@justice.gouv.qc.ca


 Avis de confidentialité: Ce message est confidentiel. Il est à l'usage
 exclusif du destinataire ci-dessus. Toute autre personne est par les
 présentes avisée qu'il lui est strictement interdit de le diffuser, de le
 distribuer ou de le reproduire. Si le destinataire ne peut être joint ou
 vous est inconnu, nous vous prions d'en informer immédiatement l'expéditeur
 par courrier électronique et de détruire ce message et toute copie de
 celui-ci.

 --
 This SF.net email is sponsored by Windows:

 Build for Windows Store.

 http://p.sf.net/sfu/windows-dev2dev
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples:
 http://itextpdf.com/themes/keywords.php

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText-questions Digest, Vol 85, Issue 30

2013-06-21 Thread Joed Cueto
 document = new Document(PageSize.A4);
 PdfWriter.getInstance(document, baosPDF);
 log.info(Document.open);
 document.open();

 *RandomAccessFileOrArray ra = new RandomAccessFileOrArray(inputStream);*
 int pages = TiffImage.getNumberOfPages(ra);
 for(int i = 1; i = pages; i++){
 Image img = TiffImage.getTiffImage(ra, i);
  if((img.getScaledWidth()  525) || (img.getScaledHeight()  800))
 {
 img.scaleToFit(525, 800);
 }
 document.add(img);
 }
 document.close();
 }
 catch (DocumentException de)
 {
 log.error(de.getMessage());
 throw de;
 }
 catch (IOException ioe)
 {
 log.error(ioe.getMessage());
 throw ioe;
 }
 catch (Exception ex){
 log.error(ex.getMessage());
 throw ex;
 }

 return baosPDF;

 --

 Joed G. Cueto
 Software Engineer, Java Practice
 Business: +632 814 1100
 Email: joed.cu...@pointwest.com.ph
 Website: www.pointwest.com.ph
 Pointwest Technologies Corporation
 [image: Pointwest Logo]
 12/F Citibank Center, 8741 Paseo de Roxas, Makati City, PH 1226

 CONFIDENTIALITY NOTICE: This email may contain confidential and privileged
 material for the sole use of the intended recipient(s). Any review, use,
 distribution or disclosure by others is strictly prohibited. If you have
 received this communication in error, please notify the sender immediately
 by e-mail and delete the message and any file attachments from your
 computer. There is no warranty that this email is error, virus or defect
 free. If this is a private communication it does not represent the views of
 Pointwest Technologies Corporation or their related entities.
 -- next part --
 An HTML attachment was scrubbed...

 --

 Message: 4
 Date: Fri, 21 Jun 2013 00:12:31 -0700 (PDT)
 From: mkl m...@wir-sind-cool.org
 Subject: [iText-questions] [SPAM] Re: Application stopped unexpectedly
 To: itext-questions@lists.sourceforge.net
 Message-ID: 1371798751002-4658576.p...@n4.nabble.com
 Content-Type: text/plain; charset=us-ascii

 Joed Cueto,

 Joed Cueto wrote
  I have an application that convert an inputSteam to pdf. Below is the
  content of the method that converts input stream to pdf. However, the
  application suddenly stopped on line *RandomAccessFileOrArray ra = new
  RandomAccessFileOrArray(inputStream); *without throwing any error or
  exception which is kind of weird. Is it a known bug, can you give some
  solution for this?? Thank you.. Badly needed. Please help

 The RandomAccessFileOrArray constructor you use attempts to fully read the
 stream in question into a byte[] until the stream signals its end. Then the
 constructor initialize its instance with this byte[] and returns only
 thereafter. Thus, this constructor is not suited for all kinds of
 InputStreams, only for streams with a clear cut end and fast access.

 What kind of InputStream do you use?

 Regards,   Michael



 --
 View this message in context:
 http://itext-general.2136553.n4.nabble.com/Application-stopped-unexpectedly-tp4658575p4658576.html
 Sent from the iText - General mailing list archive at Nabble.com.



 --

 Message: 5
 Date: Fri, 21 Jun 2013 09:40:33 +0200
 From: iText Info i...@1t3xt.info
 Subject: Re: [iText-questions] Generated PDF differs on Windows vs
 Linux
 To: Post all your questions about iText here
 itext-questions@lists.sourceforge.net
 Message-ID: 51c40371.1090...@1t3xt.info
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 Op 20/06/2013 18:30, Cynthia Jeness schreef:
  No, we are not embedding.  We defined the font as the Helvetica family
  along with the font size and style in a separae parameter file and then
  create the font as follows:
 
  Font font = new Font(FontFactory.getFont(
   item.getFont().family,
   fontSize,
   item.getFont().style));
 
  Then we set it in the chunk that we are creating.

 Please take a look at figure 2.4 in this chapter:
 http://www.manning.com/lowagie2/samplechapter2.pdf

 Then read the text that comes with the figure.
 Does this describe the problem you're seeing?
 Or are you talking about something completely different?
 (Because you're not entirely clear in your question.)



 --


 --
 This SF.net email is sponsored by Windows:

 Build for Windows Store.

 http://p.sf.net/sfu/windows-dev2dev

 --

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

 iText(R) is a registered trademark of 1T3XT BVBA

 End of iText-questions Digest, Vol 85, Issue 30
 ***




-- 

Joed G. Cueto
Software Engineer, Java Practice
Business: +632 814 1100
Email: joed.cu...@pointwest.com.ph
Website: www.pointwest.com.ph
Pointwest

Re: [iText-questions] iText-questions Digest, Vol 85, Issue 30 (Joed Cueto)

2013-06-21 Thread Joed Cueto
Date: Fri, 21 Jun 2013 00:12:31 -0700 (PDT)
From: mkl m...@wir-sind-cool.org
Subject: [iText-questions] [SPAM] Re: Application stopped unexpectedly
To: itext-questions@lists.sourceforge.net
Message-ID: 1371798751002-4658576.p...@n4.nabble.com
Content-Type: text/plain; charset=us-ascii

Joed Cueto,

Joed Cueto wrote
 I have an application that convert an inputSteam to pdf. Below is the
 content of the method that converts input stream to pdf. However, the
 application suddenly stopped on line *RandomAccessFileOrArray ra = new
 RandomAccessFileOrArray(inputStream); *without throwing any error or
 exception which is kind of weird. Is it a known bug, can you give some
 solution for this?? Thank you.. Badly needed. Please help

The RandomAccessFileOrArray constructor you use attempts to fully read the
stream in question into a byte[] until the stream signals its end. Then the
constructor initialize its instance with this byte[] and returns only
thereafter. Thus, this constructor is not suited for all kinds of
InputStreams, only for streams with a clear cut end and fast access.

What kind of InputStream do you use?

Regards,   Michael






Hi Michael,

I am using FileInputStream
inputStreamNew = new FileInputStream(tempFile);

This is how the inputStream is generated:

ByteArrayOutputStream baosPDF = null;
 log.debug(start merge tiff.);
 File tempFile = null;
 if (iioimageList != null  iioimageList.size()  0)
{
IteratorImageWriter writers = ImageIO.getImageWritersByFormatName(tiff);
ImageWriter writer = writers.next();

tempFile = File.createTempFile(test, .tif);
ImageOutputStream ios = ImageIO.createImageOutputStream(tempFile);
writer.setOutput(ios);
IIOImage firstIioImage = iioimageList.remove(0);
writer.write(firstIioImage);
int i = 1;
for (IIOImage iioImage : iioimageList)
{
writer.writeInsert(i++, iioImage, null);
}
ios.close();
}
 InputStream inputStreamNew = null;
 log.info(create new file input stream from file.);
inputStreamNew = new FileInputStream(tempFile);
-- 

Joed G. Cueto
Software Engineer, Java Practice
Business: +632 814 1100
Email: joed.cu...@pointwest.com.ph
Website: www.pointwest.com.ph
Pointwest Technologies Corporation
[image: Pointwest Logo]
12/F Citibank Center, 8741 Paseo de Roxas, Makati City, PH 1226

CONFIDENTIALITY NOTICE: This email may contain confidential and privileged
material for the sole use of the intended recipient(s). Any review, use,
distribution or disclosure by others is strictly prohibited. If you have
received this communication in error, please notify the sender immediately
by e-mail and delete the message and any file attachments from your
computer. There is no warranty that this email is error, virus or defect
free. If this is a private communication it does not represent the views of
Pointwest Technologies Corporation or their related entities.
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] iText pdf rotation, resulting PDF displays out of memory in adobe.

2013-06-20 Thread Zoharat
Following is a code snippet creating a pdf file where pages could be rotated
in the resulting file. This works fine for most pdf files. But one
particualr pdf file of version 1.6 the page is already rotated by 180, on
applying further rotation to it e.g. 90 degress and saving the file causes
it to get corrupted. Infact even if you don't rotate the file and simply
write it out to another file using iText the file the resulting pdf is
corrupted and displays an out of memory exception when opened in Adobe
reader.

Why would that happen? Am I missing some sort of compression in the file.

private String createPdfFileWithoutForms(final EditStateData[]
editStateData, final String directory)
throws EditingException {

Long startTime = System.currentTimeMillis();

File pdfFileToReturn = new File(directory + File.separator +
UidGenerator.generate() + .pdf);

com.lowagie.text.Document document = null;
FileOutputStream outputStream = null;
PdfCopy pdfCopy = null;
PdfReader reader = null;
PdfDictionary pageDict = null;
int rotationAngle = 0;
MapInteger, Integer rotationQuadrants = null;

try {

document = new com.lowagie.text.Document();
outputStream = new FileOutputStream(pdfFileToReturn);
pdfCopy = new PdfCopy(document, outputStream);
pdfCopy.setFullCompression();
pdfCopy.setCompressionLevel(9);
document.open();

for (EditStateData state : editStateData) {
try {
reader = new PdfReader(state.getFileName());
reader.selectPages(state.getPages());
rotationQuadrants = state.getRotationQuadrants();
for (int i = 1; i = reader.getNumberOfPages(); i++) {
// Rotation quadrant key is the source page number
if
(rotationQuadrants.containsKey(state.getPages().get(i - 1))) {
rotationAngle = reader.getPageRotation(i);
pageDict = reader.getPageN(i);
pageDict.put(PdfName.ROTATE,
new PdfNumber((rotationAngle 
+
rotationQuadrants.get(state.getPages().get(i - 1))) % 360));
}

   
document.setPageSize(reader.getPageSizeWithRotation(i));
document.newPage();
// import the page from source pdf
PdfImportedPage page =
pdfCopy.getImportedPage(reader, i);
// add the page to the destination pdf
pdfCopy.addPage(page);
}
} catch (final IOException e) {
LOGGER.error(e.getMessage(), e);
throw new EditingException(e.getMessage(), e);
} finally {
if (reader != null) {
reader.close();
}
}
}
} catch (final Exception e) {
LOGGER.error(e.getMessage(), e);
throw new EditingException(e.getMessage(), e);
} finally {
if (document != null) {
document.close();
}

if (pdfCopy != null) {
pdfCopy.close();
}
IoUtils.closeQuietly(outputStream);
}

LOGGER.debug(Combining  + editStateData.length +  pdf files took

+ ((System.currentTimeMillis() - startTime) / 1000) +  msecs);

return pdfFileToReturn.getAbsolutePath();
}




--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-pdf-rotation-resulting-PDF-displays-out-of-memory-in-adobe-tp4658565.html
Sent from the iText - General mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText pdf rotation, resulting PDF displays out of memory in adobe.

2013-06-20 Thread Zoharat
AbobeAcrobat_Version1-6.pdf
http://itext-general.2136553.n4.nabble.com/file/n4658566/AbobeAcrobat_Version1-6.pdf
  



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-pdf-rotation-resulting-PDF-displays-out-of-memory-in-adobe-tp4658565p4658566.html
Sent from the iText - General mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText pdf rotation, resulting PDF displays out of memory in adobe.

2013-06-20 Thread Andrew J Daykin

Hello,

Perhaps the answer is in the post

com.lowagie.text.Document

I would try using an up to date version of the library.

Regards,
Andrew
==
On 20/06/2013 13:10, Zoharat wrote:

Following is a code snippet creating a pdf file where pages could be rotated
in the resulting file. This works fine for most pdf files. But one
particualr pdf file of version 1.6 the page is already rotated by 180, on
applying further rotation to it e.g. 90 degress and saving the file causes
it to get corrupted. Infact even if you don't rotate the file and simply
write it out to another file using iText the file the resulting pdf is
corrupted and displays an out of memory exception when opened in Adobe
reader.

Why would that happen? Am I missing some sort of compression in the file.

private String createPdfFileWithoutForms(final EditStateData[]
editStateData, final String directory)
 throws EditingException {

 Long startTime = System.currentTimeMillis();

 File pdfFileToReturn = new File(directory + File.separator +
UidGenerator.generate() + .pdf);

 com.lowagie.text.Documentdocument = null;
 FileOutputStream outputStream = null;
 PdfCopy pdfCopy = null;
 PdfReader reader = null;
 PdfDictionary pageDict = null;
 int rotationAngle = 0;
 MapInteger, Integer rotationQuadrants = null;

 try {

 document = new com.lowagie.text.Document();
 outputStream = new FileOutputStream(pdfFileToReturn);
 pdfCopy = new PdfCopy(document, outputStream);
 pdfCopy.setFullCompression();
 pdfCopy.setCompressionLevel(9);
 document.open();

 for (EditStateData state : editStateData) {
 try {
 reader = new PdfReader(state.getFileName());
 reader.selectPages(state.getPages());
 rotationQuadrants = state.getRotationQuadrants();
 for (int i = 1; i = reader.getNumberOfPages(); i++) {
 // Rotation quadrant key is the source page number
 if
(rotationQuadrants.containsKey(state.getPages().get(i - 1))) {
 rotationAngle = reader.getPageRotation(i);
 pageDict = reader.getPageN(i);
 pageDict.put(PdfName.ROTATE,
 new PdfNumber((rotationAngle
 +
rotationQuadrants.get(state.getPages().get(i - 1))) % 360));
 }


document.setPageSize(reader.getPageSizeWithRotation(i));

 document.newPage();
 // import the page from source pdf
 PdfImportedPage page =
pdfCopy.getImportedPage(reader, i);
 // add the page to the destination pdf
 pdfCopy.addPage(page);
 }
 } catch (final IOException e) {
 LOGGER.error(e.getMessage(), e);
 throw new EditingException(e.getMessage(), e);
 } finally {
 if (reader != null) {
 reader.close();
 }
 }
 }
 } catch (final Exception e) {
 LOGGER.error(e.getMessage(), e);
 throw new EditingException(e.getMessage(), e);
 } finally {
 if (document != null) {
 document.close();
 }

 if (pdfCopy != null) {
 pdfCopy.close();
 }
 IoUtils.closeQuietly(outputStream);
 }

 LOGGER.debug(Combining  + editStateData.length +  pdf files took

 + ((System.currentTimeMillis() - startTime) / 1000) +  msecs);

 return pdfFileToReturn.getAbsolutePath();
 }




--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-pdf-rotation-resulting-PDF-displays-out-of-memory-in-adobe-tp4658565.html
Sent from the iText - General mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu

[iText-questions] Itext 0.96 / Adobe Acrobat PDF

2013-06-14 Thread Robin Tremblay (BIA)
Hello,
 
We are using a very old version of iText (0.96) in our system and we
are merging Acrobat documents (release 7). All works fine.
 
Is it possible to merge Acrobat PDF document relase 8,9 and 10 with
itext 0.96 ?
 
Thanks in advance !
 
Robin
 
 
 
 
 
 
 
 
Robin Tremblay
Administrateur de bases de données Oracle, CGI
Service du pilotage et de l'évolution des systèmes
Ministère de la Justice, Bureau des Infractions et des Amendes
1200, route de l'Église, 6.09
Québec (Québec), G1V 4M1
Tél.: 418-644-2330 #21470
Fax: 418-644-8486
Courriel: robin.trembl...@justice.gouv.qc.ca 
 
 
Avis de confidentialité: Ce message est confidentiel. Il est à l'usage
exclusif du destinataire ci-dessus. Toute autre personne est par les
présentes avisée qu'il lui est strictement interdit de le diffuser,
de le distribuer ou de le reproduire. Si le destinataire ne peut être
joint ou vous est inconnu, nous vous prions d'en informer immédiatement
l'expéditeur par courrier électronique et de détruire ce message et
toute copie de celui-ci. 
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Itext 0.96 / Adobe Acrobat PDF

2013-06-14 Thread 1T3XT BVBA

On 13/06/2013 21:54, Robin Tremblay (BIA) wrote:

Hello,
We are using a very old version of *iText (0.96)* in our system and we 
are merging Acrobat documents (release 7). All works fine.
Is it possible to merge Acrobat PDF document relase 8,9 and 10 with 
itext 0.96 ?


Let's see, iText 0.96 dates from October 2002. We know that the 
ISO-committee is currently writing the PDF 2.0 spec. In 2002, the latest 
PDF version was 1.4 dating from 2001. It was followed by PDF 1.5 in 
2003. PDF 1.5 introduced compressed cross-reference tables and 
compressed object streams. Software predating 2003 doesn't know how to 
deal with these new compression features: such software doesn't know how 
to read the cross-reference table which is one of the most vital parts 
of a document.


That's only one feature that comes to mind, there may be many others.

In short: no, you shouldn't be using software that is almost 11 years 
old and expect that it can deal with the newest PDF documents. You 
should also read http://lowagie.com/itext2


You're working for a Justice department. This kind of contradicts with 
your desire to use an obsolete version of software. We've fixed many 
bugs, released security updates, etc... in the last 11 years. Please 
upgrade!
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] iText ,PdfOutline of an existed PDF

2013-06-13 Thread 李红
Hi there,

I am trying to extract a tag property of a PdfOutline object from an existed
Pdf document by getTag() foundation. The tag property is added by setTag()
when I create this Pdf document. Then I will how to get an PdfOutline object
from the Pdf document?

 

The code to set tag for a PdfOutline:

PdfOutline oline1 = new PdfOutline(root, PdfAction.gotoLocalPage(1, dest1,
writer), Chapter 1--look me);

oline1.setOpen(false);

oline1.setTag(Hoary and Lannie);

 

I just want to extract the PdfOutline by the title -”Chapter 1--look me”.
Add get the tag-“Hoary and Lannie” from the PdfOutline object by getTag().
Now the problem encountered is cannot find the PdfOutline object. 

 

Best wishes 

Lannie

 

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] iText Problem

2013-06-11 Thread Gajanand Shendge
I got this exception while generating PDF of my JFrame.

com.lowagie.text.exceptions.IllegalPdfSyntaxException: Unbalanced
save/restore state operators

Following is the code snipshot of generating pdf.

In that this is  the instance of Jframe

Document document = new Document();

try {

//PdfWriter writer = PdfWriter.getInstance(document,new
FileOutputStream(f1.getSelectedFile()+.pdf));

PdfWriter writer = PdfWriter.getInstance(document,new
FileOutputStream(d:+File.separator+VIKAS_PDF+File.separator+datewisefolder+.pdf));

document.open();

PdfContentByte contentByte = writer.getDirectContent();



PdfTemplate template = contentByte.createTemplate(690,850);

Graphics2D g2 = template.createGraphics(680,840);

this.print(g2);

g2.dispose();

contentByte.addTemplate(template,25,-37);


if(document.isOpen()){

 try{document.close();

 }

 catch(Exception
e){JOptionPane.showMessageDialog(this,e);System.out.println(In finally
+e);

 }

}
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText Problem

2013-06-11 Thread iText Info

Op 11/06/2013 8:59, Gajanand Shendge schreef:
com.lowagie.text.exceptions.IllegalPdfSyntaxException: Unbalanced 
save/restore state operators

Was your post an answer or a question?
It's not clear.

Also: you're using a version of iText that is 4 years old (and thus no 
longer supported).

Please upgrade.
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Itext Arabic ctrl+a hidden text problem

2013-06-04 Thread Burak Aydın
Hi,
It did not work out ,either.  When I press ctrl+a, some of the texts are not 
chosen. This issue remains the same when I use writer.getDirectContent(); 
instead of writer.getDirectContentUnder();. I can see the arabic text but it is 
not selected when I press ctrl+a. 
For the record, I also require and use absolute positioning for the text , I do 
not know whether this may be the problem.
Regards

Date: Mon, 3 Jun 2013 14:13:29 +0300
From: mohammed.alsay...@gmail.com
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Itext Arabic ctrl+a hidden text problem

Just  try to use this 


   const string regex_match_arabic_hebrew = @[\u0600-\u06FF,\u0590-\u05FF]+;

BaseFont nationalBase = 
BaseFont.CreateFont(c:windowsfontsTimes.ttf, BaseFont.IDENTITY_H, 
BaseFont.EMBEDDED);
  Font ArabiBold = new Font(nationalBase, 10f, Font.BOLD);
///
//  and create  a phreas  with your font///



 iTextSharp.text.pdf.PdfPCell cell = new iTextSharp.text.pdf.PdfPCell(new 
Phrase(مجموع الوارد, ArabiBold));cell.RunDirection = 
PdfWriter.RUN_DIRECTION_RTL;
cell.HorizontalAlignment = 1;cell.Colspan = 2;
cell.FixedHeight = 40;Rtable.AddCell(cell);


On 3 June 2013 14:02, Burak Aydın baydi...@hotmail.com wrote:




Hi,
My code to produce arabic hidden text pdf is below.  I add text under an image. 
After producing the pdf, I can not see the text when I press ctrl+a. This only 
happens with arabic characters, not with english ones:

adobe_reader_ctrl_a -- When I press ctrl+a in adobe reader, I can not see the 
text although its location is highlighted.document_viewer_ctrl_a -- When I 
press ctrl+a in ubuntu document viewer, I can only see 2 of the hidden texts
document_viewer_mouse_select-- I press ctrl+a, select one text with mouse, and 
then select all of the page, then I can see whole hidden texts in the pdf. 
What may be the cause?

..
Document document = new Document();

PdfWriter writer =
PdfWriter.getInstance(document, new FileOutputStream(output.pdf));

document.open();

Image image =
Image.getInstance(/home/burak/IdeaProjects/example.jpg);

image.setAbsolutePosition(0,
0);

document.setPageSize(new
Rectangle(image.getWidth(), image.getHeight()));

document.add(image);


PdfContentByte contentByte;

contentByte = writer.getDirectContentUnder();

contentByte.beginText();

contentByte.moveText(100, 100);

   
contentByte.setFontAndSize(BaseFont.createFont(data/simpo.ttf,
BaseFont.IDENTITY_H, true), 30);

   
contentByte.showText(100-100-ﻡﻭﺱﻯ ﺍﻭﻍﻝﻯ ﺍﺱﻡﺍﻉﻯﻝ);

contentByte.endText();



contentByte.beginText();

contentByte.moveText(100, 200);

   
contentByte.setFontAndSize(BaseFont.createFont(data/simpo.ttf,
BaseFont.IDENTITY_H, true), 30);

   
contentByte.showText(100-200-ﻡﻭﺱﻯ ﺍﻭﻍﻝﻯ ﺍﺱﻡﺍﻉﻯﻝ);

contentByte.endText();



contentByte.beginText();

contentByte.moveText(100, 300);

   
contentByte.setFontAndSize(BaseFont.createFont(data/simpo.ttf,
BaseFont.IDENTITY_H, true), 30);

contentByte.showText(100-300-ﻡﻭﺱﻯ
ﺍﻭﻍﻝﻯ ﺍﺱﻡﺍﻉﻯﻝ);

contentByte.endText();



contentByte.beginText();

contentByte.moveText(0, 0);

   
contentByte.setFontAndSize(BaseFont.createFont(data/simpo.ttf,
BaseFont.IDENTITY_H, true), 30);

contentByte.showText(0-0-ﻡﻭﺱﻯ
ﺍﻭﻍﻝﻯ ﺍﺱﻡﺍﻉﻯﻝ);

contentByte.endText();



contentByte.beginText();

contentByte.moveText(120, 290);

   
contentByte.setFontAndSize(BaseFont.createFont(data/simpo.ttf,
BaseFont.IDENTITY_H, true), 30);

contentByte.showText(120-290-ﻡﻭﺱﻯ
ﺍﻭﻍﻝﻯ ﺍﺱﻡﺍﻉﻯﻝ);

contentByte.endText();



contentByte.beginText();

contentByte.moveText(120, 310);

   
contentByte.setFontAndSize(BaseFont.createFont(data/simpo.ttf,
BaseFont.IDENTITY_H, true), 30);

   
contentByte.showText(120-300-ﻡﻭﺱﻯ ﺍﻭﻍﻝﻯ ﺍﺱﻡﺍﻉﻯﻝ);

contentByte.endText();



document.close();
..

 
Thanks in advance
  

--

Get 100% visibility into Java/.NET code with AppDynamics Lite

It's a free troubleshooting tool designed for production

Get down to code-level detail for bottlenecks, with 2% overhead.

Download for free and get started troubleshooting in minutes.

http://p.sf.net/sfu/appdyn_d2d_ap2
___

iText-questions mailing list

iText-questions@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/itext-questions



iText(R) is a registered trademark of 1T3XT BVBA.

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/

Please check the keywords list before you ask for examples: 
http

Re: [iText-questions] Itext Arabic ctrl+a hidden text problem

2013-06-03 Thread Mohammed AlSayani
Just  try to use this


   const string regex_match_arabic_hebrew =
@[\u0600-\u06FF,\u0590-\u05FF]+;

BaseFont nationalBase =
BaseFont.CreateFont(c:windowsfontsTimes.ttf,
BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
  Font ArabiBold = new Font(nationalBase, 10f, Font.BOLD);
///
//  and create  a phreas  with your font
///


 iTextSharp.text.pdf.PdfPCell cell = new iTextSharp.text.pdf.PdfPCell(new
Phrase(مجموع الوارد, ArabiBold));
cell.RunDirection = PdfWriter.RUN_DIRECTION_RTL;
cell.HorizontalAlignment = 1;
cell.Colspan = 2;
cell.FixedHeight = 40;
Rtable.AddCell(cell);


On 3 June 2013 14:02, Burak Aydın baydi...@hotmail.com wrote:

 Hi,

 My code to produce arabic hidden text pdf is below.  I add text under an
 image. After producing the pdf, I can not see the text when I press ctrl+a.
 This only happens with arabic characters, not with english ones:

 adobe_reader_ctrl_a -- When I press ctrl+a in adobe reader, I can not see
 the text although its location is highlighted.
 document_viewer_ctrl_a -- When I press ctrl+a in ubuntu document viewer,
 I can only see 2 of the hidden texts
 document_viewer_mouse_select-- I press ctrl+a, select one text with
 mouse, and then select all of the page, then I can see whole hidden texts
 in the pdf.

 What may be the cause?

   *  ..*

 *Document document = new Document();
 PdfWriter writer = PdfWriter.getInstance(document, new
 FileOutputStream(output.pdf));
 document.open();
 Image image =
 Image.getInstance(/home/burak/IdeaProjects/example.jpg);
 image.setAbsolutePosition(0, 0);
 document.setPageSize(new Rectangle(image.getWidth(),
 image.getHeight()));
 document.add(image);

 PdfContentByte contentByte;
 contentByte = writer.getDirectContentUnder();
 contentByte.beginText();
 contentByte.moveText(100, 100);
 contentByte.setFontAndSize(BaseFont.createFont(data/simpo.ttf,
 BaseFont.IDENTITY_H, true), 30);
 contentByte.showText(100-100-ﻡﻭﺱﻯ ﺍﻭﻍﻝﻯ ﺍﺱﻡﺍﻉﻯﻝ);
 contentByte.endText();

 contentByte.beginText();
 contentByte.moveText(100, 200);
 contentByte.setFontAndSize(BaseFont.createFont(data/simpo.ttf,
 BaseFont.IDENTITY_H, true), 30);
 contentByte.showText(100-200-ﻡﻭﺱﻯ ﺍﻭﻍﻝﻯ ﺍﺱﻡﺍﻉﻯﻝ);
 contentByte.endText();

 contentByte.beginText();
 contentByte.moveText(100, 300);
 contentByte.setFontAndSize(BaseFont.createFont(data/simpo.ttf,
 BaseFont.IDENTITY_H, true), 30);
 contentByte.showText(100-300-ﻡﻭﺱﻯ ﺍﻭﻍﻝﻯ ﺍﺱﻡﺍﻉﻯﻝ);
 contentByte.endText();

 contentByte.beginText();
 contentByte.moveText(0, 0);
 contentByte.setFontAndSize(BaseFont.createFont(data/simpo.ttf,
 BaseFont.IDENTITY_H, true), 30);
 contentByte.showText(0-0-ﻡﻭﺱﻯ ﺍﻭﻍﻝﻯ ﺍﺱﻡﺍﻉﻯﻝ);
 contentByte.endText();

 contentByte.beginText();
 contentByte.moveText(120, 290);
 contentByte.setFontAndSize(BaseFont.createFont(data/simpo.ttf,
 BaseFont.IDENTITY_H, true), 30);
 contentByte.showText(120-290-ﻡﻭﺱﻯ ﺍﻭﻍﻝﻯ ﺍﺱﻡﺍﻉﻯﻝ);
 contentByte.endText();

 contentByte.beginText();
 contentByte.moveText(120, 310);
 contentByte.setFontAndSize(BaseFont.createFont(data/simpo.ttf,
 BaseFont.IDENTITY_H, true), 30);
 contentByte.showText(120-300-ﻡﻭﺱﻯ ﺍﻭﻍﻝﻯ ﺍﺱﻡﺍﻉﻯﻝ);
 contentByte.endText();

 document.close();*

 ..
 ** **

 **Thanks in advance**


 --
 Get 100% visibility into Java/.NET code with AppDynamics Lite
 It's a free troubleshooting tool designed for production
 Get down to code-level detail for bottlenecks, with 2% overhead.
 Download for free and get started troubleshooting in minutes.
 http://p.sf.net/sfu/appdyn_d2d_ap2
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples:
 http://itextpdf.com/themes/keywords.php




-- 
Best Regards
---
*Mohammed Hashem*
Web Developer @ ArabSea.
www.arabsea.com
00966 - 538 766 152
--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2___
iText-questions mailing list
iText

Re: [iText-questions] Itext 4.2.0

2013-05-30 Thread iText Software

On Thu, 30 May 2013 12:13:17 +0200, Celes Vongola celes_d_vong...@hotmail.fr wrote:I need some library that you used for itext 4.2.0 , could it be possible that you help me? (really urgent)No, because:1. We have never oficially released iText 4.2.0, so you're probably using an unauthorized fork. Who knows what junk is inside it?2. You should upgrade to the latest version of iText because of these reasons: http://lowagie.com/itext2If it's really urgent, this is what others have learned: http://thejoysofcode.com/post/37169347324/when-i-realize-i-used-a-library-that-was-deprecated--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] itext certificateinfo encoding problem

2013-05-27 Thread nicbbb
Hi,

I am trying to extract the subject name from a certificate of a signed PDF.
The certificate contains special characteres (ñ). 
At extraction, the certificateinfo.getsubjectFields returns the subject but
replaces the special character (ñ) by a ? and cuts the output. (Subject:
{C=[ES], OU=[FNMT Clase 2 CA, 513170016], O=[FNMT], CN=[NOMBRE GUARDE?)

Is there a posibility to put the encoding to ISO-8859-1 at extraction of the
certificateinfo?

   PrintWriter out = new PrintWriter(new
FileOutputStream(VERIFICATION));
PdfReader reader = new PdfReader(test.pdf);
AcroFields af = reader.getAcroFields();
ArrayListString names = af.getSignatureNames();
for (String name : names) {
out.println(Signature name:  + name);
PdfPKCS7 pk = af.verifySignature(name);
out.println(Subject:  +
CertificateInfo.getSubjectFields(pk.getSigningCertificate())); }

Regards,
Nicbbb




--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/itext-certificateinfo-encoding-problem-tp4658390.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] itext certificateinfo encoding problem

2013-05-27 Thread Paulo Soares
This may be something that worked correctly in BouncyCastle 1.47,
was changed in 1.48 and will be reverted to the old behavior in the
upcoming 1.49. I say correctly because there's no right way of doing
it as discussed in a BC thread. Please post your PDF.

Paulo

On Mon, May 27, 2013 at 10:25 AM, nicbbb nic...@gmail.com wrote:
 Hi,

 I am trying to extract the subject name from a certificate of a signed PDF.
 The certificate contains special characteres (ñ).
 At extraction, the certificateinfo.getsubjectFields returns the subject but
 replaces the special character (ñ) by a ? and cuts the output. (Subject:
 {C=[ES], OU=[FNMT Clase 2 CA, 513170016], O=[FNMT], CN=[NOMBRE GUARDE?)

 Is there a posibility to put the encoding to ISO-8859-1 at extraction of the
 certificateinfo?

PrintWriter out = new PrintWriter(new
 FileOutputStream(VERIFICATION));
 PdfReader reader = new PdfReader(test.pdf);
 AcroFields af = reader.getAcroFields();
 ArrayListString names = af.getSignatureNames();
 for (String name : names) {
 out.println(Signature name:  + name);
 PdfPKCS7 pk = af.verifySignature(name);
 out.println(Subject:  +
 CertificateInfo.getSubjectFields(pk.getSigningCertificate())); }

 Regards,
 Nicbbb




 --
 View this message in context: 
 http://itext-general.2136553.n4.nabble.com/itext-certificateinfo-encoding-problem-tp4658390.html
 Sent from the iText - General mailing list archive at Nabble.com.

 --
 Try New Relic Now  We'll Send You this Cool Shirt
 New Relic is the only SaaS-based application performance monitoring service
 that delivers powerful full stack analytics. Optimize and monitor your
 browser, app,  servers with just a few lines of code. Try New Relic
 and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2013-05-24 Thread Leonard Rosenthol
I haven't see an actual PDF, so not sure what Acrobat/Reader is doing that
is not expected.

Leonard

On 5/24/13 4:59 AM, linuxunil matheusarle...@gmail.com wrote:

Hello,

I'm using:
- Itext v5.4.1
- Oracle Java v1.7.0_17 32 Bits

My objective: Read a pdf file and fill the metadata.

My code:

# FOR PDF:
public static void main(String[] args) {
  Document document = new Document(PageSize.A4);
  PdfWriter writer = PdfWriter.getInstance(document, outputStream);
  
  String title= new String(Test Title);
  String author   = new String(Test Author);
  String subject  = new String(Test Subject);
  String creator  = new String(Test Creator);
  String keywords = new String(Keyword Test0, Keyword Test1);

  document.addTitle(title);
  document.addAuthor(author);
  document.addSubject(subject);
  document.addCreator(creator);
  document.addKeywords(keywords);
  
  document.open();
  document.close();
  writer.close();

  outputStream.flush();
  outputStream.close();
}

# FOR PDFA-1B:
public static void main(String[] args) {
  Document document = new Document(PageSize.A4);
  PdfAWriter writer = PdfAWriter.getInstance(document, outputStream,
PdfAConformanceLevel.PDF_A_1B);
  
  String title= new String(Test Title);
  String author   = new String(Test Author);
  String subject  = new String(Test Subject);
  String creator  = new String(Test Creator);
  String keywords = new String(Keyword Test0, Keyword Test1);

  document.addTitle(title);
  document.addAuthor(author);
  document.addSubject(subject);
  document.addCreator(creator);
  document.addKeywords(keywords);
  writer.createXmpMetadata();
  
  document.open();
  document.close();
  writer.close();

  outputStream.flush();
  outputStream.close();
}

The Result:
# For pdf: https://www.dropbox.com/s/bx80ro3kavxuwo5/pdfMetadataError.jpg
# For pdfa-1b:
https://www.dropbox.com/s/d73pwenbvak40sb/pdfAMetadataError.jpg

In version 5.3.5 of Itext it's does not happen.




--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Itext-5-4-1-Metadata-Bug-tp4658
360.html
Sent from the iText - General mailing list archive at Nabble.com.

--

Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring
service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php


--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2013-05-24 Thread iText Software
On Fri, 24 May 2013 10:35:03 +0200, Leonard Rosenthol lrose...@adobe.com  
wrote:

 I haven't see an actual PDF, so not sure what Acrobat/Reader is doing  
 that is not expected.

I wouldn't say it's a bug.
When you have the following XMP metadata

x:xmpmeta xmlns:x=adobe:ns:meta/
rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
rdf:Description rdf:about=  
xmlns:dc=http://purl.org/dc/elements/1.1/;dc:formatapplication/pdf/dc:formatdc:descriptionrdf:Altrdf:liThis
  
example shows how to add  
metadata/rdf:li/rdf:Alt/dc:descriptiondc:subjectrdf:Bagrdf:liThis  
example shows how to add  
metadata/rdf:li/rdf:Bag/dc:subjectdc:titlerdf:Altrdf:liHello  
World  
example/rdf:li/rdf:Alt/dc:titledc:creatorrdf:Seqrdf:liBruno  
Lowagie/rdf:li/rdf:Seq/dc:creator/rdf:Description
rdf:Description rdf:about=  
xmlns:pdf=http://ns.adobe.com/pdf/1.3/;pdf:ProduceriText®  
5.4.2-SNAPSHOT ©2000-2012 1T3XT BVBA  
(AGPL-version)/pdf:Producerpdf:KeywordsMetadata, iText,  
PDF/pdf:Keywords/rdf:Description
rdf:Description rdf:about=  
xmlns:xmp=http://ns.adobe.com/xap/1.0/;xmp:CreateDate2013-05-24T10:04:32+02:00/xmp:CreateDatexmp:ModifyDate2013-05-24T10:04:32+02:00/xmp:ModifyDatexmp:CreatorToolMy
  
program using iText/xmp:CreatorTool/rdf:Description
/rdf:RDF/x:xmpmeta

Adobe Reader combines the following information:

pdf:KeywordsMetadata, iText, PDF/pdf:Keywords
dc:subjectrdf:Bagrdf:liThis example shows how to add  
metadata/rdf:li/rdf:Bag/dc:subject

It puts the content of the pdf:Keywords tag between double quotes, and  
it adds all entries of the dc:subject tag, separated with a semicolon.  
For instance:

Metadata, iText, PDF;This example shows how to add metadata

Would you call that a bug? I don't know. I think it's great that Reader  
shows the Keywords as well as the subject info.

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2013-05-24 Thread Leonard Rosenthol
That doesn't make sense.

Can you send me a PDF?

On 5/24/13 4:43 PM, iText Software i...@1t3xt.info wrote:

On Fri, 24 May 2013 10:35:03 +0200, Leonard Rosenthol
lrose...@adobe.com
wrote:

 I haven't see an actual PDF, so not sure what Acrobat/Reader is doing
 that is not expected.

I wouldn't say it's a bug.
When you have the following XMP metadata

x:xmpmeta xmlns:x=adobe:ns:meta/
rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
rdf:Description rdf:about=
xmlns:dc=http://purl.org/dc/elements/1.1/;dc:formatapplication/pdf/dc
:formatdc:descriptionrdf:Altrdf:liThis
example shows how to add
metadata/rdf:li/rdf:Alt/dc:descriptiondc:subjectrdf:Bagrdf:liT
his  
example shows how to add
metadata/rdf:li/rdf:Bag/dc:subjectdc:titlerdf:Altrdf:liHello
World  
example/rdf:li/rdf:Alt/dc:titledc:creatorrdf:Seqrdf:liBruno
Lowagie/rdf:li/rdf:Seq/dc:creator/rdf:Description
rdf:Description rdf:about=
xmlns:pdf=http://ns.adobe.com/pdf/1.3/;pdf:ProduceriText®
5.4.2-SNAPSHOT ©2000-2012 1T3XT BVBA
(AGPL-version)/pdf:Producerpdf:KeywordsMetadata, iText,
PDF/pdf:Keywords/rdf:Description
rdf:Description rdf:about=
xmlns:xmp=http://ns.adobe.com/xap/1.0/;xmp:CreateDate2013-05-24T10:04:
32+02:00/xmp:CreateDatexmp:ModifyDate2013-05-24T10:04:32+02:00/xmp:Mo
difyDatexmp:CreatorToolMy
program using iText/xmp:CreatorTool/rdf:Description
/rdf:RDF/x:xmpmeta

Adobe Reader combines the following information:

pdf:KeywordsMetadata, iText, PDF/pdf:Keywords
dc:subjectrdf:Bagrdf:liThis example shows how to add
metadata/rdf:li/rdf:Bag/dc:subject

It puts the content of the pdf:Keywords tag between double quotes, and
it adds all entries of the dc:subject tag, separated with a semicolon.
For instance:

Metadata, iText, PDF;This example shows how to add metadata

Would you call that a bug? I don't know. I think it's great that Reader
shows the Keywords as well as the subject info.

--

Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring
service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php


--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2013-05-24 Thread iText Software
On Fri, 24 May 2013 11:15:00 +0200, Leonard Rosenthol lrose...@adobe.com  
wrote:



That doesn't make sense.

Can you send me a PDF?


Sure, see attachment.

If you manually change dc:subjectrdf:Bagrdf:liThis example shows how  
to add metadata/rdf:li/rdf:Bag/dc:subject into something else,  
you'll see that the changes appears in the Keywords section of the  
Document Properties.


I've always thought this was normal. Isn't it?
Or is iText adding something it shouldn't add?

xmp_metadata_added.pdf
Description: Adobe PDF document
--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2013-05-24 Thread Leonard Rosenthol
Will investigate - it's definitely not expected (AFAIK)

On 5/24/13 5:20 PM, iText Software i...@1t3xt.info wrote:

On Fri, 24 May 2013 11:15:00 +0200, Leonard Rosenthol
lrose...@adobe.com
wrote:

 That doesn't make sense.

 Can you send me a PDF?

Sure, see attachment.

If you manually change dc:subjectrdf:Bagrdf:liThis example shows
how  
to add metadata/rdf:li/rdf:Bag/dc:subject into something else,
you'll see that the changes appears in the Keywords section of the
Document Properties.

I've always thought this was normal. Isn't it?
Or is iText adding something it shouldn't add?


--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2013-05-24 Thread linuxunil
/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2013-05-24 Thread iText Software
On Fri, 24 May 2013 16:51:21 +0200, linuxunil matheusarle...@gmail.com  
wrote:

 the two problems are related? When you fix one the problem with pdfa-1b  
 will be fixed too?

Maybe there's a problem with the way the XMP is built.
It's the first time I've heard about this problem.
We'll investigate.

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] iText for iOS

2013-05-23 Thread TvT
Hi Mobile,

 So Xamarin  Monotouch provides a PDF library that runs on iOS and Android
 and can be used to generate offline PDFs from a device-side database?

No it doesn't.
However you can try to run iTextSharp on that platform and hope that
everything will work on each device. (Which i personally doubt - but give
it a try) E.g. barcode generation will not work etc.

Someone tried it already and (lucky for you) put up the source code:
https://github.com/mapo80/iTextSharp-Monotouch

http://monotouch.2284126.n4.nabble.com/Itextsharp-td3770742.html
http://monotouch.2284126.n4.nabble.com/Monotouch-and-iTextSharp-td4586709.html
http://web.archiveorange.com/archive/v/6ROpvazIfN1FlyyGh7mW

Regards,
ToM

 ** **

 I don’t see anything on their website though…?

 ** **

 Regards,

 ** **

 [image: Description: Description: Description: Dipar systems Final.jpg] **
 **

 * *

 *Johan Mostert (Jnr)*

 *t| **(**021) 946 1171**f| **(021) 946 1178**m| **082 940 9820
 *

 *NOTICE:* This message and any attachments are confidential and intended
 solely for the addressee. If you have received this message in error,
 please notify Johan Mostert immediately, telephone number +27(0) 21 946
 1171. Any unauthorized use, alteration or dissemination is prohibited.

 DiPAR SYSTEMS (Pty) Ltd accepts no liability whatsoever for any loss
 whether it be direct, indirect or consequential, arising from information
 made available and actions resulting there from 

 ** **

 *From:* Paulo Soares [mailto:pgpsoa...@gmail.com]
 *Sent:* 22 May 2013 18:12

 *To:* Post all your questions about iText here
 *Subject:* Re: [iText-questions] iText for iOS

 ** **

 This is for generating PDFs in the device, offline. iTextSharp would
 reside in the device.

 Paulo

 ** **

 On Wed, May 22, 2013 at 11:48 AM, Mobile mob...@dipar.co.za wrote:

 Thanks Paulo. We already have cross platform apps integrating with
 back-end systems. However we need PDF capabilities offline on the device.*
 ***

  

 [image: Description: Description: Description: Dipar systems Final.jpg] **
 **

 * *

 *Johan Mostert (Jnr)*

 *t| **(**021) 946 1171**f| **(021) 946 1178**m| **082 940 9820
 *

 *NOTICE:* This message and any attachments are confidential and intended
 solely for the addressee. If you have received this message in error,
 please notify Johan Mostert immediately, telephone number +27(0) 21 946
 1171. Any unauthorized use, alteration or dissemination is prohibited.

 DiPAR SYSTEMS (Pty) Ltd accepts no liability whatsoever for any loss
 whether it be direct, indirect or consequential, arising from information
 made available and actions resulting there from 

  

 *From:* Paulo Soares [mailto:pgpsoa...@gmail.com]
 *Sent:* 22 May 2013 12:43


 *To:* Post all your questions about iText here
 *Subject:* Re: [iText-questions] iText for iOS

  

 Thare's also http://xamarin.com/monotouch. It's cross platform for iOS,
 Android and Windows devices.

 Paulo

  

 On Wed, May 22, 2013 at 10:59 AM, TvT tvtre...@nepatec.de wrote:

 No problem doing that offline. I have seen (custom) solutions offering
 that (working offline) and using the html5/image type solution. In online
 mode the files are transfered to the app and are later accessible/viewable
 etc.

 However you'll need a least a basic native app (frame) though.

 If you really are looking for a native IOS lib, PDFTron is the way to go:
 http://www.pdftron.com/pdfnet/mobile/ios_pdf_library.html

 However then you also need a different lib for android, blackberry,
 windows phone (...) and all will behave differently.


 Regards,

 ToM

  

 2013/5/22 Mobile mob...@dipar.co.za

 Thanks Alexis. That’s what I thought.

  

 My challenge is that everything must be do-able offline – i.e. zero
 internet connectivity, so using a web service etc. would cause an issue.**
 **

  

 [image: Description: Description: Description: Dipar systems Final.jpg] **
 **

 * *

 *Johan Mostert (Jnr)*

 *t| **(**021) 946 1171**f| **(021) 946 1178**m| **082 940 9820
 *

 *NOTICE:* This message and any attachments are confidential and intended
 solely for the addressee. If you have received this message in error,
 please notify Johan Mostert immediately, telephone number +27(0) 21 946
 1171. Any unauthorized use, alteration or dissemination is prohibited.

 DiPAR SYSTEMS (Pty) Ltd accepts no liability whatsoever for any loss
 whether it be direct, indirect or consequential, arising from information
 made available and actions resulting there from 

  

 *From:* Alexis Pigeon [mailto:pigeon.ale...@gmail.com]
 *Sent:* 22 May 2013 10:41
 *To:* Post all your questions about iText here
 *Subject:* Re: [iText-questions] iText for iOS

  

 Hi Mobile,

  

 On 22 May 2013 10:09, Mobile mob...@dipar.co.za wrote:

 Hi,

  

 Can iText

Re: [iText-questions] iText for iOS

2013-05-23 Thread Mobile
Hi ToM,

Thanks for the input, I really appreciate it! I'll have a look at the links 
provided.

Regards,

Johan

[Description: Description: Description: Dipar systems Final.jpg]

Johan Mostert (Jnr)
t| (021) 946 1171f| (021) 946 1178m| 082 940 9820
NOTICE: This message and any attachments are confidential and intended solely 
for the addressee. If you have received this message in error, please notify 
Johan Mostert immediately, telephone number +27(0) 21 946 1171. Any 
unauthorized use, alteration or dissemination is prohibited.
DiPAR SYSTEMS (Pty) Ltd accepts no liability whatsoever for any loss whether it 
be direct, indirect or consequential, arising from information made available 
and actions resulting there from

From: TvT [mailto:tvtre...@nepatec.de]
Sent: 23 May 2013 08:45
To: Post all your questions about iText here
Subject: Re: [iText-questions] iText for iOS

Hi Mobile,

So Xamarin  Monotouch provides a PDF library that runs on iOS and Android and 
can be used to generate offline PDFs from a device-side database?
No it doesn't.
However you can try to run iTextSharp on that platform and hope that everything 
will work on each device. (Which i personally doubt - but give it a try) E.g. 
barcode generation will not work etc.

Someone tried it already and (lucky for you) put up the source code:
https://github.com/mapo80/iTextSharp-Monotouch

http://monotouch.2284126.n4.nabble.com/Itextsharp-td3770742.html
http://monotouch.2284126.n4.nabble.com/Monotouch-and-iTextSharp-td4586709.html
http://web.archiveorange.com/archive/v/6ROpvazIfN1FlyyGh7mW
Regards,
ToM

I don't see anything on their website though...?

Regards,

[Description: Description: Description: Dipar systems Final.jpg]

Johan Mostert (Jnr)
t| (021) 946 1171f| (021) 946 1178m| 082 940 9820
NOTICE: This message and any attachments are confidential and intended solely 
for the addressee. If you have received this message in error, please notify 
Johan Mostert immediately, telephone number +27(0) 21 946 
1171tel:%2B27%280%29%2021%20946%201171. Any unauthorized use, alteration or 
dissemination is prohibited.
DiPAR SYSTEMS (Pty) Ltd accepts no liability whatsoever for any loss whether it 
be direct, indirect or consequential, arising from information made available 
and actions resulting there from

From: Paulo Soares [mailto:pgpsoa...@gmail.commailto:pgpsoa...@gmail.com]
Sent: 22 May 2013 18:12

To: Post all your questions about iText here
Subject: Re: [iText-questions] iText for iOS

This is for generating PDFs in the device, offline. iTextSharp would reside in 
the device.
Paulo

On Wed, May 22, 2013 at 11:48 AM, Mobile 
mob...@dipar.co.zamailto:mob...@dipar.co.za wrote:
Thanks Paulo. We already have cross platform apps integrating with back-end 
systems. However we need PDF capabilities offline on the device.

[Description: Description: Description: Dipar systems Final.jpg]

Johan Mostert (Jnr)
t| (021) 946 1171f| (021) 946 1178m| 082 940 9820
NOTICE: This message and any attachments are confidential and intended solely 
for the addressee. If you have received this message in error, please notify 
Johan Mostert immediately, telephone number +27(0) 21 946 
1171tel:%2B27%280%29%2021%20946%201171. Any unauthorized use, alteration or 
dissemination is prohibited.
DiPAR SYSTEMS (Pty) Ltd accepts no liability whatsoever for any loss whether it 
be direct, indirect or consequential, arising from information made available 
and actions resulting there from

From: Paulo Soares [mailto:pgpsoa...@gmail.commailto:pgpsoa...@gmail.com]
Sent: 22 May 2013 12:43

To: Post all your questions about iText here
Subject: Re: [iText-questions] iText for iOS

Thare's also http://xamarin.com/monotouch. It's cross platform for iOS, Android 
and Windows devices.
Paulo

On Wed, May 22, 2013 at 10:59 AM, TvT 
tvtre...@nepatec.demailto:tvtre...@nepatec.de wrote:
No problem doing that offline. I have seen (custom) solutions offering that 
(working offline) and using the html5/image type solution. In online mode the 
files are transfered to the app and are later accessible/viewable etc.
However you'll need a least a basic native app (frame) though.
If you really are looking for a native IOS lib, PDFTron is the way to go:
http://www.pdftron.com/pdfnet/mobile/ios_pdf_library.html
However then you also need a different lib for android, blackberry, windows 
phone (...) and all will behave differently.

Regards,
ToM

2013/5/22 Mobile mob...@dipar.co.zamailto:mob...@dipar.co.za
Thanks Alexis. That's what I thought.

My challenge is that everything must be do-able offline - i.e. zero internet 
connectivity, so using a web service etc. would cause an issue.

[Description: Description: Description: Dipar systems Final.jpg]

Johan Mostert (Jnr)
t| (021) 946 1171f| (021) 946 1178m| 082 940 9820
NOTICE: This message and any attachments are confidential and intended solely 
for the addressee. If you have received this message in error, please notify

[iText-questions] Itext 5.4.1 - Metadata Bug?

2013-05-23 Thread linuxunil
Hello,

I'm using:
- Itext v5.4.1
- Oracle Java v1.7.0_17 32 Bits

My objective: Read a pdf file and fill the metadata. 

My code:

# FOR PDF:
public static void main(String[] args) {
  Document document = new Document(PageSize.A4);
  PdfWriter writer = PdfWriter.getInstance(document, outputStream);
  
  String title= new String(Test Title);
  String author   = new String(Test Author);
  String subject  = new String(Test Subject);
  String creator  = new String(Test Creator);
  String keywords = new String(Keyword Test0, Keyword Test1);

  document.addTitle(title);
  document.addAuthor(author);
  document.addSubject(subject);
  document.addCreator(creator);
  document.addKeywords(keywords);
  
  document.open();
  document.close();
  writer.close();

  outputStream.flush();
  outputStream.close(); 
}

# FOR PDFA-1B:
public static void main(String[] args) {
  Document document = new Document(PageSize.A4);
  PdfAWriter writer = PdfAWriter.getInstance(document, outputStream,
PdfAConformanceLevel.PDF_A_1B);
  
  String title= new String(Test Title);
  String author   = new String(Test Author);
  String subject  = new String(Test Subject);
  String creator  = new String(Test Creator);
  String keywords = new String(Keyword Test0, Keyword Test1);

  document.addTitle(title);
  document.addAuthor(author);
  document.addSubject(subject);
  document.addCreator(creator);
  document.addKeywords(keywords);
  writer.createXmpMetadata();
  
  document.open();
  document.close();
  writer.close();

  outputStream.flush();
  outputStream.close(); 
}

The Result:
# For pdf: https://www.dropbox.com/s/bx80ro3kavxuwo5/pdfMetadataError.jpg
# For pdfa-1b:
https://www.dropbox.com/s/d73pwenbvak40sb/pdfAMetadataError.jpg

In version 5.3.5 of Itext it's does not happen. 




--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Itext-5-4-1-Metadata-Bug-tp4658360.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2013-05-23 Thread linuxunil
Hello,

If you run the example part3.chapter12.MetadataXmp.java with the version of
Itext 5.4.1 you get the same errors.

# Link: https://www.dropbox.com/s/noxpzxcqd6mmc95/pdfMetadataError2.jpg



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Itext-5-4-1-Metadata-Bug-tp4658360p4658361.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] iText for iOS

2013-05-22 Thread Mobile
Hi,

Can iText run on iOS? We create cross platform tools and need to create PDF 
reports on tablets/smartphones for Android, Blackberry and iOS.

Thank you.

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText for iOS

2013-05-22 Thread Alexis Pigeon
Hi Mobile,

On 22 May 2013 10:09, Mobile mob...@dipar.co.za wrote:

  Hi,

 ** **

 Can iText run on iOS? We create cross platform tools and need to create
 PDF reports on tablets/smartphones for Android, Blackberry and iOS.


iText is a Java library. An official C# port (iTextSharp) exists. However,
no Objective-C port has been endorsed, afaik.
Unless you really need the PDF file to be created offline on the device,
you could delegate the generation of the file to a web service (that you
would implement in either Java or C#).

Regards,
alexis
--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText for iOS

2013-05-22 Thread TvT
Hi,

most people who needs to do that convert the pdf to an image/svg and show
it as a html5 page...
E.g. have a look here:
http://www.idrsolutions.com/html_products/

Regards
ToM


2013/5/22 Mobile mob...@dipar.co.za

  Hi,

 ** **

 Can iText run on iOS? We create cross platform tools and need to create
 PDF reports on tablets/smartphones for Android, Blackberry and iOS.

 ** **

 Thank you.

 ** **


 --
 Try New Relic Now  We'll Send You this Cool Shirt
 New Relic is the only SaaS-based application performance monitoring service
 that delivers powerful full stack analytics. Optimize and monitor your
 browser, app,  servers with just a few lines of code. Try New Relic
 and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples:
 http://itextpdf.com/themes/keywords.php

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText for iOS

2013-05-22 Thread Giacomo Giustozzi
Depending on one's level of masochism, there is Avian[1] that can be used
to rum java classes on ios. I'm not sure that the pain is worth the gain in
this case, better stick with native libraries imho.


[1] http://oss.readytalk.com/avian/


On Wed, May 22, 2013 at 10:41 AM, Alexis Pigeon pigeon.ale...@gmail.comwrote:

 Hi Mobile,

 On 22 May 2013 10:09, Mobile mob...@dipar.co.za wrote:

  Hi,

 ** **

 Can iText run on iOS? We create cross platform tools and need to create
 PDF reports on tablets/smartphones for Android, Blackberry and iOS.


 iText is a Java library. An official C# port (iTextSharp) exists. However,
 no Objective-C port has been endorsed, afaik.
 Unless you really need the PDF file to be created offline on the device,
 you could delegate the generation of the file to a web service (that you
 would implement in either Java or C#).

 Regards,
 alexis


 --
 Try New Relic Now  We'll Send You this Cool Shirt
 New Relic is the only SaaS-based application performance monitoring service
 that delivers powerful full stack analytics. Optimize and monitor your
 browser, app,  servers with just a few lines of code. Try New Relic
 and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples:
 http://itextpdf.com/themes/keywords.php

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

  1   2   3   4   5   6   7   8   9   10   >