Re: [iText-questions] Content is moving down when the pdfs are merged

2010-04-12 Thread 1T3XT info
crazykoder wrote:
 Hi
 
 When I merge the pdfs the content is moving down by 1 cm approx. 

How are you merging the PDFs?

Did you create the correct page boundaries?
Did you apply the correct transformation matrix?
Did you look inside the PDF (to the content stream)?
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] Running RUPS as an application

2010-04-12 Thread 1T3XT info
Fred Cohen wrote:
 Is there a simple way to run RUPS as an application? For example - a  
 way to build a portable jar so I can go
   java -jar rups
 and have the GUI run?

I didn't have the time to make a proper release of RUPS yet.
Also: it's not a tool aimed at the general public.
It's a tool for developers.
I use RUPS on a more than regular basis.
I've never felt the need to run it as an executable jar.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


[iText-questions] How to align the top of two columnTexts? (addit. img)

2010-04-12 Thread Peter . Henningsen
Hello,

As I did not receive any feedback yet, I have added two images 
illustrating the problem. My goal is: Left and right column
should have their top (the top of printed chars or images) on the same 
height.

Regards,

Peter Henningsen

--
Hi, 

I have been searching and experimenting for some time now, but found no 
suitable solution (I got the book!). Maybe you have? 

The problem: 
I have two columns on one page to fill with content. No problem doing 
this, but the visible top of both 
columns is not aligned consistently. 
Columns are constructed via setSimpleColumn and filled in composite mode. 
iText version is 2.1.7

Positive example: The first item in the left column is an image (scaled to 
fit), the first item in the right column is a big title text. 
Image and Text are added using seperate columntext objects for each 
column. 
The top of the image is about half the fontsize higher than the top of the 
title text's glyphs UNLESS I use ct_title.setUseAscender(true)on the left 
column. 
So I do that and problem solved. 

Negative example 1: The first item in the left column is an image (scaled 
to fit) followed by body text. The text (one font-size only) runs down the 
left column 
and is continued in the right column. Here, ct_textbody.setUseAscender(
true) has no effect on the top of the right column. 

Negative example 2: The first item in the left column is a Paragraph with 
big font followed by body text. The text (one font-size only) runs down 
the left column 
and is continued in the right column. Here again, 
ct_textbody.setUseAscender(true) has no effect. 

So, is there a way to force columntext to kind of re-do its first-line 
routine when doing setSimpleColumn() on the right, before go()? 
Calling setUseAscender(true)once more before setSimpleColumn() did not 
change a thing. 

Thanks, 
Peterattachment: align_error.gifattachment: align_ok.gif--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

[iText-questions] Post-it like rectangle overlapping table text?

2010-04-12 Thread thomas . rochon
Hi list members!I created a table with several cells (textual content) with iText.Now I'd like to put "Post-it" like comments (rectangle with text comment) above the table cells,so the rectangle is overlapping the cells partially (not completely). Is it possible? If "yes", how is it done?Thanks in advance!Thomas

Steria Mummert Consulting AG
Vorsitzender des Aufsichtsrates: Jürgen Sponnagel - Vorstand: Oliver Nazet (Vors.), Dr. Reinhard Liedl, Dr. Fritz Moser
Gesellschaftssitz: Hamburg - HR B 61 116 Amtsgericht Hamburg - USt-ID-Nr.: DE118671351

Bitte denken Sie an Ihre Verantwortung gegenüber der Umwelt: Jede ausgedruckte E-Mail verursacht ca. 0,3 Gramm CO2.

Diese Nachricht kann vertrauliche Informationen enthalten und ist allein für den Adressaten bestimmt. Wenn Sie nicht der rechtmäßige Empfänger sind, ist der Zugriff, die Weiterleitung, das Kopieren, die Veröffentlichung oder anderweitige Verwendung des Inhalts untersagt. In diesem Fall bitten wir Sie den Absender unverzüglich zu informieren und diese E-Mail sowie sämtliche Kopien dieser Email zu löschen. Der Inhalt von E-Mails innerhalb des Netzwerks kann überprüft werden, um die Übereinstimmung mit den geltenden Firmenrichtlinien und Vorgehens-weisen zu gewährleisten. E-Mails können auf dem Transportweg von Dritten verändert werden, so dass deren Vollständigkeit und Echtheit nicht garantiert werden kann.

This Email communication may contain confidential information and is intended only for the recipient. If you are not the intended recipient you are not allowed to read, copy, distribute, publicize or use the content of this Email in any way. Please notify the sender and delete the Email and any copies of it. The content of Emails within our network may be monitored to ensure compliance with company policies and procedures. Emails can be alterated by third parties in transit. Therefore any Email is susceptible to alteration and its integrity cannot be assured.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Re: [iText-questions] Post-it like rectangle overlapping table text?

2010-04-12 Thread 1T3XT info
thomas.roc...@steria-mummert.de wrote:
 Hi list members!
 
 I created a table with several cells (textual content) with iText.
 Now I'd like to put Post-it like comments (rectangle with text 
 comment) above the table cells,

In PDF language: you want to add sticky notes a.k.a. text annotations.

 so the rectangle is overlapping the cells partially (not completely).
 Is it possible? If yes, how is it done?

If you're talking about text annotations: Yes, it's possible.
Use a cell event to add the appropriate PdfAnnotation.
This is explained in the book.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


[iText-questions] Digital Signature

2010-04-12 Thread Aju Mathew
Hi

I'm newer to itext.
I need to include digital signature in my pdf.
Can you please explain the process.

Thanks
Aju--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Re: [iText-questions] Digital Signature

2010-04-12 Thread Paulo Soares
Go to http://www.itextpdf.com/book/ where the process is explained.

Paulo


From: Aju Mathew [aju.mat...@cs-techno.com]
Sent: Monday, April 12, 2010 11:34 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Digital Signature

Hi

I'm newer to itext.
I need to include digital signature in my pdf.
Can you please explain the process.

Thanks
Aju


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

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

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Re: [iText-questions] Content is moving down when the pdfs are merged

2010-04-12 Thread crazykoder

This is what I am using
--
  public static Document concatPDFs(ListInputStream streamOfPDFFiles,
OutputStream outputStream, boolean paginate) {

Document document = new Document();
if(streamOfPDFFiles==null || streamOfPDFFiles.size()==0) {
return document;
}
try {
  ListInputStream pdfs = streamOfPDFFiles;
  ListPdfReader readers = new ArrayListPdfReader();
  int totalPages = 0;
  IteratorInputStream iteratorPDFs = pdfs.iterator();

  // Create Readers for the pdfs.
  while (iteratorPDFs.hasNext()) {
InputStream pdf = iteratorPDFs.next();
PdfReader pdfReader = new PdfReader(pdf);
readers.add(pdfReader);
totalPages += pdfReader.getNumberOfPages();
  }
  // Create a writer for the outputstream
  PdfWriter writer = PdfWriter.getInstance(document, outputStream);
  
  document.open();
  PdfContentByte cb = writer.getDirectContent(); // Holds the PDF
  // data

  PdfImportedPage page;
  int currentPageNumber = 0;
  int pageOfCurrentReaderPDF = 0;
  IteratorPdfReader iteratorPDFReader = readers.iterator();

  // Loop through the PDF files and add to the output.
  while (iteratorPDFReader.hasNext()) {
PdfReader pdfReader = iteratorPDFReader.next();

// Create a new page in the target for each source page.
while (pageOfCurrentReaderPDF  pdfReader.getNumberOfPages()) {
  document.newPage();
  pageOfCurrentReaderPDF++;
  currentPageNumber++;
  page = writer.getImportedPage(pdfReader, 
pageOfCurrentReaderPDF);
  cb.addTemplate(page, 0, 0);

  // Code for pagination.
  if (paginate) {
BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA,
BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
cb.beginText();
cb.setFontAndSize(bf, 9);
cb.showTextAligned(PdfContentByte.ALIGN_CENTER,  +
currentPageNumber +  of  + totalPages, 520, 5, 0);
cb.endText();
  }
}
pageOfCurrentReaderPDF = 0;
  }
  outputStream.flush();
  document.close();
  outputStream.close();
} catch (Exception e) {
  e.printStackTrace();
} finally {
  if (document.isOpen())
document.close();
  try {
if (outputStream != null)
  outputStream.close();
  } catch (IOException ioe) {
ioe.printStackTrace();
  }
}
System.out.println(Document = +document);
return document;
  }




1T3XT info wrote:
 
 crazykoder wrote:
 Hi
 
 When I merge the pdfs the content is moving down by 1 cm approx. 
 
 How are you merging the PDFs?
 
 Did you create the correct page boundaries?
 Did you apply the correct transformation matrix?
 Did you look inside the PDF (to the content stream)?
 -- 
 This answer is provided by 1T3XT BVBA
 http://www.1t3xt.com/ - http://www.1t3xt.info
 
 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.itextpdf.com/book/
 Check the site with examples before you ask questions:
 http://www.1t3xt.info/examples/
 You can also search the keywords list:
 http://1t3xt.info/tutorials/keywords/
 
 

-- 
View this message in context: 
http://old.nabble.com/Content-is-moving-down-when-the-pdfs-are-merged-tp28213748p28218183.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: 

Re: [iText-questions] HELP NEEDED: PDF V9.x Dynamic Form

2010-04-12 Thread Miller, Billy C CTR USAF AFSOC 623 AOC/CSDI
Please assist... I tried purchasing the book...  getting the following
error...
Site error: the file /affiliate/idevaffiliate.php requires the ionCube
PHP Loader ioncube_loader_fre_4.3.so to be installed by the site
administrator
-Original Message-
From: Miller, Billy C CTR USAF AFSOC 623 AOC/CSDI 
Sent: Monday, April 05, 2010 8:07 AM
To: 'Post all your questions about iText here'
Subject: RE: [iText-questions] HELP NEEDED: PDF V9.x Dynamic Form

I tried to purchase the book but I'm getting the following error
Site error: the file /affiliate/idevaffiliate.php requires the ionCube
PHP Loader ioncube_loader_fre_4.3.so to be installed by the site
administrator

-Original Message-
From: 1T3XT info [mailto:i...@1t3xt.info] 
Sent: Friday, April 02, 2010 1:19 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] HELP NEEDED: PDF V9.x Dynamic Form

Miller, Billy C CTR USAF AFSOC 623 AOC/CSDI wrote:
 Hello:
 
 When I create a form using Livecycle and save the PDF as 9.x, I'm no
 longer able to read the field names and values.  In the past I use
 AcroFields object to extract the field names and values.   I have been
 unable to get the 5.0.1 to extract the fields and values...  Do you
have
 a java example that shows how to extract the fields and values out of
a
 9.x PDF? Your help would be greatly appreciated.

You have created a pure XFA form without an AcroForm counter-part.
Read chapter 8 of the second edition of iText in Action.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] HELP NEEDED: PDF V9.x Dynamic Form

2010-04-12 Thread Bruno Lowagie
Miller, Billy C CTR USAF AFSOC 623 AOC/CSDI wrote:
 Please assist... I tried purchasing the book...  getting the following
 error...
 Site error: the file /affiliate/idevaffiliate.php requires the ionCube
 PHP Loader ioncube_loader_fre_4.3.so to be installed by the site
 administrator

I thought I had already answered this.
Maybe the mail didn't reach you.

The problem is not caused on the itextpdf.com server.
It's a problem on the Manning server.

This is very annoying for me too.
I've been asking Manning to solve this problem for weeks now,
but the problem persists.

I'm forwarding this to supp...@manning.com
in the hope that they'll be able to help you.

best regards,
Bruno

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] Error using pdfsmartcopy

2010-04-12 Thread Mark Storer
Do you have an actual stack trace from the exception?

 

--Mark Storer

  Senior Software Engineer

  Cardiff.com

 

import legalese.Disclaimer;

DisclaimerCardiff DisCard = null;

 



From: John Polley [mailto:jpol...@ujafed.org] 
Sent: Friday, April 09, 2010 11:07 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Error using pdfsmartcopy

 

After going the examples in section 6 of IText in Action (v.2) I have
written a routine to create multiple copies of a single pdf  form. The
following code snippet :

 

Do While reader2.Read

Dim reader As New PdfReader(filename)

Dim baos As New System.IO.MemoryStream()

Dim stamper As New PdfStamper(reader, baos)

Dim acroFields As AcroFields =
stamper.AcroFields

Dim i As Integer = 1

Do While (i = num3)

If IsDBNull(reader2.GetValue(i)) Then

fieldvalue = 

Else

fieldvalue = reader2.GetValue(i)

End If

acroFields.SetField(reader2.GetName(i),
Conversions.ToString(fieldvalue))

i += 1

Loop

stamper.FormFlattening = True

stamper.Close()

Dim newreader As New PdfReader(baos.ToArray)

copy.AddPage(copy.GetImportedPage(newreader, 1))

pagecount += 1

MsgBox(pagecount)

Loop

 

Produces an error - 'the given key was not present in the dictionary' -
when the copy.AddPage(copy.GetImportedPage(newreader, 1)) line is
executed.

 

I'd really appreciate if someone could shed some light on what might be
causing this error.

 

Thanks!

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.801 / Virus Database: 271.1.1/2786 - Release Date: 04/08/10
23:32:00


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Re: [iText-questions] Content is moving down when the pdfs are merged

2010-04-12 Thread Mark Storer
I suggest you check out PdfCopy and PdfSmartCopy instead of using
PdfWriter directly.  They do this sort of thing for you, including
creating pages at the right size/orientation.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
DisclaimerCardiff DisCard = null;
 

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] Content is moving down when the pdfs are merged

2010-04-12 Thread 1T3XT info
crazykoder wrote:
 PdfWriter writer = PdfWriter.getInstance(document, outputStream);

The document above is an A4 document (you didn't specify
a PageSize when creating the Document object so the ISO format
is used).

 page = writer.getImportedPage(pdfReader, pageOfCurrentReaderPDF);

You're importing pages from another document.
Are they in the A4 format too?

-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] How to align the top of two columnTexts? (addit. img)

2010-04-12 Thread 1T3XT info
peter.henning...@wcenter.de wrote:
 
 Hello,
 
 As I did not receive any feedback yet, I have added two images 
 illustrating the problem.

And still I don't understand the problem,
and as long as I don't understand the problem,
I can't help you. I assume the other people
on the list are silent for the same reason.

You are explaining source code.
Instead you should show source code.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


[iText-questions] Merge PDF X-1a Issue – Need H elp

2010-04-12 Thread Sumetha
IText Team,
Could you please assist us in resolving the  below issue. We are using 
ITextSharp dll to merge the PDF’s (these pdf’s are converted from RTF to PDF). 
When we merge its changing the version of PDF document to 1.5 pdf version, even 
though property is set to 1.3 version with X-1a conformance. 
Basically we need final Merged PDF document to be in X-1a format as per printer 
specification to print these merged PDF document. Please let us know what 
changes or setting we need to change to make sure we are getting PDF X-1a 
format 1.3version document after we merge these PDF’s. Any help in this regard 
is greatly appreciated.
Thanks a lot for your time and help.
Below is the sample code: Dim pdfDoc As iTextSharp.text.Document = Nothing
    Dim pdfWriter As iTextSharp.text.pdf.PdfCopy = Nothing
    Dim pdfVersion As iTextSharp.text.pdf.PdfName = 
iTextSharp.text.pdf.PdfWriter.PDF_VERSION_1_3
    'PDF/X-1a Standard need pdf Version 1.3 (so, do not change this)
  pdfDoc = New iTextSharp.text.Document(pdfReader.GetPageSizeWithRotation(1))
    pdfWriter = New PdfCopy(pdfDoc, New 
System.IO.FileStream(PDFOutputFile, IO.FileMode.Create))
    pdfWriter.SetPdfVersion(pdfVersion)
pdfWriter.SetFullCompression()
    pdfWriter.PDFXConformance = 1
 
Thank You


  --
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Re: [iText-questions] Merge PDF X-1a Issue – Need Help

2010-04-12 Thread 1T3XT info
Sumetha wrote:
 When we merge its changing the version of PDF document to 1.5 pdf 
 version, even though property is set to 1.3 version with X-1a conformance.

That's normal:

 pdfWriter.SetFullCompression()

Full compression was introduced in PDF 1.5.
A PDF that is fully compressed can't be read by viewer
that only support PDF 1.4 or earlier, therefore iText
RIGHTFULLY changes the version number.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] Merge PDF X-1a Issue - Need Help

2010-04-12 Thread Leonard Rosenthol
Also, since iText does not contain an actual validator - there is NO WAY to 
ensure the compliance of a merged set of documents using it.

-Original Message-
From: 1T3XT info [mailto:i...@1t3xt.info] 
Sent: Monday, April 12, 2010 12:58 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Merge PDF X-1a Issue - Need Help

Sumetha wrote:
 When we merge its changing the version of PDF document to 1.5 pdf 
 version, even though property is set to 1.3 version with X-1a conformance.

That's normal:

 pdfWriter.SetFullCompression()

Full compression was introduced in PDF 1.5.
A PDF that is fully compressed can't be read by viewer
that only support PDF 1.4 or earlier, therefore iText
RIGHTFULLY changes the version number.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] HELP NEEDED: PDF V9.x Dynamic Form

2010-04-12 Thread Bruno Lowagie
Miller, Billy C CTR USAF AFSOC 623 AOC/CSDI wrote:
 Please assist... I tried purchasing the book...  getting the following
 error...

After another mail to support, the problem was solved.
It's now possible again to buy the book.

Recently a new chapter was added: chapter 13.

In the meantime, I've finished writing ALL chapters,
and I'm now reading and revising the book, based on
the suggestions of the official reviewers and the
remarks posted on this list.

I hope the revised chapters will be made available
through MEAP soon. I'll keep you posted!
best regards,
Bruno

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] What version of Adobe Acrobat?

2010-04-12 Thread Karen Keller
After doing a little more investigative work, it does seem to be something
with my program that is causing the problem, and not the version of the PDF
document.

The error is There was an error opening this document. The file is damaged
and could not be repaired. The error is occurring for Adobe Reader Version
7 (and below I presume). The PDFs work fine in version 8 and above. The
error occurs even if I try working with an old pdf created in 2005, which I
can open up directly in Adobe Reader Version 7 with no problem. It just
doesn't open in my code.

I've tried a simple version of my program which just opens an instance of an
iText Document, reads in the PDF via a pdfReader to my final PDF document
via the AddPage method, and closes the document but even that does not work.
Here is my simple program code. Can anyone see something wrong?

Response.ContentType = Application/pdf
Dim myFinalDocument As New Document
Dim myFinalPDFCopyStream As New PdfCopy(myFinalDocument,
Response.OutputStream)
myFinalDocument.Open()
Dim i As Integer
Dim strExplanationPDFFile As String =
MapPath(pdfs/CrystalReportsWalkthrough.pdf)
Dim ExplanationPDFReader As New PdfReader(New
RandomAccessFileOrArray(strExplanationPDFFile), Nothing)
Dim NExplanationPDFPages As Integer =
ExplanationPDFReader.NumberOfPages
For i = 1 To NExplanationPDFPages

myFinalPDFCopyStream.AddPage(myFinalPDFCopyStream.GetImportedPage(ExplanationPDFReader,
i))
Next
myFinalDocument.Close()
myFinalPDFCopyStream.Close()


Karen


On Fri, Apr 9, 2010 at 2:09 PM, Karen Keller karenckel...@gmail.com wrote:

 Thanks, Mark. I'm being told that they are getting a file corrupted error.
 I only have Adobe Reader 9 and it works fine in that. I haven't had a chance
 to find somewhere where I can test the other versions myself. I'm going to
 try using your setPdfVersion code and see if that helps. I appreciate your
 help.


 On Fri, Apr 9, 2010 at 1:14 PM, Mark Storer msto...@autonomy.com wrote:

  In what way does the PDF not work?  Are they just getting a “not the
 right version” message when they open the file?



 Any time someone opens a PDF with a version MARKED as being newer than the
 viewer (Reader, Acrobat, whatever) they are using, the get a warning
 message.  It’s entirely possible that this error report is simply a result
 of seeing that message.  iText just leaves the original version number in
 place from the original file.  You can call myPdfWriter.setPdfVersion(
 PdfWriter.PDF_VERSION_1_X ), where X is whatever you need to support.







 --Mark Storer

   Senior Software Engineer

   Cardiff.com



 import legalese.Disclaimer;

 DisclaimerCardiff DisCard = null;


   --

 *From:* Karen Keller [mailto:karenckel...@gmail.com]
 *Sent:* Friday, April 09, 2010 4:44 AM

 *To:* Post all your questions about iText here
 *Subject:* Re: [iText-questions] What version of Adobe Acrobat?



 The PDF that is generated from the program is generated via iText and
 isn't saved anywhere, just displayed in a browser, so I don't have a sample
 of that to show you. The final PDF is created from three separate PDFs, two
 of which I attached. These two PDFs were, indeed, generated originally from
 Acrobat 9, and one of them (GFE) has some fields that can be filled in by
 the program. The third PDF is generated dynamically in memory at run-time by
 Reporting Services and isn't saved anywhere.

 On Fri, Apr 9, 2010 at 2:16 AM, 1T3XT info i...@1t3xt.info wrote:

 Karen Keller wrote:
  I recently downloaded and used the iText libary version 5.0.1 in a
  website for a client. For the website, I had to prefill some fields on
  one PDF and concatenate it with two other PDFs and then display the
  resulting package. I am being told that the resultant PDF file can't be
  viewed in anything except Adobe Acrobat 9.0. Why should this be?

 This is not an iText question. You can create PDF documents
 with Acrobat 9 that have functionality that doesn't work
 in Acrobat 8. To have those documents work in Acrobat 8,
 you need to avoid the functionality that was introduced in
 Acrobat 9. That can be a range of things, it would lead us
 too far to list them here.

 The easiest solution would be for you to show us the PDF.
 --
 This answer is provided by 1T3XT BVBA
 http://www.1t3xt.com/ - http://www.1t3xt.info


 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net