Ravi Desai wrote:
> Hi,
>
> We are trying to use iText Library for converting Fax TIFF images to
> PDF. We are observing that with the following code snippet, the output
> PDF page size matches the input TIFF page size but the image within the
> PDF is shrunk by approx 1/4inch when compared to the
Thank You!! your solution work fine!
Fabrizio Accatino wrote:
>
> Hello,
>
> I'm not sure but try to close Document and PdfWrite before reading
> content from "baos".
>
>
> Fabrizio
>
> -
> This SF.net email is spo
Fabrizio Accatino wrote:
> Hello,
>
> I'm not sure but try to close Document and PdfWrite before reading
> content from "baos".
That's correct. Upon document.close() the Cross-Reference table
is written to the byte array. Without the Cross-Reference table
the PDF is not valid.
--
This answe
Hello,
I'm not sure but try to close Document and PdfWrite before reading
content from "baos".
Fabrizio
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdm
Ok,
ByteArrayOutputStream baos =new ByteArrayOutputStream();
Document document = new Document();
PdfWriter writer = PdfWriter.getInstance(document,baos);
try {
int pages = 0;
document.open();
PdfContentByte cb = writer.getDirectContent();
RandomA
Post the source code where you use ByteArrayOutputStream.
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/_
So much code and nothing useful to see. If your problem is with
ByteArrayOutputStream why don't you post the code that uses it?
Paulo
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of marlonbrando
> Sent: Monday, March 17, 2008 5:04 PM
> To: itext
Post a link to some of the failing tiff files so that the problem can be
reproduced.
Paulo
- Original Message -
From: "Vikram Vijayraghavan" <[EMAIL PROTECTED]>
To:
Sent: Monday, April 30, 2007 8:33 PM
Subject: [iText-questions] tiff2pdf problem
> Hi,
>
> We have some tiff files whic
Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of beppecosta
>> Sent: Friday, March 09, 2007 2:33 PM
>> To: itext-questions@lists.sourceforge.net
>> Subject: Re: [iText-questions] Tiff2Pdf
>>
>&
f beppecosta
> Sent: Friday, March 09, 2007 2:33 PM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] Tiff2Pdf
>
>
> I could get the DateTime TAG with
>
> TIFFField dt = dir.getField(306)
>
> but I would like to code
>
> TIFFFiel
-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of beppecosta
>> Sent: Friday, March 09, 2007 2:08 PM
>> To: itext-questions@lists.sourceforge.net
>> Subject: Re: [iText-questions] Tiff2Pdf
>>
>>
>> Paulo,
>
What is the question?
Paulo
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of beppecosta
> Sent: Friday, March 09, 2007 2:08 PM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] Tiff2Pdf
>
>
Paulo,
what shall I include to get the TIFFConstants.TIFFTAG_* ?
Thanks.
Paulo Soares wrote:
>
>
>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of beppecosta
>> Sent: Friday, March 09, 2007 11:34 AM
>> To: itext-questions@lists.sourc
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of beppecosta
> Sent: Friday, March 09, 2007 11:34 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Tiff2Pdf
>
>
> I've already posted on this subject but nobody answered
Hi Paulo,
yesterday the unreadable pdf had this:
2 0 obj < -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of beppecosta
> Sent: Monday, January 22, 2007 4:56 PM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iTex
Here's what I got.
Paulo
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of beppecosta
> Sent: Monday, January 22, 2007 4:56 PM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] tiff2pdf wit
AIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of beppecosta
>> Sent: Monday, January 22, 2007 4:24 PM
>> To: itext-questions@lists.sourceforge.net
>> Subject: Re: [iText-questions] tiff2pdf with jbig2
>>
>>
>> Paulo,
>>
>> Fi
;
> > dp.put(new PdfName("JBIG2Globals"), iref);
> > dic.put(PdfName.DECODEPARMS, dp);
> > img.setAdditional(dic);
> > img.scalePercent(10);
> > doc.add(img);
> > doc.close();
> >
> > I'll have to make a couple of changes in Image to
> "Document.compress = false".
>
> Paulo
>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of Paulo Soares
>> Sent: Friday, January 19, 2007 11:40 AM
>> To: Post all your question
PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Paulo Soares
> Sent: Friday, January 19, 2007 11:40 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] tiff2pdf with jbig2
>
> Clever script. I'll need the jbig2 files and the re
gt; Sent: Friday, January 19, 2007 10:58 AM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] tiff2pdf with jbig2
>
>
> This is the Python script.
>
>
> ---
> import sys
> import re
> import struct
> import glob
> import
This is the Python script.
---
import sys
import re
import struct
import glob
import os
# This is a very simple script to make a PDF file out of the output of a
# multipage symbol compression.
# Run ./jbig2 -s image1.jpeg image1.jpeg ...
# python pdf.py > out.pdf
class Ref:
def __in
Show us the Python script and I'll tell you something about it.
Paulo
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of beppecosta
> Sent: Friday, January 19, 2007 10:27 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions]
On 19/07/06, sirisha <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
> I am using Tiff2Pdf.java from iText.If i have a tiff image of 800 kb it is
> converting it to 250-300kb of pdf file.I need that pdf file size to be
> reduced to the least size around 50-80kb.Is that possible with this
> api?.Please sugges
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Bill Ensley
> Sent: Wednesday, July 19, 2006 5:28 PM
> To: 'Post all your questions about iText here'
> Subject: Re: [iText-questions] Tiff2Pdf
>
>
> >
> iText can't subset images.
>
> Paulo
Not Entirely true, if you are using the Graphics2D object there
Is a constructor to convert images to JPEG.
Alternately, you could convert the image from a TIFF to a JPEG before
You insert it into the PDF Document.
-Bill
>
> > -Original Message---
iText can't subset images.
Paulo
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of sirisha
> Sent: Wednesday, July 19, 2006 9:05 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Tiff2Pdf
>
> Hi,
> I am using Tiff2Pdf.
Those tools are not only useful as they are but are also there as an example of
what can be done. Look at the source and change it according to your needs.
Paulo
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of carl lang
> Sent: Thursday, July 0
At 09:04 AM 4/13/2005, Ben Anderson wrote:
Also, it seems it would be easy to go from pdf2tiff, but I can't seem
to grasp it. Is this possible with itext?
No, it is not.
If not, can someone refer me to a good open source library that does?
JPEDAL - http://www.jpedal.org
Leonard
--
Ben Anderson wrote:
actually I tried using the Tiff2Pdf tool:
public void testTiff2PdfTest() {
String tiffFile = rootDir+"400dpiCCITTGroup4.tif";
String pdfFile = rootDir+"pdfer.pdf";
Tiff2Pdf.main(new String[] {tiffFile, pdfFile});
}
This works, but the top margin is w
Ben Anderson wrote:
The only problem is that it only grabs the first page of the tiff.
Does anyone know how I can grab the second page of the tiff?
Try the Tiff2Pdf tool in this JWS app: www.lowagie.com/iText/itext.jnlp
The code can be found in package com.lowagie.tools.plugins
Also, it seems i
actually I tried using the Tiff2Pdf tool:
public void testTiff2PdfTest() {
String tiffFile = rootDir+"400dpiCCITTGroup4.tif";
String pdfFile = rootDir+"pdfer.pdf";
Tiff2Pdf.main(new String[] {tiffFile, pdfFile});
}
This works, but the top margin is way too big an
I used this code and it worked.
public static void convert4(File inputFile, File outputFile) {
String filename = new String();
String imagename = new String();
Document document = new Document();
try {
PdfWriter writer
33 matches
Mail list logo