Re: [iText-questions] Metadata in signature dictionary

2016-08-12 Thread Leonard Rosenthol
That is correct – you cannot place a metadata stream in a Signature Dictionary.

Can you point us to this “national PDF-based electronic signature spec”?  Seems 
like it may not be valid…

From: Petras Petkus 
Organization: UAB "Mit-Soft"
Reply-To: Post here 
Date: Friday, August 12, 2016 at 7:41 AM
To: Post here 
Subject: [iText-questions] Metadata in signature dictionary

I have a question to PDF experts regarding placing metadata in signature 
dictionary.

Our national PDF-based electronic document specification defines metadata which 
may be included into signature dictionary. ISO 32000-1 section “14.3.2 Metadata 
Streams” states, that “Metadata, both for an entire document and for components 
within a document, may be stored in PDF streams called metadata streams”. 
Therefore as a component, signature dictionary may contain metadata entry. 
Section “7.3.8 Stream Objects” states, that “All streams shall be indirect 
objects”, but this requirement clashes with the requirement for signature 
dictionary entries in “12.8 Digital Signatures”, which states: "When a byte 
range digest is present, all values in the signature dictionary shall be direct 
objects."

I looked at the earlier (2014) draft of ISO 32000-2 and those requirements were 
not changed, probably this contradiction will remain unchanged in the final 
version.

Does that mean that metadata stream may not be included in signature dictionary?

Thank you in advance for any input.
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev___
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] PdfAConformanceException while adding link(anchor) to a document iText5.5.6

2015-09-04 Thread Leonard Rosenthol
External links (eg. A hyperlink out to a specific URI) is perfectly acceptable 
in PDF/A.  

What is wrong with this particular one is unclear without seeing the document 
in question.

Leonard




On 9/4/15, 11:20 AM, "Gerold Krommer"  wrote:

>I would guess, that an external link is not allowed in a PDF/A conformant 
>document.
>
>Regards,
>
>/Gerold
>
>-Ursprüngliche Nachricht-
>Von: avchavan [mailto:avinash.cha...@capgemini.com] 
>Gesendet: Freitag, 04. September 2015 15:20
>An: itext-questions@lists.sourceforge.net
>Betreff: [iText-questions] PdfAConformanceException while adding link(anchor) 
>to a document iText5.5.6
>
>I have the following example and i am coming across Exception in thread "main" 
>com.itextpdf.text.pdf.PdfAConformanceException: Annotation of type /Link 
>should have Contents key. Exception. I am trying to add some text as
>link(anchor) in the PDF document with external link. Is there any issue with 
>my approach of adding the link(anchor)? Am i missing anything?
>
>
>import java.io.FileInputStream;
>import java.io.FileOutputStream;
>import java.io.IOException;
>
>import com.itextpdf.text.Anchor;
>import com.itextpdf.text.Chunk;
>import com.itextpdf.text.Document;
>import com.itextpdf.text.DocumentException;
>import com.itextpdf.text.Font;
>import com.itextpdf.text.FontFactory;
>import com.itextpdf.text.List;
>import com.itextpdf.text.ListItem;
>import com.itextpdf.text.Paragraph;
>import com.itextpdf.text.pdf.BaseFont;
>import com.itextpdf.text.pdf.ICC_Profile;
>import com.itextpdf.text.pdf.PdfAConformanceLevel;
>import com.itextpdf.text.pdf.PdfAWriter; import 
>com.itextpdf.text.xml.xmp.DublinCoreProperties;
>import com.itextpdf.text.xml.xmp.PdfProperties;
>import com.itextpdf.text.xml.xmp.XmpWriter;
>import com.itextpdf.xmp.XMPException;
>
>
>public class SquareBullet {
>
>public static void main(String[] args) throws IOException, 
> DocumentException, XMPException {
>Document document = new Document();
>PdfAWriter writer = PdfAWriter.getInstance(document, new 
> FileOutputStream("list.pdf"), PdfAConformanceLevel.PDF_A_1A);
>writer.setViewerPreferences(PdfAWriter.PageModeUseOutlines);
>writer.setRunDirection(PdfAWriter.RUN_DIRECTION_LTR);
>writer.setTagged(PdfAWriter.markAll);
>writer.createXmpMetadata();
>XmpWriter xmp = writer.getXmpWriter();
>
>DublinCoreProperties.addSubject(xmp.getXmpMeta(), "Subject");
>DublinCoreProperties.setTitle(xmp.getXmpMeta(), "Title", "en_US", 
> "en_US");
>DublinCoreProperties.setDescription(xmp.getXmpMeta(), "Description", 
> "en_US", "en_US");
>PdfProperties.setKeywords(xmp.getXmpMeta(), "Keywords");
>PdfProperties.setVersion(xmp.getXmpMeta(), "1.4");
>document.addLanguage("en_US");
>document.open();
>Font font = FontFactory.getFont("ZapfDingbats.ttf",
>BaseFont.WINANSI, BaseFont.EMBEDDED, 8);
>Font font1 = FontFactory.getFont("ROsanswebtextregular.ttf",
>BaseFont.WINANSI, BaseFont.EMBEDDED, 12);
>ICC_Profile icc = ICC_Profile.getInstance(new FileInputStream("sRGB 
> Color Space Profile.icm"));
>writer.setOutputIntents("Custom", "", "http://www.color.org;, "sRGB 
> IEC61966-2.1", icc);
>List list = new List(10);
>Chunk c = new Chunk(String.valueOf((char)110), font);
>list.setListSymbol(c);
>list.add(new ListItem(new Chunk("Test 1", font1)));
>list.add(new ListItem(new Chunk("Test 2", font1)));
>list.add(new ListItem(new Chunk("Test 3", font1)));
>
>document.add(list);
>
>Paragraph anchorP = new Paragraph();
>Anchor anchor = new Anchor("Google", font);
>anchor.setReference("https://google.com;);
>anchor.setName("Google");
>anchorP.add(anchor);
>document.add(anchorP);
>
>document.close();
>}
>}
>
>
>
>
>--
>View this message in context: 
>http://itext.2136553.n4.nabble.com/PdfAConformanceException-while-adding-link-anchor-to-a-document-iText5-5-6-tp4660892.html
>Sent from the iText 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
>
>--
>___
>iText-questions mailing list
>iText-questions@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>iText(R) is a registered trademark of 

Re: [iText-questions] sign a 'prtected' PDF

2015-04-28 Thread Leonard Rosenthol
No.




On 4/28/15, 6:53 AM, AndreaC. andrea.c...@gmail.com wrote:

Thanks for your time.

Just another question:
is it possible to create a PDF rights mask in order to permit only signing
and deny the all others permissions?

Andrea



--
View this message in context: 
http://itext.2136553.n4.nabble.com/sign-a-prtected-PDF-tp4660802p4660808.html
Sent from the iText mailing list archive at Nabble.com.

--
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] sign a 'prtected' PDF

2015-04-27 Thread Leonard Rosenthol
The correct way to do that with PDF is to use a Certifying Signature at 
creation time.

Leonard




On 4/27/15, 3:15 AM, AndreaC. andrea.c...@gmail.com wrote:

Hi Leonard, thanks for your response.
This document is an official document, created and identified by System with
his HASH digest.
Content of this document can't be modified, but user should be able to sign
it and re-upload on system.

The signature should be a CADES or PADES signature, and in case a CADES
signature, the system perform the hash matching check.

Andrea







--
View this message in context: 
http://itext.2136553.n4.nabble.com/sign-a-prtected-PDF-tp4660802p4660806.html
Sent from the iText mailing list archive at Nabble.com.

--
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] sign a 'prtected' PDF

2015-04-24 Thread Leonard Rosenthol
You can’t prevent “copy on save” - that’s a feature of browsers (and other UA’s 
for the web).

Why do you care about the hash?  Why does it matter if the file is different?  

Leonard




On 4/24/15, 4:49 AM, AndreaC. andrea.c...@gmail.com wrote:

Hi all,
This is my scenarios:
- an user download a PDF file created by Jasper Report from system
- the user chose to open the PDF file with the reader instead of download it
before,
- the browser download it on the user temporary directory
- when the user try to save this opened PDF to an other directory a copy of
the original file was created

that is wrong on my scenario because system had recorded the HASH of the
original PDF document on downloading

To prevent this PDF-copy creation on save I adopt this workaround:

pd4ml:permissions password=empty strongEncryption=false
rights=34820/

Now I have a new requirement, the user should be able to sign this PDF. 
Unfortunately the document so created is unmodifiable and all other tried
rights configurations except then rights=34820 lose the
prevent-PDF-copy-on-save feature.

My question is:
exists some kind of rights configuration that maintains the
prevent-PDF-copy-on-save feature but permit to sign the PDF document?

Thanks in advance,
Andrea



--
View this message in context: 
http://itext.2136553.n4.nabble.com/sign-a-prtected-PDF-tp4660802.html
Sent from the iText mailing list archive at Nabble.com.

--
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] Source of checksum within the xfa form element

2014-12-14 Thread Leonard Rosenthol
Everything is documented - there is nothing private.   If you can’t find 
it, I will be happy to obtain the details.

Leonard




On 12/14/14, 2:41 PM, iText mailing list i...@1t3xt.info wrote:

On 12/11/2014 15:13 PM, nandre wrote:
 When you save a xfa document in adobe, they add a checksum attribute to 
the
 form element. This checksum appears to be a SHA1 digest of the file.
 However, it's unclear as to what is actually fed to the hash. Does 
anyone
 have any idea as to how this is generated? I believe this value is 
needed
 for adobe to validate what's actually in the form xml. I found a topic 
that
 asked the same question, but it was never resolved.

The problem with this issue is that the checksum isn't documented 
anywhere in the XFA specification. Only Adobe knows how it's calculated. 
We have tried to create the hash in many different ways using different 
XML streams. Unfortunately, we didn't have any success...

--

Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clkt
rk
___
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
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/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 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] Link to specific coordinates within PDF?

2014-10-27 Thread Leonard Rosenthol
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] Link annotation to a file attachment

2014-10-24 Thread Leonard Rosenthol
What behavior do you mean? 

-Original Message-
From: Marc Campforts [mailto:marc.campfo...@4st.be] 
Sent: Friday, October 24, 2014 3:39 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Link annotation to a file attachment

But I want the same behavior as a file attachment but with a click on an image. 
Is that possible?

Regards,
Marc
On 23/10/2014 15:10, Leonard Rosenthol wrote:
 For that - the best way to do it is to have a RichMedia annotation 
 (for the video) and then have Actions on your link that play/stop the video.
 Very common operations.

 Leonard

 On 10/23/14, 7:11 AM, Marc Campforts marc.campfo...@4st.be wrote:

 On 17/10/2014 14:27, iText mailing list wrote:
 On 10/17/2014 12:00 PM, Marc Campforts wrote:
 Hello,

 Can I create a link annotation (7.3.2 in Itext in Action) to a file 
 attachment( 7.3.3 in Itext in Action)?

 That is explained in section 16.2.4 of the same book. You need the
 gotoEmbedded() method. As defined in ISO-32000-1, this will only 
 work for embedded PDF files, not for other types of attachments.

 So this only works for embedded PDF Files. What about an embedded 
 .mpeg file? I want to play the embedded movie when clicking on an image.


 
 -
 -
 Comprehensive Server Monitoring with Site24x7.
 Monitor 10 servers for $9/Month.
 Get alerted through email, SMS, voice calls or mobile push 
 notifications.
 Take corrective actions from your mobile device.
 http://p.sf.net/sfu/Zoho
 ___
 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] Link annotation to a file attachment

2014-10-24 Thread Leonard Rosenthol
In that case, use the older Screen/Rendition annotation type - it allows for 
external players.

-Original Message-
From: Marc Campforts [mailto:marc.campfo...@4st.be] 
Sent: Friday, October 24, 2014 10:55 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Link annotation to a file attachment

Playing the video outside of the PDF. In the default video player for your 
computer.

On 24/10/2014 16:24, Leonard Rosenthol wrote:
 What behavior do you mean?

 -Original Message-
 From: Marc Campforts [mailto:marc.campfo...@4st.be]
 Sent: Friday, October 24, 2014 3:39 AM
 To: itext-questions@lists.sourceforge.net
 Subject: Re: [iText-questions] Link annotation to a file attachment

 But I want the same behavior as a file attachment but with a click on an 
 image. Is that possible?

 Regards,
 Marc
 On 23/10/2014 15:10, Leonard Rosenthol wrote:
 For that - the best way to do it is to have a RichMedia annotation 
 (for the video) and then have Actions on your link that play/stop the video.
 Very common operations.

 Leonard

 On 10/23/14, 7:11 AM, Marc Campforts marc.campfo...@4st.be wrote:

 On 17/10/2014 14:27, iText mailing list wrote:
 On 10/17/2014 12:00 PM, Marc Campforts wrote:
 Hello,

 Can I create a link annotation (7.3.2 in Itext in Action) to a 
 file attachment( 7.3.3 in Itext in Action)?

 That is explained in section 16.2.4 of the same book. You need the
 gotoEmbedded() method. As defined in ISO-32000-1, this will only 
 work for embedded PDF files, not for other types of attachments.

 So this only works for embedded PDF Files. What about an embedded 
 .mpeg file? I want to play the embedded movie when clicking on an image.


 ---
 -
 -
 -
 Comprehensive Server Monitoring with Site24x7.
 Monitor 10 servers for $9/Month.
 Get alerted through email, SMS, voice calls or mobile push 
 notifications.
 Take corrective actions from your mobile device.
 http://p.sf.net/sfu/Zoho
 ___
 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




--
___
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] Link annotation to a file attachment

2014-10-23 Thread Leonard Rosenthol
For that - the best way to do it is to have a RichMedia annotation (for
the video) and then have Actions on your link that play/stop the video.
Very common operations.

Leonard

On 10/23/14, 7:11 AM, Marc Campforts marc.campfo...@4st.be wrote:

On 17/10/2014 14:27, iText mailing list wrote:
 On 10/17/2014 12:00 PM, Marc Campforts wrote:
 Hello,

 Can I create a link annotation (7.3.2 in Itext in Action) to a file
 attachment( 7.3.3 in Itext in Action)?

 That is explained in section 16.2.4 of the same book. You need the
 gotoEmbedded() method. As defined in ISO-32000-1, this will only work
 for embedded PDF files, not for other types of attachments.

So this only works for embedded PDF Files. What about an embedded .mpeg
file? I want to play the embedded movie when clicking on an image.

 
-
-
 Comprehensive Server Monitoring with Site24x7.
 Monitor 10 servers for $9/Month.
 Get alerted through email, SMS, voice calls or mobile push
notifications.
 Take corrective actions from your mobile device.
 http://p.sf.net/sfu/Zoho
 ___
 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] [SPAM] Re: [SPAM] Re: How to determine what is visible

2014-10-22 Thread Leonard Rosenthol
On 10/22/14, 1:01 PM, FDnC Red fdnc...@yahoo.com wrote:

Whoa there Michael.  This may be the key concept that I'm missing.

Yes, this is what Michael and I have been trying to explain to you!   And
it¹s clear that you need to read either the PDF spec and/or a good book
that explains all thisŠ


So with this partial stream, are you saying that everything from Graphics
State Save (line 2) to Graphics State Restore (line 20) is invisible
aka clipped because of the W n on lines 6 and 7?  I was thinking the W
and n only went with the preceding rectangle.

The W  n go with the preceding rectangle (in this example) to DEFINE the
clipping region - that is then APPLIED to the rest of the graphic state.
So that YES, the text (in this example) will only show IF it intersects
with the clipping area.


Leonard


--
___
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] [SPAM] Re: [SPAM] Re: How to determine what is visible

2014-10-22 Thread Leonard Rosenthol
No bother - glad it’s finally sinking in.

(and I’ll go take a look at the clipping section and see if I can clean it
up!!)

Leonard

On 10/22/14, 1:52 PM, FDnC Red fdnc...@yahoo.com wrote:

Thanks Leonard.  I do have the spec and I have read it.  That doesn't
mean I understand all of it.  I also have your book and while easier to
read and understand I didn't understand this nuance when reading the
chapter 2 part about clipping.  I'm sorry to be a bother and I appreciate
your help.

Darren



On Wednesday, October 22, 2014 12:47 PM, Leonard Rosenthol
lrose...@adobe.com wrote:
On 10/22/14, 1:01 PM, FDnC Red fdnc...@yahoo.com wrote:

Whoa there Michael.  This may be the key concept that I'm missing.

Yes, this is what Michael and I have been trying to explain to you!   And
it¹s clear that you need to read either the PDF spec and/or a good book
that explains all thisŠ





So with this partial stream, are you saying that everything from Graphics
State Save (line 2) to Graphics State Restore (line 20) is invisible
aka clipped because of the W n on lines 6 and 7?  I was thinking the W
and n only went with the preceding rectangle.

The W  n go with the preceding rectangle (in this example) to DEFINE the
clipping region - that is then APPLIED to the rest of the graphic state.
So that YES, the text (in this example) will only show IF it intersects
with the clipping area.


Leonard


--
___
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] [SPAM] Re: How to determine what is visible

2014-10-21 Thread Leonard Rosenthol
It sounds like a new read through the PDF standard or a book such as mine
or Bruno’s would be helpful for you.

Clipping paths are used to CHANGE what the user sees by “clipping” visible
objects to a specific area, so that anything outside the clip will be
hidden.  So if you are concerned about hidden objects, you would need to
evaluate the clipping regions (vs. throwing them away) and apply them
against impacted content.

Z-ordering is defined in PDF by the order of the operators in the stream.
First in, First Drawn - so that the first graphic object in the stream has
the lowest (bottom) z-index and then each after increases that z-index
(ie. Goes on top).

Leonard

On 10/21/14, 11:25 AM, FDnC Red fdnc...@yahoo.com wrote:

Leonard, Michael,
Thanks for your response.  Here's a followup.

Leonard - You mention clipping paths.  I'm already filtering on operator
W and W* to find clipping paths and excluding those paths.  Are you
saying there's an another way to determine clipping paths that I may not
be filtering out?  If so please advise.

Michael, Leonard - I understand your rendering comments.  What I don't
understand is how I could ever tell what's on top of what.  Ideally there
would be a Z-order to the paths but I see no such thing.  Without such a
mechanism I'm not sure how I would tell what is on top and what is not.
Did I miss the z-order operator or some such thing?

Thanks,
Darren



On Monday, October 20, 2014 10:35 AM, mkl m...@wir-sind-cool.org wrote:
Darren,

Leonard Rosenthol wrote



 The only way to do that is to basically render the page and then analyze
 each path.   The most common reason (beyond what you¹ve already
mentioned)
 is that they are clipped out - meaning that there is a clipping path in
 place and these are outside of it.

Another very common cause is that the line is drawn... and then covered by
something else.

The one page in your PDF has an extremely large content stream, more than
5MB uncompressed, so it is very likely that some things drawn in it are
covered by others.

To check for this, you'll have to parse it, remember all the objects you
are
interested in, and check whether any newly drawn object covers any of
them,
partially or completely. I.e. you'll basically have to render the page,
just
like Leonard said. ;)

Regards,   Michael



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/How-to-determine-what-is-visibl
e-tp4660471p4660473.html
Sent from the iText - General mailing list archive at Nabble.com.

--

Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
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

--

Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
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

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
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] How to determine what is visible

2014-10-20 Thread Leonard Rosenthol
The only way to do that is to basically render the page and then analyze
each path.   The most common reason (beyond what you¹ve already mentioned)
is that they are clipped out - meaning that there is a clipping path in
place and these are outside of it.

Leonard

On 10/20/14, 9:25 AM, FDnC Red fdnc...@yahoo.com wrote:

I'm working on finding all the horizontal and vertical
lines/paths/rectangles of a PDF file by analyzing the operands adn
operators.  Most of the PDF files are drafted with Adobe InDesign.  I'm
running into some problems where it appears that only certain things are
visible in the PDF but there are many lines and other things not visible
when Acrobat draws the PDF.  Is there a way to tell which objects will be
visible when the PDF is rendered to the screen with Acrobat?

Attached is pdf.jpg which is a cropped image of what Acrobat draws to the
screen.  Also attached is wireframe.jpg which is what PitStop Pro shows
when wireframe viewing is enabled of the same region of the PDF as
pdf.jpg.  You can see that there are dozens of lines, paths, rectangles,
etc that are not visible when Acrobat draws it to the screen.  With my
line finding routine, i only want to find the lines that are visible.
(The original PDF is also attached)

I've already filtered out (rightly or wrongly) things that are not
stroked, not filled, and clipping paths but there are still tons of
invisible objects.

Thanks for your consideration.
Darren


--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
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] [SPAM] Re: CTM + re

2014-09-18 Thread Leonard Rosenthol
Yes - all geometry in PDF is Cartesian.  It makes more sense that way :).

Leonard

From: FDnC Red fdnc...@yahoo.commailto:fdnc...@yahoo.com
Reply-To: FDnC Red fdnc...@yahoo.commailto:fdnc...@yahoo.com, Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Thursday, September 18, 2014 at 12:42 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] [SPAM] Re: CTM + re

Thanks Michael.  I guess another way of saying what you said is that the points 
returned from the content stream are Cartesian points.  I keep forgetting PDF 
puts 0,0 in the BL instead of TL.

So in order to calculate all four points for the rectangle I should be able to 
do something like this, right?

41.906 201.086 0.936 -69.448 re

Top Left X = x = 41.906
Top Left Y = y + height = 201.086 + -69.448  (yes, i'm a bit confused by the 
negative height)
Bottom Right X = x + width = 41.906 + 0.936
Bottom Right Y = y = 201.086

Then do the matrix math on the TL points then the BR points.

Thanks,
Darren




On Thursday, September 18, 2014 9:42 AM, mkl 
m...@wir-sind-cool.orgmailto:m...@wir-sind-cool.org wrote:


Darren,

FDnC Red wrote
 1) Am I transforming this rectangle by the matrix correctly?

Well, you are not transforming the rectangle but merely the two corner
points on one diagonal (rectXPt, rectYPt) and (tempEndXPt, tempEndYPt).

In case you merely want to consider transformations like the one in your
message, i.e.

 1.1342565 0 0 1.199793 0 0 cm

only transforming those two points suffices because this transformation
matrix only scales but neither rotates nor skews. Thus, you know the
transformed rectangle will have edges parallel to the x and y axis
respectively.

If you want to consider generic transformations which may rotate or skew,
though, you'll have to transform all four points (well, it actually suffices
to transform three because the image of the rectangle will still be some
parallelogram which allows you to calculate the fourth point using the other
three points).


 2) Is there an easier way?


It depends on your definition of easier. If you are well acquainted with
linear algebra, writing it using the iText Vector and Matrix classes might
look more intuitive. The calculations behind the scenes are the same,
though.

Regards,  Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/CTM-re-tp4660398p4660401.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk
___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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



--
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/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] Add XFA form into a PDF

2014-09-01 Thread Leonard Rosenthol
That would require you to completely parse and understand the semantics of
the ³normal² PDF and then recode that using the XFA grammar.

NOT a trivial piece of workŠ

Leonard

On 9/1/14, 8:42 AM, YunYi yiyun0...@hotmail.com wrote:

Hi,
   There is a normal PDF document, and I want to change it to a XFA form
document. How to  achieve that?

Thanks in advance.
   



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Add-XFA-form-into-a-PDF-tp46603
09.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


--
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] Filled PDF can't convert PS

2014-09-01 Thread Leonard Rosenthol
Are you using the latest version of pdf2ps?

On 9/1/14, 10:17 AM, Mester József mesterj...@gmail.com wrote:

Hello

I have lot of PDF what I fill with background process with PdfStamper
and print with pdf2ps and LPR (on Debian linux)
When I trying print unfilled pdf it is ok, and generated ps printed .
When I fill with my program the generated ps cannot printed...
I have no idea why.
Please help.
I use Stamper as I saw in the IText in action book.

Joe



--

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


--
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] Regarding genration of Pdf using itextpdf jar in android,

2014-07-24 Thread Leonard Rosenthol
Unless you simply mean that there will be 8 pages in the document - in
which case that¹s a pretty small document.

On 7/24/14, 11:07 AM, iText mailing list i...@1t3xt.info wrote:

On 7/24/2014 11:45 AM, gaurav bhoyar wrote:
 Actually i want to make PDF   which has a length of 8page.Is it
 possible to generate that much long pdf length.

The implementation notes in the PDF specification will inform you that
the maximum size of a PDF page is 14400 by 14400 user units.
By default, 1 user unit equals 1 point. 1 inch equals 72 points.
As you don't tell us anything about the page size (is it A4? LETTER?
LEGAL?), you'll have to do the math to find out if 8 pages fit into
14400 points.
If not, you can change the user unit.

--

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] Why is PdfName.ON lower case and how to submit patch/trigger a code change?

2014-07-08 Thread Leonard Rosenthol
PDF Names are case sensitive - so Acrobat is behaving correctly and the
Chrome browser is being lenient (though not necessarily in a good way!)

Leonard

On 7/8/14, 9:25 AM, Linda Briesemeister linda.briesemeis...@sri.com
wrote:

Hello,

We are evaluating iText 5.5.1 for our needs and I came upon the following
peculiarity.  We want to generate a PDF that has layers (optional content
groups or OCGs) where one layer is only shown when viewed in a reader and
not when printed and the other layer is only shown when printed but not
in online view.

I worked from one of the iText examples and created the PDF with this
code (just part to keep length of post short):
...
Document document = new Document();
PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream(file));
writer.setPdfVersion(PdfWriter.VERSION_1_5);
document.open();
PdfContentByte cb = writer.getDirectContent();

// 1) generate only View:
PdfLayer not_printed = new PdfLayer(not printed, writer);
not_printed.setOnPanel(ON_PANEL);
not_printed.setOn(true);
not_printed.setPrint(Print, false);
cb.beginLayer(not_printed);
ColumnText.showTextAligned(cb, Element.ALIGN_LEFT, new Phrase(
ONLY IN VIEW), 50, 600, 0);
cb.endLayer();

// 2) generate only Print:
PdfLayer only_printed = new PdfLayer(only printed, writer);
only_printed.setOnPanel(ON_PANEL);
only_printed.setView(false);
only_printed.setPrint(Print, true);  // - this turns out to be
the culprit...
cb.beginLayer(only_printed);
ColumnText.showTextAligned(cb, Element.ALIGN_LEFT, new Phrase(
ONLY WHEN PRINTED), 50, 400, 0);
cb.endLayer();

document.close();
...

This generates a PDF that has the two phrases ONLY IN VIEW and ONLY
WHEN PRINTED at different locations on the first page.  Opening the
resulting PDF in Chrome browser, the first phrase shows and when clicking
Print, the preview shows only the second phrase.  This is what I had
intended.

Now opening the same PDF in Adobe Reader 11, the view is correct (only
the first phrase shows) but when I click Print, the preview shows neither
the second (his would be correct) nor the first (this would be incorrect)
phrase -- the page is just blank.  Poking around with the excellent RUPS
tool (thank you!) and editing the PDF with Acrobat Pro, I realized that
after Acrobat Pro, the /PrintState setting is /ON but iText originally
generated the value /on -- it seems that Adobe Reader is case sensitive
here!  I used RUPS to edit the iText generated PDF as well and simply
replaced /on with /ON for the /PrintState and -- voila -- Adobe Reader
behaves as I would expect showing the second phrase in the print preview.

A quick look into the class com.itextpdf.text.pdf.PdfName.ON reveals that
the string is indeed lower case.  However, the corresponding PdfName.OFF
is upper case (and there is a PdfName.Off that is mixed case).  I think
our problem could be fixed by patching PdfName.ON to be instantiated with
ON rather than on -- would this be of interest by iText?  I'd b happy
to provide more details, code, and even my little unit test that I wrote
against it.

From browsing quickly through the code bases, I only see PdfName.ON used
in the context of OCGs, where the upper case might be the right way to
go.

Thanks,
Linda


--

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/

Re: [iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread Leonard Rosenthol
Did you try using Adobe Acrobat (even a trial version) to see if it can reduce 
the size of your PDFs?  Depending on what is in there, and what options are 
important to you (embedded fonts, high quality images, etc.) it may not be 
possible to reduce the size.

Leonard

From: Suresh Amsala sureshinfo...@gmail.commailto:sureshinfo...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, July 8, 2014 at 10:45 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] [SPAM] Re: Reduce PDF file size

I am uploading 20 MB pdf file it contains images and text and i want to 
compress this file size to bellow 1 MB using iTextSharp in C#.

How to do this? I tried TVT's Sample code but the file does not compressing I 
mean the file size is same before uploading and after uploading.


On Tue, Jul 8, 2014 at 5:04 PM, TvT 
tvtre...@nepatec.demailto:tvtre...@nepatec.de wrote:
There are several options but mkl is right: You need to be certain that there 
are unused things in your pdf.
To get an idea whats possible try the following two options in adobe acrobat:
File  Save As  Optimized PDF..., and File  Save As  Reduced Size PDF

In iText you got several options:

- enable compression
- remove unused objects
- remove fields, annotations etc. if you don't need those anymore

However you need to be more specific about your situation. Maybe you merged two 
PDFs and didn't used PdfCopy instead of PdfSmartCopy - who knows?

Still some code which shows some of the stuff:

PdfStamper stamper = new PdfStamper(reader, fs, 
PdfWriter.VERSION_1_5);PdfWriter writer = stamper.Writer;
writer.SetPdfVersion(PdfWriter.PDF_VERSION_1_5);
writer.CompressionLevel = pdf.PdfStream.BEST_COMPRESSION;
reader.RemoveFields();
reader.RemoveUnusedObjects();
stamper.Reader.RemoveUnusedObjects();

stamper.SetFullCompression();
stamper.Writer.SetFullCompression();
stamper.Close();






2014-07-08 12:42 GMT+02:00 mkl 
m...@wir-sind-cool.orgmailto:m...@wir-sind-cool.org:

Amsala Suresh,

Suresh Amsala wrote
 I want to compress a *PDF file size from MB's to KB's* (if the file size
 is 5 MB then it should be compressed in to KB's like 500 KB or 600 KB).

What information in those PDFs is superfluous in your context and can be
thrown away?

Regards,   Michael

PS: Knowing nothing about the PDFs in question it is hard to tell whether or
not they can be compressed at all. There of course are some techniques like

* replacing images with lower-resolution or lower-quality replacements (but
you have not told us whether there are images in those PDFs and whether they
may be downgraded);
* removing embedded fonts if you know they are available to the target
audience PDF viewers and provide the required information (but you have not
told us whether there are such embedded fonts);
* re-compressing the streams at highest compression setting and switching to
object streams (but the files may already use those settings);
* hunting for duplicate objects like identical header images included
separately in the file (but you have not indicated whether there are such
duplicates)...



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Reduce-PDF-file-size-tp4660118p4660119.html
Sent from the iText - General mailing list archive at Nabble.com.

--
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.netmailto: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.netmailto: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 

Re: [iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread Leonard Rosenthol
I understand your end goal – but doing that ONCE will show if it’s even 
possible to reduce the size of your file…

As we’ve been trying to explain, there are MANY THINGS that you could POSSIBLY 
do to reduce a PDFs size…BUT ONLY YOU can decide which ones you are willing to 
accept and then if those choices will enable the results you want.

Leonard

From: TvT tvtre...@nepatec.demailto:tvtre...@nepatec.de
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, July 8, 2014 at 11:18 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] [SPAM] Re: Reduce PDF file size

Ok Suresh,

that is not possible. Some pdfs do not contain any images, nor any unused 
objects - size reduction is not possible in that case even if the pdf is 200 MB.
I am guessing you want to reduce the size of Pdfs which mostly (or only) 
contain images (e.g. PDFs created from a scanner etc).
You want to reduce the quality of the contained images so that the final size 
will be much smaller...?

You need to be more specific here...



2014-07-08 17:09 GMT+02:00 Suresh Amsala 
sureshinfo...@gmail.commailto:sureshinfo...@gmail.com:
Dear Leonard Rosenthol,

I didn't try using Adobe Acrobat but i want to do through programmatically not 
manually why because that is not a fixed size it may vary and the files should 
be uploaded by users.

The quality should maintain 70%-80% compare to original pdf.The remaining 
things I don't mine like fonts,headers etc.


On Tue, Jul 8, 2014 at 8:25 PM, Leonard Rosenthol 
lrose...@adobe.commailto:lrose...@adobe.com wrote:
Did you try using Adobe Acrobat (even a trial version) to see if it can reduce 
the size of your PDFs?  Depending on what is in there, and what options are 
important to you (embedded fonts, high quality images, etc.) it may not be 
possible to reduce the size.

Leonard

From: Suresh Amsala sureshinfo...@gmail.commailto:sureshinfo...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, July 8, 2014 at 10:45 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] [SPAM] Re: Reduce PDF file size

I am uploading 20 MB pdf file it contains images and text and i want to 
compress this file size to bellow 1 MB using iTextSharp in C#.

How to do this? I tried TVT's Sample code but the file does not compressing I 
mean the file size is same before uploading and after uploading.


On Tue, Jul 8, 2014 at 5:04 PM, TvT 
tvtre...@nepatec.demailto:tvtre...@nepatec.de wrote:
There are several options but mkl is right: You need to be certain that there 
are unused things in your pdf.
To get an idea whats possible try the following two options in adobe acrobat:
File  Save As  Optimized PDF..., and File  Save As  Reduced Size PDF

In iText you got several options:

- enable compression
- remove unused objects
- remove fields, annotations etc. if you don't need those anymore

However you need to be more specific about your situation. Maybe you merged two 
PDFs and didn't used PdfCopy instead of PdfSmartCopy - who knows?

Still some code which shows some of the stuff:

PdfStamper stamper = new PdfStamper(reader, fs, 
PdfWriter.VERSION_1_5);PdfWriter writer = stamper.Writer;
writer.SetPdfVersion(PdfWriter.PDF_VERSION_1_5);
writer.CompressionLevel = pdf.PdfStream.BEST_COMPRESSION;
reader.RemoveFields();
reader.RemoveUnusedObjects();
stamper.Reader.RemoveUnusedObjects();

stamper.SetFullCompression();
stamper.Writer.SetFullCompression();
stamper.Close();






2014-07-08 12:42 GMT+02:00 mkl 
m...@wir-sind-cool.orgmailto:m...@wir-sind-cool.org:

Amsala Suresh,

Suresh Amsala wrote
 I want to compress a *PDF file size from MB's to KB's* (if the file size
 is 5 MB then it should be compressed in to KB's like 500 KB or 600 KB).

What information in those PDFs is superfluous in your context and can be
thrown away?

Regards,   Michael

PS: Knowing nothing about the PDFs in question it is hard to tell whether or
not they can be compressed at all. There of course are some techniques like

* replacing images with lower-resolution or lower-quality replacements (but
you have not told us whether there are images in those PDFs and whether they
may be downgraded);
* removing embedded fonts if you know they are available to the target
audience PDF viewers and provide the required information (but you have not
told us whether there are such embedded fonts);
* re-compressing the streams at highest compression setting and switching to
object streams (but the files may already use those settings);
* hunting for duplicate objects like identical header images included
separately in the file (but you have not indicated whether there are such
duplicates)...



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Reduce-PDF

Re: [iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread Leonard Rosenthol
Just remember that doing that is considered a REFRYING operation and is quite 
LOSSY.  If that’s OK for your content – feel free, but just make sure you 
understand the risks involved in doing so.

Leonard

From: Carlos Arturo Bernal Carvajal 
bernalcarva...@gmail.commailto:bernalcarva...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, July 8, 2014 at 11:38 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] [SPAM] Re: Reduce PDF file size

You could try using Ghostscript after generating the PDF width iText. 
http://www.ghostscript.com/

It works really good for me. I work at a photobook internet company and we 
generate the print PDF's using iText, but the output can be huge, like 500mb, 
so we use Ghostscript to compress the resulting file.

We use the following command;

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.7 -dPDFSETTINGS=/prepress 
-sDefaultRGBProfile=/home/ubuntu/cronjob_autopdf_pixote2/colorProfiles/AdobeRGB1998.icc
 
-sDefaultCMYKProfile=/home/ubuntu/cronjob_autopdf_pixote2/colorProfiles/CoatedFOGRA39.icc
 -dOverrideICC=true 
-sOutputICCProfile=/home/ubuntu/cronjob_autopdf_pixote2/colorProfiles/CoatedFOGRA39.icc
 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=${file/.pdf/}_optimized.pdf $file


2014-07-08 10:18 GMT-05:00 TvT 
tvtre...@nepatec.demailto:tvtre...@nepatec.de:
Ok Suresh,

that is not possible. Some pdfs do not contain any images, nor any unused 
objects - size reduction is not possible in that case even if the pdf is 200 MB.
I am guessing you want to reduce the size of Pdfs which mostly (or only) 
contain images (e.g. PDFs created from a scanner etc).
You want to reduce the quality of the contained images so that the final size 
will be much smaller...?

You need to be more specific here...



2014-07-08 17:09 GMT+02:00 Suresh Amsala 
sureshinfo...@gmail.commailto:sureshinfo...@gmail.com:

Dear Leonard Rosenthol,

I didn't try using Adobe Acrobat but i want to do through programmatically not 
manually why because that is not a fixed size it may vary and the files should 
be uploaded by users.

The quality should maintain 70%-80% compare to original pdf.The remaining 
things I don't mine like fonts,headers etc.


On Tue, Jul 8, 2014 at 8:25 PM, Leonard Rosenthol 
lrose...@adobe.commailto:lrose...@adobe.com wrote:
Did you try using Adobe Acrobat (even a trial version) to see if it can reduce 
the size of your PDFs?  Depending on what is in there, and what options are 
important to you (embedded fonts, high quality images, etc.) it may not be 
possible to reduce the size.

Leonard

From: Suresh Amsala sureshinfo...@gmail.commailto:sureshinfo...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, July 8, 2014 at 10:45 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] [SPAM] Re: Reduce PDF file size

I am uploading 20 MB pdf file it contains images and text and i want to 
compress this file size to bellow 1 MB using iTextSharp in C#.

How to do this? I tried TVT's Sample code but the file does not compressing I 
mean the file size is same before uploading and after uploading.


On Tue, Jul 8, 2014 at 5:04 PM, TvT 
tvtre...@nepatec.demailto:tvtre...@nepatec.de wrote:
There are several options but mkl is right: You need to be certain that there 
are unused things in your pdf.
To get an idea whats possible try the following two options in adobe acrobat:
File  Save As  Optimized PDF..., and File  Save As  Reduced Size PDF

In iText you got several options:

- enable compression
- remove unused objects
- remove fields, annotations etc. if you don't need those anymore

However you need to be more specific about your situation. Maybe you merged two 
PDFs and didn't used PdfCopy instead of PdfSmartCopy - who knows?

Still some code which shows some of the stuff:

PdfStamper stamper = new PdfStamper(reader, fs, 
PdfWriter.VERSION_1_5);PdfWriter writer = stamper.Writer;
writer.SetPdfVersion(PdfWriter.PDF_VERSION_1_5);
writer.CompressionLevel = pdf.PdfStream.BEST_COMPRESSION;
reader.RemoveFields();
reader.RemoveUnusedObjects();
stamper.Reader.RemoveUnusedObjects();

stamper.SetFullCompression();
stamper.Writer.SetFullCompression();
stamper.Close();






2014-07-08 12:42 GMT+02:00 mkl 
m...@wir-sind-cool.orgmailto:m...@wir-sind-cool.org:

Amsala Suresh,

Suresh Amsala wrote
 I want to compress a *PDF file size from MB's to KB's* (if the file size
 is 5 MB then it should be compressed in to KB's like 500 KB or 600 KB).

What information in those PDFs is superfluous in your context and can be
thrown away?

Regards,   Michael

PS: Knowing nothing about the PDFs in question it is hard to tell whether or
not they can be compressed at all. There of course are some techniques like

* replacing

Re: [iText-questions] colorspace exception during images extraction on a existing pdf

2014-05-27 Thread Leonard Rosenthol
Actually, it is NOT a JPEG with a CMYK profile.

The colorspace that you showed in the error: [/Indexed, /DeviceCMYK, 244,
274 0 R]
1 - That means that the data is indexed, which can¹t be used with JPEG
data.
2 - As it says DeviceCMYK that means that the data is (most likely) raw
CMYK numbers and not a profile. HOWEVER, I¹d need to see the object at 274
to be certain.

Leonard

On 5/27/14, 2:31 AM, giansluca giansl...@gmail.com wrote:

ok thanks! ... 
strange because the image is a JPG with CMYK profile ... i can open pdf in
photoshop and see or save image correctly ..

Gian



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/colorspace-exception-during-ima
ges-extraction-on-a-existing-pdf-tp4660004p4660006.html
Sent from the iText - General mailing list archive at Nabble.com.

--

The best possible search technologies are now affordable for all
companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191iu=/4140/ostg.clkt
rk
___
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


--
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191iu=/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] I Want to Change all the Links Destination of Existing Pdf to (PdfDestination.XYZ,-1,-1,0.0F);

2014-04-03 Thread Leonard Rosenthol
Because you are replacing the destination with a single destination. You
need to GET the existing link destination and modify it.

Leonard

On 4/3/14, 4:53 AM, Paresh Tahiliani paresh...@gmail.com wrote:

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;

import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;

import com.itextpdf.text.pdf.PdfAction;
import com.itextpdf.text.pdf.PdfArray;
import com.itextpdf.text.pdf.PdfCopy;
import com.itextpdf.text.pdf.PdfDestination;
import com.itextpdf.text.pdf.PdfDictionary;
import com.itextpdf.text.pdf.PdfName;
import com.itextpdf.text.pdf.PdfObject;
import com.itextpdf.text.pdf.PdfReader;


public class links {
   public static void main(String[] args) throws DocumentException,
IOException,FileNotFoundException {
   
   String src = E:/bookmark.pdf;
   String destination = E:/links.pdf;
   
   PdfReader reader=new PdfReader(src);
   reader.consolidateNamedDestinations();
   
   Document doc=new Document();

   PdfCopy pdfCopy = new PdfCopy(doc,new 
 FileOutputStream(destination));
   
   doc.open();
   
int n = reader.getNumberOfPages();
PdfDestination d = new 
 PdfDestination(PdfDestination.XYZ,-1,-1,0.0F) ;
PdfAction act = PdfAction.gotoLocalPage(1, d, pdfCopy);
 for (int i=1; i = n ;i++)
   {
   
PdfDictionary pageDic = reader.getPageN(i);
PdfArray arrayann = pageDic.getAsArray(PdfName.ANNOTS);
if (arrayann != null)
{
   //reader.addPdfObject(pageDic.get(PdfName.ANNOTS));
   PdfArray
annot=(PdfArray)PdfReader.getPdfObject(pageDic.get(PdfName.ANNOTS));
   ArrayListPdfObject arrAnnot = new ArrayListPdfObject();
   arrAnnot = annot.getArrayList();
   
for (int j = 0; j  arrAnnot.size(); j++)
{
   PdfDictionary annots =
(PdfDictionary)PdfReader.getPdfObject(arrAnnot.get(j));
if (PdfName.LINK.equals(annots.get(PdfName.SUBTYPE)))
{
annots.remove(PdfName.DEST);
annots.put(PdfName.DEST,act);
  
}
}
}
pdfCopy.addPage(pdfCopy.getImportedPage(reader, i));
pdfCopy.freeReader(reader);
  }
 reader.close();
   pdfCopy.close();
   doc.close();
   System.out.println(The Pdf is Created..);
   }

}

This code works fine. all links properties to inherit zoom in existing
document.
but there is one problem that the links containing pages or their
destination change to local page.
i want to change the property only. link destination page numbers remain
same as existing document only.
is it possible in itext.
anyone



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/I-Want-to-Change-all-the-Links-
Destination-of-Existing-Pdf-to-PdfDestination-XYZ-1-1-0-0F-tp4659908p46599
09.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


--
___
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] Unable to open a PDF due to unsupported filter

2014-03-04 Thread Leonard Rosenthol
This PDF is invalid and fails validation as there is no defined filter for
a standard stream named CCF.  CCF is a shorthand name only valid for
inline images (ISO 32000-1:2008, Table 94).

Leonard

On 3/4/14 2:44 PM, Abedellatif Hussein alatifhuss...@gmail.com wrote:

Hello,
I am using iTextSharp v5.3.4.0 and I am trying to open the attached PDF
file
and in the pdf parser i get the Unsupported Pdf Exception message below.
iTextSharp.text.exceptions.UnsupportedPdfException: The filter /CCF is not
supported.
   at iTextSharp.text.pdf.PdfReader.DecodeBytes(Byte[] b, PdfDictionary
streamDictionary, IDictionary`2 filterHandlers)
   at iTextSharp.text.pdf.parser.PdfImageObject..ctor(PdfDictionary
dictionary, Byte[] samples, PdfDictionary colorSpaceDic)
   at iTextSharp.text.pdf.parser.PdfImageObject..ctor(PRStream stream,
PdfDictionary colorSpaceDic)
   at iTextSharp.text.pdf.parser.ImageRenderInfo.PrepareImageObject()
   at iTextSharp.text.pdf.parser.ImageRenderInfo.GetImage()
I tried with the latest version v5.5.0.0 and got the same exception.Is
there
any special settings that I need to do to be able import similar PDFs?
Will
iText provide support for similar PDFs splitted.pdf
http://itext-general.2136553.n4.nabble.com/file/n4659826/splitted.pdf

Thanks,
Abedellatif



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Unable-to-open-a-PDF-due-to-uns
upported-filter-tp4659826.html
Sent from the iText - General mailing list archive at Nabble.com.

--

Subversion Kills Productivity. Get off Subversion  Make the Move to
Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries.  Built-in WAN optimization and
the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/4140/ostg.clkt
rk
___
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


--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/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] [SPAM] Re: Unable to open a PDF due to unsupported filter

2014-03-04 Thread Leonard Rosenthol
On 3/5/14 2:21 AM, mkl m...@wir-sind-cool.org wrote:

Adobe Reader opening a PDF without complaint does not mean the file is
valid. Actually Adobe Reader is very forgiving and ignores very many
errors.

VERY TRUE - and by design.


and validated the file against JHOVE a standard java based validation
 tool and says the file is valid and well formed.

No validation tool I've yet come across is perfect. Thus, a tool saying
*the
file is valid and well formed* only means that the tool did *find* no
problem. It does not mean that there *is* no problem.

Also correct- no existing tool does 100% validationŠbecause there is no
definition of 100% valid in the context of PDF.  I gave a presentation
about two years ago on the complexities of PDF validation that you are
welcome to review at http://drops.pdfsages.com/dDcd.  I need to update
the end parts about who the ISO committee IS ACTIVELY working on this
problem.


Can you please point me to the tool that I need to validate the PDF file?

Given the information at hand, Leonard could easily validate manually (the
PDF in one hand, the PDF specification in the other).

I could :).  However, in this case, I ran it through the PDF validation
tool that is included with Adobe Acrobat and accessible through the
Preflight feature.


Your document, on the other hand, is an image xobject and uses that
abbreviation as filter. Thus, it definitively violates the ruling quoted
above. Ergo: validation failed.
D

Yup!

Leonard


--
Subversion Kills Productivity. Get off Subversion  Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951iu=/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] Handling PDF/A Checkboxes with a single appearance

2014-02-24 Thread Leonard Rosenthol
Correct.

And since your PDF doesn't have a pre-defined alternative for Off (which
is the current value specified), Acrobat (or iText or any other client) is
free to pick whatever On value it wants (as noted by Bruno below).

If you want a specific one, put it in the PDF when you create it.

Leonard

On 2/24/14 11:13 AM, iText Info i...@1t3xt.info wrote:

Thomas Büngener schreef op 21/02/2014 13:26:

 Hello,

 I have checkboxes that have only one appearance state. I.e. AP-N not
 being a dictionary but

 a stream containing only BBox. As I understand this construktion seems
 Ok, as in PDF/A AP-N must not

 be a dictionary and the „Off“ state can be left away (this is because
 PDF/A does not allow multiple appearance states).

 acroFields.getAppearanceStates returns an empty Array in this case.


This is normal for the reason you mention above: AP-N is not a
dictionary.

 The AS (Appearance state) is „Off“ as long as the Chekbox is unticked.

 When I tick it in Acrobat and save the file, the AS is set to „Ja“.


Well, in my case it's Yes.

 If i use AcroFileds.setField this does not work because the metod
 isInAP which is used inside

 setField returns false.


Indeed. You are giving the exact reasn why it doesn't work.

 Now I tried to set the AS value directly to „Ja“ and this works!


Correct.

 The Value „Ja“ is show as „export value“ for this field in Acrobat Pro
 and, as stated before,

 Acrobat writes „Ja“ to AS when I tick the box and save the file.

 Now my remaining problem ist he following:

 I have no idea where Acrobat takes this ticked-value („Ja“) from.


Convention.
As I already explained: in my case Acrobat puts Yes instead of Ja.
If you change the language settings, you can get another result.

 I cannot find it anywhere inside the file, nor am I able to retrieve
 it programatically.


That's because it's not in the file ;-)

 The value „Off“ seems to be fixed (according to Standards), but the
 value „Ja“ is not.


The value Off is defined in ISO-32000-1; see section 12.7.4.2.3:
The appearance for the off state is optional but, if present, shall be
stored in the appearance dictionary under the name Off. Yes should be
used as the name for the on state.

When you read shall in an ISO document, the text is normative: no
other value is allowed or your document is invalid.
When you read should in an ISO document, the text is a rule, but if
you don't follow the rule, your document isn't invalid.

 Does anybody know, how this „Ja“ value can be found inside the pdf?


No, you should assume it isn't Ja, but Yes.
If something else is used, it's a choice made by the software (in this
case your German version of Acrobat).

--

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.clkt
rk
___
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] Handling PDF/A Checkboxes with a single appearance

2014-02-21 Thread Leonard Rosenthol
What version of PDF/A are you referring to since the rules for annotation 
appearances changed between PDF/A-1 and PDF/A-2 (and –3)?

I would assume that Ja in the export values.

Leonard

From: Thomas Büngener thomas.buenge...@is2.demailto:thomas.buenge...@is2.de
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Friday, February 21, 2014 7:26 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Handling PDF/A Checkboxes with a single appearance

Hello,

I have checkboxes that have only one appearance state. I.e. AP-N not being a 
dictionary but
a stream containing only BBox. As I understand this construktion seems Ok, as 
in PDF/A AP-N must not
be a dictionary and the „Off“ state can be left away (this is because PDF/A 
does not allow multiple appearance states).

acroFields.getAppearanceStates returns an empty Array in this case.
The AS (Appearance state) is „Off“ as long as the Chekbox is unticked.
When I tick it in Acrobat and save the file, the AS is set to „Ja“.

If i use AcroFileds.setField this does not work because the metod isInAP which 
is used inside
setField returns false.

Now I tried to set the AS value directly to „Ja“ and this works!

The Value „Ja“ is show as „export value“ for this field in Acrobat Pro and, as 
stated before,
Acrobat writes „Ja“ to AS when I tick the box and save the file.

Now my remaining problem ist he following:
I have no idea where Acrobat takes this ticked-value („Ja“) from.
I cannot find it anywhere inside the file, nor am I able to retrieve it 
programatically.
The value „Off“ seems to be fixed (according to Standards), but the value „Ja“ 
is not.

Does anybody know, how this „Ja“ value can be found inside the pdf?

I‘m using iText 2.1.7 right now, but I also tried using latest v5 to solve the 
problem.
I am not the producer oft he PDF so i cannot modify it in any way and the PDF/A 
conformance
must be retained. So I cannot change the appearance(s) oft he checkbox.

I can provide a reduced version of the problematic file (35kb) if that might be 
helpful.

sincerly
Thomas

--
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] Problem with iTextSharp

2014-02-18 Thread Leonard Rosenthol
This is because the ';'is a predefined special character for XMP metadata as 
defined in ISO 16682-1.   There are no issues with iText.

Leonard

From: Crosby, Jonathan 
jonathan.cro...@swissglobal-am.commailto:jonathan.cro...@swissglobal-am.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, February 18, 2014 10:53 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Problem with iTextSharp

Hi there

We have discovered an error with your code. When setting MoreInfo using the 
Stamper, there are some strange behaviours in combination with using some 
special characters.

When the text being set contains a semicolon or a double quote, the keywords 
text is duplicated. Here is a vb.net example:

Dim pdf_Reader AsNewPdfReader(str_FilePathOriginal)
Dim pdf_Stamper AsNewPdfStamper(pdf_Reader, 
NewFileStream(str_FilePathNew, FileMode.Create))
Dim pdf_Dictionary AsNewDictionary(OfString, String)


pdf_Dictionary = pdf_Reader.Info

pdf_Dictionary.Remove(str_MetaFieldWrite)
pdf_Dictionary.Add(str_MetaFieldWrite, Andy;)

pdf_Stamper.MoreInfo = pdf_Dictionary

pdf_Stamper.Close()


Result in the Metadata:
[cid:image001.png@01CF2CC9.F03E3110]


replacing the content of the field to
pdf_Dictionary.Add(str_MetaFieldWrite, Andy)

result in the correct behaviour:
[cid:image002.png@01CF2CC9.F03E3110]


There may be further special characters causing this error. Please can you 
resolve this problem or at least inform us, if this is the expected behaviour 
of your tool and how we can avoid these duplicate values.

Many thanks for this great tool  kind regards
Jonathan Crosby







_

Jonathan Crosby
Business Technology
Swiss  Global Asset Management Ltd.
Hardstrasse 201, P.O. Box, CH-8037 Zurich
T +41 58 426 61 32
www.swissglobal-am.comhttp://www.swissglobal-am.com/

Swiss  Global cares about the environment: Please do not print this e-mail 
unless you really need to.



This email is confidential. If you are not the intended recipient, please 
advise us immediately and delete this message. See 
https://www.swissglobal-am.com/Disclaimer_Email for further information on 
confidentiality, the risks of non-secure electronic communication, and certain 
disclosures which we are required to make in accordance with applicable 
legislation and regulations. If you cannot access this link, please notify us 
by reply message and we will send the contents to you.
attachment: image001.pngattachment: image002.png--
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] Set Flags, StemV and X-Height

2014-01-31 Thread Leonard Rosenthol
They are set automatically from the data in the font that you are using.

On 1/30/14 2:10 PM, Brossman craig.bross...@infoprint.com wrote:

Hi,
How can I set these descriptors for a font?



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Set-Flags-StemV-and-X-Height-tp
4659700.html
Sent from the iText - General mailing list archive at Nabble.com.

--

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.clkt
rk
___
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


--
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] Changing colors of graphics and text in imported PDFs

2014-01-15 Thread Leonard Rosenthol
Can you do this with iText? Yes.  HOWEVER it is going to require you to have a 
VERY DEEP understanding of PDF and Color Management/Science.

Leonard

From: Jon Wu j...@wuservices.commailto:j...@wuservices.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, January 15, 2014 10:24 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Changing colors of graphics and text in imported PDFs

Hi,

I'm trying to find a way to manipulate the colors in existing PDFs. I saw some 
similar questions asked 6 or more years ago and I'm not sure if things have 
changed.

Imagine I have a design that started in Adobe Illustrator with text and 
graphics and there are 5 distinct colors used in the design such as a color 
palette like ones you see on https://kuler.adobe.com/. The goal is to be able 
to identify the 5 colors in the PDF and replace with with entirely new CMYK 
colors as if I can just change the palette of the design on the fly from code. 
If it helps, I could make all 5 of the initial colors anything such as a named 
spot color.

Can I (or do I want to) do this with iText?

If not, what about string manipulation / search and replace?

Or I see in past posts there was some mention of other programs to do this but 
some examples would be helpful is iText isn't the right tool for this purpose.

Thanks!
--
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

Re: [iText-questions] Changing colors of graphics and text in imported PDFs

2014-01-15 Thread Leonard Rosenthol
What if that color is part of a transparency operation?

What if that color is overprinted?  Or knocked out?

and you probably need to find all the places that content can exist in a PDF, 
which isn't just a single stream.

Leonard

From: Jon Wu j...@wuservices.commailto:j...@wuservices.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, January 15, 2014 11:49 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Changing colors of graphics and text in imported 
PDFs

Thanks Leonard.

What if all I'm doing is a few color replacements? Could I just find something 
like 0 0 0 1 k in the stream (assuming that's there) and then replace it with 4 
numbers for my predetermined CMYK values or are there other intricacies that 
would cause issues?


On Wed, Jan 15, 2014 at 1:59 AM, Leonard Rosenthol 
lrose...@adobe.commailto:lrose...@adobe.com wrote:
Can you do this with iText? Yes.  HOWEVER it is going to require you to have a 
VERY DEEP understanding of PDF and Color Management/Science.

Leonard

From: Jon Wu j...@wuservices.commailto:j...@wuservices.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, January 15, 2014 10:24 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Changing colors of graphics and text in imported PDFs

Hi,

I'm trying to find a way to manipulate the colors in existing PDFs. I saw some 
similar questions asked 6 or more years ago and I'm not sure if things have 
changed.

Imagine I have a design that started in Adobe Illustrator with text and 
graphics and there are 5 distinct colors used in the design such as a color 
palette like ones you see on https://kuler.adobe.com/. The goal is to be able 
to identify the 5 colors in the PDF and replace with with entirely new CMYK 
colors as if I can just change the palette of the design on the fly from code. 
If it helps, I could make all 5 of the initial colors anything such as a named 
spot color.

Can I (or do I want to) do this with iText?

If not, what about string manipulation / search and replace?

Or I see in past posts there was some mention of other programs to do this but 
some examples would be helpful is iText isn't the right tool for this purpose.

Thanks!

--
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.netmailto: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

Re: [iText-questions] Changing colors of graphics and text in imported PDFs

2014-01-15 Thread Leonard Rosenthol
Adobe's PDFLibrary (which can be licensed for server use) includes color 
management functionality.

Leonard

From: Jon Wu j...@wuservices.commailto:j...@wuservices.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, January 15, 2014 8:12 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Changing colors of graphics and text in imported 
PDFs

Ah that's true. Maybe this replacement could work with some serious limitations 
then but it sounds very messy / error prone.

Maybe a better question, how would you do what I'm trying to accomplish - 
especially since you're part of the Adobe ecosystem?

This might be veering towards InDesign Server stuff, but I have designs that 
start in Illustrator and I have 1-5 colors (like a theme) that I want to swap 
out programmatically from the server. I start in Illustrator and ultimately end 
up with a PDF to print but maybe there's some other flow in between that would 
accomplish this better since PDF is obviously not meant to be manipulated.

Thanks again for your input! It's very helpful.


On Wed, Jan 15, 2014 at 4:26 AM, Leonard Rosenthol 
lrose...@adobe.commailto:lrose...@adobe.com wrote:
What if that color is part of a transparency operation?

What if that color is overprinted?  Or knocked out?

and you probably need to find all the places that content can exist in a PDF, 
which isn't just a single stream.

Leonard

From: Jon Wu j...@wuservices.commailto:j...@wuservices.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, January 15, 2014 11:49 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Changing colors of graphics and text in imported 
PDFs

Thanks Leonard.

What if all I'm doing is a few color replacements? Could I just find something 
like 0 0 0 1 k in the stream (assuming that's there) and then replace it with 4 
numbers for my predetermined CMYK values or are there other intricacies that 
would cause issues?


On Wed, Jan 15, 2014 at 1:59 AM, Leonard Rosenthol 
lrose...@adobe.commailto:lrose...@adobe.com wrote:
Can you do this with iText? Yes.  HOWEVER it is going to require you to have a 
VERY DEEP understanding of PDF and Color Management/Science.

Leonard

From: Jon Wu j...@wuservices.commailto:j...@wuservices.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, January 15, 2014 10:24 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Changing colors of graphics and text in imported PDFs

Hi,

I'm trying to find a way to manipulate the colors in existing PDFs. I saw some 
similar questions asked 6 or more years ago and I'm not sure if things have 
changed.

Imagine I have a design that started in Adobe Illustrator with text and 
graphics and there are 5 distinct colors used in the design such as a color 
palette like ones you see on https://kuler.adobe.com/. The goal is to be able 
to identify the 5 colors in the PDF and replace with with entirely new CMYK 
colors as if I can just change the palette of the design on the fly from code. 
If it helps, I could make all 5 of the initial colors anything such as a named 
spot color.

Can I (or do I want to) do this with iText?

If not, what about string manipulation / search and replace?

Or I see in past posts there was some mention of other programs to do this but 
some examples would be helpful is iText isn't the right tool for this purpose.

Thanks!

--
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.netmailto: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

Re: [iText-questions] Making text fields grow to accommodate text

2014-01-14 Thread Leonard Rosenthol
[I realize this is an iText list and Bruno can smack me when he gets back
from the US, but I feel the need to correct errors]


Edward, I think you have some facts incorrect here.

 XFA fields don't expand

They most certainly DO expand - that's one of the benefits of XFA over
AcroForms.  Perhaps you meant that AcroForm fields don't expand??


 Livecycle documents don't flatten

I assume by LiveCycle documents you mean XFA-based PDFs, yes?  If so, that
is also not correct.  Adobe offers both desktop and server-side solutions
for flattening XFA and has for almost 15 years (since we introduced XFA).
Where did you learn that you couldn't flatten them?


 Live Cycle Server AND the module we needed to flatten LC forms

For server-side flattening, you do need to the Forms component of
LiveCycle - but you don't have to purchase all the other modules.
Alternatively, we offer a library (similar to iText) that enables this as
well if you wish to build your own solution.


All that said - Adobe is VERY HAPPY that the iText folks have invested in
XFA support in their product and will continue to support them in this
endeavor.

Leonard


On 1/14/14 5:36 PM, edward_gi...@ilnb.uscourts.gov
edward_gi...@ilnb.uscourts.gov wrote:

FWIW,  this has been the bane of my PDF life for a number of years now.
XFA fields don't expand and Livecycle documents don't flatten.  Talking to
Adobe was useless.  They didn't understand and simply didn't seem to care.
When they DID come out with a solution, I was to try to convince my boss
to
purchase the entire Live Cycle Server AND the module we needed to flatten
LC forms.  I couldn't justify the outrageous expense just to flatten a
form.  Adobe's final response to me was to use read-only forms as my final
output...even though I TRIED to explain that a read-only form is STILL a
form...it's NOT a flat document.

THANK YOU itext!!  They came to the rescue with XFA Worker.  Now I can
flatten Live Cycle forms!  I've been using it in our test environment for
a
couple of months and recently moved it into our live environment.  Every
once in awhile there is a form that doesn't come out QUITE right, but the
people at iText have been very responsive to my reports.

Back when I first found iText, I sent a message thanking and praising them
for a product that served us very well from the first hour that I picked
it
up.  I can't speak highly enough of them.  It took awhile to develop an
answer to the LiveCycle issues created by Adobe, but iText has come
through
again.  It IS a little convoluted, but it's the best (heck, it's the only)
real solution out there.
  
 
  
 
  
 
  
 
  ³Be always at war with your vices, at  Edward Gioja
 
  peace with your neighbors, and let Programmer/Analyst
 
  each new year find you a better man,²  (312)582-5232
 
  ­ Benjamin Franklin(509)465-8453
 
 (Embedded image moved to
 
   file: pic29206.gif)
 
  
 


















From:  Kostas k...@dataverse.gr
To:'Post all your questions about iText here'
itext-questions@lists.sourceforge.net
Date:  01/13/2014 08:51 AM
Subject:   Re: [iText-questions] Making text fields grow to accommodate
text



Thanks a lot.
That would be a nice solution, although it requires me to buy Adobe
LiveCycle Designer.
But, I guess, nothing else is humanly possible.
I will try some possible workarounds first and if they don¹t help I will
consider moving to your solution.

Thanks again. J

From: iText mailing list [mailto:i...@1t3xt.info]
Sent: Monday, January 13, 2014 6:01 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Making text fields grow to accommodate text

On 1/13/2014 7:58 AM, Kostas wrote:
  I would like to do something like that too, using iText.

If you create a dynamic form using XFA technology using Adobe LiveCycle
Designer, you can fill it out with iText and flatten it with XFA Worker.
You can't expect an AcroForm based form to expand automagically.
--


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.clkt
rk
___
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:

Re: [iText-questions] Making text fields grow to accommodate text

2014-01-14 Thread Leonard Rosenthol
On 1/14/14 7:25 PM, edward_gi...@ilnb.uscourts.gov
edward_gi...@ilnb.uscourts.gov wrote:

ACROBAT told me I couldn't flatten Live Cycle forms.
Everything in the documentation that I've found says that live cycle forms
do not flatten.

We do have ways to do it, but you point out below that Desktop solutions
won't help you anyway - so using Acrobat is a non-starter since it's a
desktop-only solution.


I didn't mean I had to buy all the modules, but I DO have to buy the
server
PLUS the module.


Correct.


For server-side flattening, you do need to the Forms component of
LiveCycle - but you don't have to purchase all the other modules.

Yes, I need a server-side solution and I have to purchase the server to
get
the forms component.  How much does that cost?

Depends on how you plan to use it.  We offer varying licensing plans -
user based, document based, unlimited, etc.


I need what acroforms has always provided...a way to save the file flat.
  

Yes, but you need it on a server - and for server-side AcroForm flattening
you'd need the exact same LiveCycle product.

Leonard


--
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


Re: [iText-questions] Open pdf links on a separate tab using an Ipad

2013-12-03 Thread Leonard Rosenthol
JavaScript is the wrong way to do it for ALL platforms.

The correct way is to set the appropriate flag on the action dictionary that 
says to use a new window.  (forget details offhand, but they are in ISO 
32000-1).

Leonard

From: Eric Lavagni elava...@gmail.commailto:elava...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Monday, December 2, 2013 6:23 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Open pdf links on a separate tab using an Ipad

Hello,

Thanks for your time in advanced.  Here is my question:

I have a pdf document with links, I want to open these links on a separate tab 
when they are clicked.  I was able to accomplished this by using  
PdfAction.JavaScript(...).  This works great for pc users but it does not work 
for my ipad users as adobe does not support javascript for the ipad reader.

Is there a way to open the links on a separate tab when the pdf is accessed 
from an Ipad?

Thanks,

Eric
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/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] TextField appears upside-down and at the wrong place in FF

2013-11-04 Thread Leonard Rosenthol
The FF PDF viewer is VERY new and VERY buggy.  If it works everywhere else, you 
can safely assume it's FF

From: Kostas k...@dataverse.grmailto:k...@dataverse.gr
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Monday, November 4, 2013 7:53 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] TextField appears upside-down and at the wrong place 
in FF


Hello.

I add some TextFields in a PDF like so:

   var txtFld = new 
TextField(stamper.Writer, new Rectangle(cRightX - cWidthX, cTopY3, cRightX, 
cTopY), cFieldName)

 {

 Font = 
bf,

 
FontSize = cHeaderFontSize,

 
Alignment = Element.ALIGN_RIGHT,

 
Options = PdfFormField.FF_MULTILINE | BaseField.REQUIRED,

 };

   var ff = txtFld.GetTextField();

ff.Flags = 
PdfAnnotation.FLAGS_PRINT | PdfAnnotation.FLAGS_READONLY;

ff.SetPage();

stamper.AddAnnotation(ff, 1);

..and it works pretty much OK in all PDF viewers except the viewer in Firefox 
(it uses somePDF vieweradd-in as far as I can tell).

There it is displayedupside-down and at the wrong place.

It seemslike it tries to render the fields with the page rotated 180degrees, so 
instead of putting them on the top of the page, it puts them at the bottom and 
upside-down.

Also, the field text is not selectable.

Has anyone seen anything like this before?

Is this a bug of the viewer or I’m doing sth wrong?


Thanks.
--
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

Re: [iText-questions] How to PDF preflight and split text Graph layer on PDF

2013-09-21 Thread Leonard Rosenthol
What does it mean to preflight PDF?

Do you mean separate text from graphics?   They aren't on separate
layers in PDF, so not sure what you mean here either.

Leonard

On 9/21/13 12:58 PM, hankycheng hankych...@gmail.com wrote:

Hi All

I have some question, I need to create program to preflight PDF, then auto
split text layer  Graph layer on differnce PDF file. Did iText can handle
it? Any sample code can share? Tks all

Hanky



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/How-to-PDF-preflight-and-split-
text-Graph-layer-on-PDF-tp4659184.html
Sent from the iText - General mailing list archive at Nabble.com.

--

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/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871iu=/4140/ostg.clktr
k
___
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


--
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/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871iu=/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] Allow malformed trailer/ID

2013-08-28 Thread Leonard Rosenthol
On 8/28/13 2:11 AM, Ivan B. Gregor ivanbgre...@gmail.com wrote:

As far as I remember this method was pioneerd by Adobe InDesign, the first
full unicode Windows version, I do not remember the number.

Nope, predates ID.  First appeared (at least from Adobe) in a version of
the PDFMakers for Office, IIRC.

And that version of ID didn't always do that for the Info - it did it for
all content.


 Actually it
makes a lot of sense, because InDesign just copied info from Windows
structures that had it in Unicode.

Interesting theory, but incorrect.  InDesign (and other Adobe products)
use their own Unicode handling routes, not those from the OS.


Trying to convert it into plain PDF string is another set of problems.

Either you can do it - in which case, you do - or you can't, and you
don't.  It's quite simple.


Plain PDF strings are not ASCII, they are PDFDocEncoding, that is another
can of worms nobody wanted to open.

True.


Leonard


--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/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] Allow malformed trailer/ID

2013-08-27 Thread Leonard Rosenthol
Can you send an actual example of a PDF like that?

It's clearly invalid and I'd love to know who made it!

Thanks,
Leonard

On 8/27/13 8:16 AM, Ivan B. Gregor ivanbgre...@gmail.com wrote:


Hi,

Some PDFs contain strange values in trailer/ID, for example:

trailer
/Size 17/Info 15 0 R/Root 16 0 R/ID[]

startxref
78443
%%EOF

PdfStamperImpl has ArrayIndexOutOfBounds in the case above. Patch below
fixes the issue:

diff -ru originals/com/itextpdf/text/pdf/PdfEncryption.java
itextpdf-5.4.2-sources/com/itextpdf/text/pdf/PdfEncryption.java
--- originals/com/itextpdf/text/pdf/PdfEncryption.java 2013-05-31
12:30:32.0 +0300
+++ itextpdf-5.4.2-sources/com/itextpdf/text/pdf/PdfEncryption.java
2013-08-27 13:41:14.0 +0300
@@ -554,11 +554,11 @@
   public static PdfObject createInfoId(byte id[]) {
   ByteBuffer buf = new ByteBuffer(90);
   buf.append('[').append('');
-  for (int k = 0; k  16; ++k)
+  for (int k = 0; k  id.length; ++k)
   buf.appendHex(id[k]);
   buf.append('').append('');
   id = createDocumentId();
-  for (int k = 0; k  16; ++k)
+  for (int k = 0; k  id.length; ++k)
   buf.appendHex(id[k]);
   buf.append('').append(']');
   return new PdfLiteral(buf.toByteArray());

-- 
Ivan



--

Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktr
k
___
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


--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/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] Allow malformed trailer/ID

2013-08-27 Thread Leonard Rosenthol
Another great example of poor PDF generation :(.   Wasting all those bytes
for ASCII values.

On 8/27/13 9:48 AM, Ivan B. Gregor ivanbgre...@gmail.com wrote:

Leonard Rosenthol lrosenth at adobe.com writes:

 
 Can you send an actual example of a PDF like that?

No, I cannot share because this PDF belongs to a customer, but this part
should be of interest to you:

15 0 obj

/Title(\376\377\000S\000u\000g\000a\000r\000C\000R\000M)
/Author(\376\377\000S\000u\000g\000a\000r\000C\000R\000M)
/Subject(\376\377\000S\000u\000g\000a\000r\000C\000R\000M)
/Keywords(\376\377\000S\000u\000g\000a\000r\000C\000R\000M)
/Creator(\376\377\000S\000u\000g\000a\000r\000C\000R\000M)
/Producer(\376\377\000T\000C\000P\000D\000F\000
\0004\000.\0006\000.\\0001\0003\000
\000\(\000h\000t\000t\000p\000:
\000/\000/\000w\000w\000w\000.\000t\000c\000p\000d\000f\000.
\000o\000r\000g\000\))
/CreationDate(D:20130826091703)
/ModDate(D:20130826091703)

endobj

 
 It's clearly invalid and I'd love to know who made it!

There are some other semi-valid things about this PDF, but there is no
point
in throwing exceptions for every minor detail.

 
 Thanks,
 Leonard
 
 On 8/27/13 8:16 AM, Ivan B. Gregor ivanbgregor at gmail.com wrote:
 
 
 Hi,
 
 Some PDFs contain strange values in trailer/ID, for example:
 
 trailer
 /Size 17/Info 15 0 R/Root 16 0 R/ID[]
 
 startxref
 78443
 %%EOF
 
 PdfStamperImpl has ArrayIndexOutOfBounds in the case above. Patch below
 fixes the issue:
 
 diff -ru originals/com/itextpdf/text/pdf/PdfEncryption.java
 itextpdf-5.4.2-sources/com/itextpdf/text/pdf/PdfEncryption.java
 --- originals/com/itextpdf/text/pdf/PdfEncryption.java  2013-05-31
 12:30:32.0 +0300
 +++ itextpdf-5.4.2-sources/com/itextpdf/text/pdf/PdfEncryption.java
 2013-08-27 13:41:14.0 +0300
  at  at  -554,11 +554,11  at  at
 public static PdfObject createInfoId(byte id[]) {
 ByteBuffer buf = new ByteBuffer(90);
 buf.append('[').append('');
 -   for (int k = 0; k  16; ++k)
 +   for (int k = 0; k  id.length; ++k)
 buf.appendHex(id[k]);
 buf.append('').append('');
 id = createDocumentId();
 -   for (int k = 0; k  16; ++k)
 +   for (int k = 0; k  id.length; ++k)
 buf.appendHex(id[k]);
 buf.append('').append(']');
 return new PdfLiteral(buf.toByteArray());
 
 -- 
 Ivan
 
 
 
 

--
 
 Introducing Performance Central, a new site from SourceForge and
 AppDynamics. Performance Central is your source for news, insights,
 analysis and resources for efficient Application Performance
Management.
 Visit us today!
 
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clk
tr
 k
 ___
 iText-questions mailing list
 iText-questions at 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
 
 
-
-
 Introducing Performance Central, a new site from SourceForge and
 AppDynamics. Performance Central is your source for news, insights,
 analysis and resources for efficient Application Performance
Management. 
 Visit us today!
 
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clkt
rk
 ___
 iText-questions mailing list
 iText-questions at 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
 
 





--

Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktr
k
___
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] Read out loud reads warning: blank page on concatenated tagged PDFs

2013-08-26 Thread Leonard Rosenthol
iText doesn't combine the tag trees when merging :(

On 8/26/13 5:23 AM, anonima date.sh...@gmail.com wrote:

Hi all,

I was trying Adobe's read out loud with both:
1. The read out loud PDF on Itext's samples:
http://examples.itextpdf.com/results/part4/chapter15/read_out_loud.pdf
2. Concatenated tagged PDFs using Itext (have checked- the concatenated
PDF
contains tags!).
(Attached)

Foxit reader is able to read both of the PDFs.

I should supply a concatenated accessible PDF.

Does anybody knows why Adobe's feature fails on these?

Many thanks!




--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Read-out-loud-reads-warning-bla
nk-page-on-concatenated-tagged-PDFs-tp4659003.html
Sent from the iText - General mailing list archive at Nabble.com.

--

Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktr
k
___
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


--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/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] Problem with Firefox internal PDF viewer and custom embedded fonts

2013-08-23 Thread Leonard Rosenthol
Given that the problem is FireFox – why not contact Mozilla and get them to fix 
their bug??

Or, since pdf.js (their PDF renderer) is open source – go fix it yourself and 
contribute the code??

Leonard

From: Yusuf Poonawala 
ypoonaw...@lakeshorelearning.commailto:ypoonaw...@lakeshorelearning.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Friday, August 23, 2013 12:50 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Problem with Firefox internal PDF viewer and custom 
embedded fonts

Hi All,

We have been using iTextSharp for a while and recently ran into an issue with 
the new internal PDF viewer in Firefox 22 and 23 (we think it goes back to v19 
but don’t have those versions to verify). If you open the attached iText 
generated PDF file in Firefox with its internal viewer, you will find spaces in 
the location where the ‘g’ and ‘q’ characters are supposed to be. All other 
viewers we have checked display the text correctly (IE, Chrome, Adobe). If we 
use Adobe’s Acrobat Professional to generate the PDF, it works fine in Firefox.

The problem is in some way related to the custom fonts we are trying to embed 
in the document. We have 6 different custom fonts we use, but only two of them 
have the problem of missing characters.

I’ve also attached the working Acrobat generated document to compare against. 
Looking for some help to identify what we need to do to generate the document 
correctly for it to work with Firefox.

Thanks very much in advance!

Yusuf Poonawala

--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/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] PDF header changed from 1.6 to 1.4 when joining files

2013-08-14 Thread Leonard Rosenthol
Why does the customer care what the PDF version is?   Does it matter?   And for 
that matter, are your PDF 1.4 files really 1.4 to start with??

Leonard

From: chris.e...@depi.vic.gov.aumailto:chris.e...@depi.vic.gov.au 
chris.e...@depi.vic.gov.aumailto:chris.e...@depi.vic.gov.au
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, August 14, 2013 1:40 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] PDF header changed from 1.6 to 1.4 when joining files

Hi

I have used the concatenation example to add a legend sheet to a map sheet.  
Each of the two files has a %PDF-1.6 signature, but the combined file has 
%PDF-1.4 as the signature.

String mapName = map.pdf;
String legendName = legend.pdf;
String newName = combined.pdf;
String[] files = { mapName, legendName };
try
{
Document document = newDocument();
PdfCopy copy = newPdfCopy(document, 
newFileOutputStream(newName));
document.open();

PdfReader reader;
for(inti = 0; i  files.length; i++)
{
reader = newPdfReader(files[i]);
int n = reader.getNumberOfPages();
for(intpage = 0; page  n; )
{
copy.addPage(copy.getImportedPage(reader, ++page));
}
copy.freeReader(reader);
reader.close();
}
document.close();
}
catch(Exception ex)
{
write_log(Error - + ex.getClass() ++ 
ex.getMessage() +   - merging  + fileName);
}

Why is this happening? It is confusing some of my customers who think the 
document is version 1.4

I can add a version tag with 
copy.setPdfVersion(PdfCopy.PDF_VERSION_1_6);
but this doesn't change the header.

.


Chris Egan


Notice:
This email and any attachments may contain information that is personal, 
confidential,
legally privileged and/or copyright. No part of it should be reproduced, 
adapted or communicated without the prior written consent of the copyright 
owner.

It is the responsibility of the recipient to check for and remove viruses.

If you have received this email in error, please notify the sender by return 
email, delete it from your system and destroy any copies. You are not 
authorised to use, communicate or rely on the information contained in this 
email.

Please consider the environment before printing this email.
--
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

Re: [iText-questions] display Signature info on EVERY page

2013-08-12 Thread Leonard Rosenthol
I need to display a text with signature information on EVERY page and not only 
in one

Why?   It doesn't make any sense – either logical or legal.

Leonard

From: Knezevich Marco 
marco.knezev...@insiel.itmailto:marco.knezev...@insiel.it
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Monday, August 12, 2013 9:56 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] display Signature info on EVERY page

Hi,

I am new in itext. After applying digital signature, I need to display a text 
with signature information on EVERY page and not only in one.

I found the post in:

http://itext-general.2136553.n4.nabble.com/display-Signature-in-Footer-of-every-page-td4237064.html

where was written “It is possible to have widgets on multiple pages referring 
to the same signature field …….”

Can someone tell me how can I do this?

I tried a lot of time but I did not resolve the problem.

Thanks in advance to everybody will help me :-)

Marco

AVVISO DI RISERVATEZZA Informazioni riservate possono essere contenute nel 
messaggio o nei suoi allegati. Se non siete i destinatari indicati nel 
messaggio, o responsabili per la sua consegna alla persona, o se avete ricevuto 
il messaggio per errore, siete pregati di non trascriverlo, copiarlo o inviarlo 
a nessuno. In tal caso vi invitiamo a cancellare il messaggio ed i suoi 
allegati. Grazie. CONFIDENTIALITY NOTICE Confidential information may be 
contained in this message or in its attachments. If you are not the addressee 
indicated in this message, or responsible for message delivering to that 
person, or if you have received this message in error, you may not transcribe, 
copy or deliver this message to anyone. In that case, you should delete this 
message and its attachments. Thank you.
--
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

Re: [iText-questions] display Signature info on EVERY page

2013-08-12 Thread Leonard Rosenthol
I know it came done (if you really want), but why would you want that?


From: TvT tvtre...@nepatec.demailto:tvtre...@nepatec.de
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Monday, August 12, 2013 10:36 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] display Signature info on EVERY page

Maybe he wants something like this (multiple widgets pointing to the same 
field):http://itext-general.2136553.n4.nabble.com/file/n4237594/2274_2007_H_PROVISIONAL_-_multifield_-_Adobe.pdf
2274_2007_H_PROVISIONAL_-_multifield_-_Adobe.pdfhttp://itext-general.2136553.n4.nabble.com/file/n4237594/2274_2007_H_PROVISIONAL_-_multifield_-_Adobe.pdf

To which you Leonard replied Your idea works as well.


2013/8/12 Leonard Rosenthol lrose...@adobe.commailto:lrose...@adobe.com
I need to display a text with signature information on EVERY page and not only 
in one

Why?   It doesn't make any sense – either logical or legal.

Leonard

From: Knezevich Marco 
marco.knezev...@insiel.itmailto:marco.knezev...@insiel.it
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Monday, August 12, 2013 9:56 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] display Signature info on EVERY page


Hi,



I am new in itext. After applying digital signature, I need to display a text 
with signature information on EVERY page and not only in one.



I found the post in:



http://itext-general.2136553.n4.nabble.com/display-Signature-in-Footer-of-every-page-td4237064.html



where was written “It is possible to have widgets on multiple pages referring 
to the same signature field …….”



Can someone tell me how can I do this?



I tried a lot of time but I did not resolve the problem.



Thanks in advance to everybody will help me :-)



Marco



AVVISO DI RISERVATEZZA Informazioni riservate possono essere contenute nel 
messaggio o nei suoi allegati. Se non siete i destinatari indicati nel 
messaggio, o responsabili per la sua consegna alla persona, o se avete ricevuto 
il messaggio per errore, siete pregati di non trascriverlo, copiarlo o inviarlo 
a nessuno. In tal caso vi invitiamo a cancellare il messaggio ed i suoi 
allegati. Grazie. CONFIDENTIALITY NOTICE Confidential information may be 
contained in this message or in its attachments. If you are not the addressee 
indicated in this message, or responsible for message delivering to that 
person, or if you have received this message in error, you may not transcribe, 
copy or deliver this message to anyone. In that case, you should delete this 
message and its attachments. Thank you.

--
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.netmailto: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

--
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

Re: [iText-questions] display Signature info on EVERY page

2013-08-12 Thread Leonard Rosenthol
1 – it's not done yet so it's not available. However, membership to the ISO 
committee is open/free to all.  Contact your country's standards body for 
membership.

2 – Quite true.  It's not done and may indeed change.  As noted, if you join 
and you don't like it – push for change!

3 - 32000–1 will NOT be deprecated by the release of 32000-2.  Both will be 
valid.

Leonard

From: TvT tvtre...@nepatec.demailto:tvtre...@nepatec.de
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Monday, August 12, 2013 11:39 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] display Signature info on EVERY page

 Please stop asking for a feature that doesn't make sense and that will be 
 forbidden in PDF 2.0!
That's a bit harsh, don't you think?

Interesting and good to know however

1. How could ordinary people know that? Is ISO-32000-2 available anywhere for 
download?
2. ISO-32000-2 is not an official standard - so who knows maybe that point is 
due to change?
3. Maybe he wants to support the current ISO-32000-1, ISO PDF/A or some other 
non-deprecated ISO standard?

Until ISO-32000-2 is an official standard (somewhere in 2014?) (and all other 
ISO PDF related standards are deprecated - which is in 20 years I guess) it is 
perfectly valid to ask the question.

Furthermore only because some of us can't think of a use case doesn't mean 
there's none. For instance I met a guy at a fair once who was asking for 
several thousands signatures per document (and he wasn't the only one - don't 
ask me). The signature image was recorded as a handwritten signature and with 
that (and a certificate) one signature field was signed. The legal questions 
put aside - why should he be forced to (manually) sign 10.000 times? Signing 
one time and showing multiple appearances was all what he wanted. (And yes we 
told him about the possibility to use official qualified certificates (in 
combination with mass signatures) but it had to be a handwritten signature...)

Regards
TvT

2013/8/12 i...@1t3xt.infomailto:i...@1t3xt.info
ISO-32000-2


--
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

Re: [iText-questions] PdfContentStreamProcessor and parse color

2013-08-02 Thread Leonard Rosenthol
What operator(s) are you looking at to get the colors?

What are you doing with those values when you get them?

Leonard


From: 毕毅 ccttvvk...@gmail.commailto:ccttvvk...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Friday, August 2, 2013 6:14 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] PdfContentStreamProcessor and parse color


Hello,



I use PdfContentStreamProcessor to extract text with color,but it does not work 
very well.

I think it's a bug in PdfContentStreamProcessor.getColor(int, ListPdfObject)



for (int i = 0; i  nOperands; i++) {
c[i] = ((PdfNumber)operands.get(i)).floatValue();
}

Regards,

biyi
--
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] 'HELP NEEDED' how to add swf's supported files to create pdf in itext (using java)

2013-08-02 Thread Leonard Rosenthol
You need to embed all the other files using standard embedding API calls and 
then use some VERY low level API calls to set the relevant resources for the 
SWF.

Details are in the Adobe Extensions documentation.

Leonard

From: Saravanan shri 
s.shrisarava...@gmail.commailto:s.shrisarava...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Friday, August 2, 2013 12:20 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] 'HELP NEEDED' how to add swf's supported files to 
create pdf in itext (using java)

Hi all,

 I have created one swf file, in which it will run with the help of some 
external files (5 mp3 files, 2 xml files, and 6 image files). When I have 
create the pdf using itext I can only able to embedded the swf file alone. How 
should able to add these external files to run the swf.  It would be helpful if 
you give some sample.


Thanks in advance,
Shri Saravanan
--
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] [Link annotation question]

2013-07-23 Thread Leonard Rosenthol
Link annotations don't link to actual text (except in the rare cases of 
properly tagged PDF) – they are simply associated with an Action or 
Destination.   The destination (/D) tells which you page (it's the first 
element of the array, IIRC).

Leonard

From: Ke Xu xu059...@gmail.commailto:xu059...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, July 23, 2013 10:28 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] [Link annotation question]

Hi guys:
  I don't know how to get destination page and the text that linked to when i 
process link annotation.
  Here is my case, I can find the link annotation, and i get action(/A), then i 
get (/S) which is /GoTo and the (/D) which is M14.132.1...ect. But how can 
i use this (/D) find the destination page and the text that linked to.
  Can someone tell me the methods or data struct? Any help would be greatly 
appreciated. Thanks a lot.
--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/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] XFAHelper - embedded images

2013-07-01 Thread Leonard Rosenthol
Not that you should stop using iText - but if you are using ColdFusion,
this feature is built into recent versions of CF.

Leonard

On 7/1/13 10:02 AM, EdGioja edward_gi...@ilnb.uscourts.gov wrote:

When flattening, the only thing that doesn't work for me is the embedded
image. 

I just tried the XFAHelper and am VERY excited!  Being able to flatten our
LiveCycle documents would save us a tremendous amount of headaches.  The
price quoted certainly seems to be reasonable to me.  Once I can prove to
the boss that it actually works, it will be much easier to convince him to
buy it.

So, in an effort to prove the product, I downloaded it, installed it on
the
Linux server, got the 30-day eval license, and added code that flattens a
file to our ColdFusion application.

The output was VERY good!.  My only issue is that our documents have an
embedded image, scaled to fit the rectangle.  The output doesn't show this
image.  

Is there some way to correct this?

Thank you.



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/XFAHelper-embedded-images-tp465
8668.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/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] Histogram of images in the Itext Pdf

2013-06-28 Thread Leonard Rosenthol
And which are you choosing?  Page or images?

Post a sample PDF where you believe this is an issue.


On 6/28/13 1:35 PM, mashiana mandeep8...@gmail.com wrote:

I am opening the PDF using photoshop. Once you open it gives the option of
choosing a page or the images in the pages.

I am currently only using JPEG files.



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Histogram-of-images-in-the-Itex
t-Pdf-tp4658638p4658651.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/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] Histogram of images in the Itext Pdf

2013-06-27 Thread Leonard Rosenthol
HOW are you check the histogram of the images using adobe photoshop?

Are you opening the PDF up in Photoshop?  Are you extracting the images
and then opening them in Photoshop?  Other??

Leonard

On 6/27/13 2:15 PM, mashiana mandeep8...@gmail.com wrote:

Hi, 
I am working on a project where i need to add images to the pdf. But,
when i
check the histogram of the images using adobe photoshop in the pdf they
are
different from the original image. Does, iText alter the images when it
puts
them on the PDF
Thanks
-Mandeep



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Histogram-of-images-in-the-Itex
t-Pdf-tp4658638.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/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] Generated PDF differs on Windows vs Linux

2013-06-22 Thread Leonard Rosenthol
When run separately (outside of the browser), we get the printer information 
directly from the printer and the OS.

When run inside of a browser, we are given the information from the browser.

Sounds like the browsers are giving us incorrect information :(.

Leonard

From: Cynthia Jeness cynthiajen...@gmail.commailto:cynthiajen...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Saturday, June 22, 2013 7:40 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Generated PDF differs on Windows vs Linux

After spending spending all day yesterday at the location of the client who is 
having the problem, we have determined that the problem relates to the fact 
that the Adobe Acrobat plug-in for Firefox (and other browsers for Windows) 
seems to determine that the pages in our document are not the appropriate size. 
 In the case of Windows, it determines a shrink to fit ratio of 95%.  This 
makes the labels too small.  If we choose the actual size option, then the 
labels print correctly.   In IText, we are specifying a page width of 792 
points or 11 and a height of 612 points or 8.5.  We have a top margin of 72 
pts (1); bottom margin of 94 pts (1.3:); left and right margins of 58 pts (.8 
).  What would trigger the Adobe reader plug-in in Firefox, Chrome and IE to 
determine that the page is too large and needs to be shrunk by 5%?We also 
did this on a couple of different printers.Unfortunately, on the older 
Canon printer (used for printing most labels) under Firefox there is not an 
option to specify the actual page size option.  So the problem can only be 
fixed by scaling up by 104%.   This problem does not occur if we download the 
PDF file created and use Adobe Reader directly.  We can provide workarounds for 
the problem; e.g., choose actual size if available or scale by 104% if not.  
However, the client feels that these workarounds would be too confusing for 
their average user to handle.

Is the problem that the Adobe plug-in deems that the 11X8.5 page is too large 
for the printer or is the page size not actually determined by what we specify 
to our IText Document object?.  Any suggestions?

Cindy Jeness







On Fri, Jun 21, 2013 at 3:40 AM, iText Info 
i...@1t3xt.infomailto:i...@1t3xt.info wrote:
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.netmailto: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] PDF Backgound image : Hide text layer

2013-06-16 Thread Leonard Rosenthol
You will need a rasterizer for this purpose, and iText does not include one.

Be aware, however, that text IS NOT ALWAYS on top – so that removing the text, 
rasterizing the result and then putting the text on top can yield VERY wrong 
results.  Especially when you consider transparency, clipping, optional content 
and more.

Leonard

From: nqtemp nqt...@gmail.commailto:nqt...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Sunday, June 16, 2013 4:20 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] PDF Backgound image : Hide text layer



Dear team ,currently i am working on pdf to extract its backgound as image .I 
want to extract all embedded images as one background image including vector 
image like drawing,shapes, as image
Is it possible to achieve using itext .

 I am able to extract all embedded images from pdf using itext ,but not able to 
extract vector path as  image

Can you help me out for this?

As alternate way ,I am also think change text layer color to white,is this 
possible using itext ?




--
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.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 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 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] New revision issues

2013-05-17 Thread Leonard Rosenthol
You have modified the original document, thus it's signature is no longer
valid (trustable). 

Leonard

On 5/17/13 10:46 AM, Paulo Soares pgpsoa...@gmail.com wrote:

The first signature is not invalidated, it's just Acrobat 's way of
saying it's not the last. I think Acrobat started behaving like this
in 8. If you extract the first revision it will still verify ok.

Paulo

On Fri, May 17, 2013 at 8:26 AM, twain ant.mari...@gmail.com wrote:
 Hi all,

 I have a problem about signing a signed pdf.

 - starting from a valid signed pdf. Signature covers whole document.
 - sign this pdf applying an image on a text field(there is a reason to
do
 this). The signature is applied on a signature field
 - when I open the signed pdf I find that the second signature is
correct but
 the first one is no more valid

 Because I add an image, changing the content covered by the first
signature.
 Sure. But I used

 PdfStamper pdfStamper = PdfStamper.createSignature(pdfReader, baos,
'\0',
 null, true);

 where the last flag to true should mean

 if true the signature and all the other content will be added as a new
 revision thus not invalidating existing signatures

 So the expected result was a new revision carrying an image and a
signature
 without invalidating the first signature.

 Is there something wrong with my considerations?

 Thank you very much




 --
 View this message in context:
http://itext-general.2136553.n4.nabble.com/New-revision-issues-tp4658282.
html
 Sent from the iText - General mailing list archive at Nabble.com.

 
-
-
 AlienVault Unified Security Management (USM) platform delivers complete
 security visibility with the essential security capabilities. Easily and
 efficiently configure, manage, and operate all of your security controls
 from a single console and one unified framework. Download a free trial.
 http://p.sf.net/sfu/alienvault_d2d
 ___
 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

--

AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
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


--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
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] New revision issues

2013-05-17 Thread Leonard Rosenthol
You can always modify a non-encrypted/secured PDF.  Signing a PDF doesn't
prevent modification, it simply enables the ability to DETECT modification.

Leonard

On 5/17/13 11:01 AM, twain ant.mari...@gmail.com wrote:

Ok, 

but what about the meaning of revision?
If I sign a pdf than I cannot modify it, and it doesn't matter if I
create a
new revision.



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/New-revision-issues-tp4658282p4
658285.html
Sent from the iText - General mailing list archive at Nabble.com.

--

AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
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


--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
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] New revision issues

2013-05-17 Thread Leonard Rosenthol
If you don't use a certification signature, then you aren't stating any
rules for modification - which is considered to mean NO modifications.
So if you modify the document after signature, then it's invalid.  Clear?

If you wish to allow certain types of modifications after signing, then
you need to start with a Certification signature that states it as such.

Leonard

On 5/17/13 11:30 AM, twain ant.mari...@gmail.com wrote:

I'll try to explain better my situation.

About Michael doc: I never used certification signature but only approval
signature.
So I never set any level to prevent modification.

About Leonard reply: the problem is that, even if I used a new revision,
Acrobat complains that the first signature is not valid.
And this happens only if I sign a signed pdf trying to modify something in
it.
If I sign a signed pdf without any change this problem doesn't occur.

So I desume that revision, for approval signatures, doesn't allow to
modify
a signed pdf.
If you have a signed pdf you can only re-sign it without changes despite
of
revision.

Right?



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/New-revision-issues-tp4658282p4
658290.html
Sent from the iText - General mailing list archive at Nabble.com.

--

AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
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


--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
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] [SPAM] Re: New revision issues

2013-05-17 Thread Leonard Rosenthol
Nope - whatever that document says :)

On 5/17/13 11:46 AM, mkl m...@wir-sind-cool.org wrote:

Leonard,

Leonard Rosenthol-3 wrote
 If you don't use a certification signature, then you aren't stating any
 rules for modification - which is considered to mean NO modifications.
 So if you modify the document after signature, then it's invalid.
Clear?

Does that mean that the section Allowed actions for signed but
uncertified
documents from
http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/reade
r/pdfs/readercomp_digitalsignatures.pdf
does not hold anymore?

Regards,   Michael



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/New-revision-issues-tp4658282p4
658296.html
Sent from the iText - General mailing list archive at Nabble.com.

--

AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
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


--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
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] Reading pdf files with hebrew - encoding support

2013-05-13 Thread Leonard Rosenthol
Since Hebrew is NOT representable in ANSI, the second PDF in question has
been created in such a way as to prevent text extraction.  There is
nothing you can do (short of OCR).

Leonard

On 5/13/13 1:40 PM, ser...@mof.gov.il ser...@mof.gov.il wrote:


I try to read 2 pdf files with pdfreader. The pdf files contains hebrew
characters.
The encoding in one file is identity-h and in the other is ANSI.
When the encoding is identify-h the hebrew characters are displayed in the
console and printed in a txt file correctly.
When the encoding is ANSI the hebrew characters are displayed as ? .
The Java method used

   public static void loadPdfString(){
FileWriter fileWriter = null;
String INPUTFILE =
c:/Sergio/develop/conv_pdf/payslip.pdf;
//Specifying the file location.
//  String INPUTFILE = c:/Sergio
/develop/conv_pdf/payslip2.PDF; //Specifying the file location.
try {
File newTextFile = new File(
C:/Sergio/develop/conv_pdf/payslip_.txt);
fileWriter = new FileWriter(newTextFile);

PdfReader reader = new PdfReader(INPUTFILE);
int n = reader.getNumberOfPages();

String str=PdfTextExtractor.getTextFromPage(reader, 1);
//Extracting the content from a particular page.

//Print to console
System.out.println(str);
System.out.println(--);
//Print to file
fileWriter.write(str);
fileWriter.close();
}
catch (Exception e) {
System.out.println(e);
}
   }


Can anyone help me?
What is the best method to read hebrew characters?
Thank you.
Sergio



--

Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_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


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_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] [SPAM] Re: [SPAM] Re: Pdf redaction for sensitive information using itexsharp.

2013-05-02 Thread Leonard Rosenthol
On 5/2/13 9:15 AM, mkl m...@wir-sind-cool.org wrote:
If on the other hand you only want to redact specific types of contents
(e.g. immediate text content in the page content stream), that task is
feasible, especially when having the low level functionality of a library
like iText at hand.


You can't work on just the content stream level, even with just text.
Why?  Because you need to ensure that nothing else moves when you remove
something.  And sometimes the positioning operators are relative to the
current pen AFTER drawing, for example consider:

1 0 0 1 100 100 Tm
(See) Tj
50 0 Td
(Jane) Tj
25 100 Td
(run) Tj

And you want to remove Jane - you can't just remove that one line -
since now run will be in a different place on the page.  And you can't
know how to adjust the positioning of run without being able to load
fonts, measure text, etc.

iText has a lot of great stuff in there - but not all of it is necessarily
exposed as needed for this task.

Leonard


--
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


Re: [iText-questions] [SPAM] Re: Pdf redaction for sensitive information using itexsharp.

2013-05-01 Thread Leonard Rosenthol
Redaction with ANY PDF library is VERY difficultŠassuming you are planning
to support redaction of not just text, but also vector and raster graphics.

Leonard

On 5/1/13 5:46 PM, mkl m...@wir-sind-cool.org wrote:

Ganesh Jagdale wrote
 How can we use itextsharp for pdf redaction?

iText does not support redaction explicitly. it brings along all the
required low level functionality, though. Thus, implementing redaction
based
on iText is a medium difficulty task.

You'll have to decide, though, what exactly you want to be able to redact.
I've recently seen PDFs with text content inside fill patterns...

Regards, Michael.




--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Pdf-redaction-for-sensitive-inf
ormation-using-itexsharp-tp4658166p4658168.html
Sent from the iText - General mailing list archive at Nabble.com.

--

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


--
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


Re: [iText-questions] Applying Opacity for PDFX32002

2013-04-29 Thread Leonard Rosenthol
Perhaps you didn't read my message below – so let me repeat it (with additional 
emphasis)

PDF/X-3 2002 does not support opacity/transparency.  You can't use it.

If you need transparency in PDF/X, you need PDF/X-4.

If you have additional questions about the specifications, you can obtain a 
copy of the PDF/X-3 standard from ISO.

Leonard

From: Mandeep singh mashiana 
mandeep8...@gmail.commailto:mandeep8...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Monday, April 29, 2013 10:38 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Applying Opacity for PDFX32002

Ok, Thanks,
The Next thing i tried for opacity is, covert the string to a image with a 
transparent background, But When i try putting it on the PDFX32002. It gives me 
an error
The /SMask key is not allowed in images. Is there any way i can put a image 
with transparent background in a PDFX32002
-Mandeep.


On Sat, Apr 27, 2013 at 7:49 PM, Leonard Rosenthol 
lrose...@adobe.commailto:lrose...@adobe.com wrote:
PDF/X-3 2002 does not support opacity/transparency.  You can't use it.

If you need transparency in PDF/X, you need PDF/X-4.

Leonard

From: Mandeep singh mashiana 
mandeep8...@gmail.commailto:mandeep8...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Saturday, April 27, 2013 12:45 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Applying Opacity for PDFX32002

Hi,
I am working on a project which generates PDFX32002 pdf and I want to set the 
opacity of a text to 0.5, But no text is being displayed on the pdf. The Code 
works fine for a normal PDF and When I set coveWriter to PDFX32002  
coverWriter.setPDFXConformance(PdfWriter.PDFX32002); nothing happens.

This is a snippet for the code

PdfContentByte cb1 = coverWriter.getDirectContent();
PdfGState gstate = new PdfGState();
gstate.setFillOpacity(0.3f);
gstate.setStrokeOpacity(0.3f);
cb1.setGState(gstate);
ColumnText ct = new ColumnText(cb1);
ct.setSimpleColumn(phrase,x,y,Ux,Uy);
ct.go();

-Mandeep

--
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_apr
___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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_apr___
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] Applying Opacity for PDFX32002

2013-04-29 Thread Leonard Rosenthol
AFAIK, iText doesn't support PDF/X-4 at this time.  However, I'll let Bruno 
state it for sure.

From: Mandeep singh mashiana 
mandeep8...@gmail.commailto:mandeep8...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Monday, April 29, 2013 4:24 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Applying Opacity for PDFX32002

Then How do i set the coverWriter.setPDFXConformance  for PDF/X-4.  ?

-Mandeep
On Mon, Apr 29, 2013 at 12:30 PM, mashiana 
mandeep8...@gmail.commailto:mandeep8...@gmail.com wrote:
thanks



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Applying-Opacity-for-PDFX32002-tp4658147p4658154.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_apr
___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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_apr___
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] Applying Opacity for PDFX32002

2013-04-27 Thread Leonard Rosenthol
PDF/X-3 2002 does not support opacity/transparency.  You can't use it.

If you need transparency in PDF/X, you need PDF/X-4.

Leonard

From: Mandeep singh mashiana 
mandeep8...@gmail.commailto:mandeep8...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Saturday, April 27, 2013 12:45 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Applying Opacity for PDFX32002

Hi,
I am working on a project which generates PDFX32002 pdf and I want to set the 
opacity of a text to 0.5, But no text is being displayed on the pdf. The Code 
works fine for a normal PDF and When I set coveWriter to PDFX32002  
coverWriter.setPDFXConformance(PdfWriter.PDFX32002); nothing happens.

This is a snippet for the code

PdfContentByte cb1 = coverWriter.getDirectContent();
PdfGState gstate = new PdfGState();
gstate.setFillOpacity(0.3f);
gstate.setStrokeOpacity(0.3f);
cb1.setGState(gstate);
ColumnText ct = new ColumnText(cb1);
ct.setSimpleColumn(phrase,x,y,Ux,Uy);
ct.go();

-Mandeep
--
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_apr___
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] Embedding Color Profile in PDF using pdfwriter

2013-04-23 Thread Leonard Rosenthol
Illustrator doesn't use the OutputIntent.

For what purpose are you trying to embed an ICC profile?

Leonard

From: Julien Garcia Gonzalez 
julien.garciagonza...@compuzz.commailto:julien.garciagonza...@compuzz.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, April 23, 2013 4:18 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Embedding Color Profile in PDF using pdfwriter

Hi,

we are trying to embed a Color Profile ICC in a PDF using pdf writer by 
settings the Output intents:
When we see the size, the icc profile seems to be embedded (size of pdf, more 
than 1500kb instead of 15kb without Output intent)
but when we opened the file with illustrator, Illustrator show an error as the 
pdf not have an embedded ICC profile.

How can we embed the icc profile to the pdf?

Here is the code:

public static final String RESULT1 = c:/test.pdf;

/** A font program that is used. */
public static final String FONT = c:/windows/fonts/arial.ttf;
/** A color profile that is used. */
public static final String PROFILE = 
C:/Users/dev/Documents/Compuzz/ColorProfiles/SC_paper_eci.icc;

/** * Creates a PDF document. * @param filename the path to the new 
PDF document * @throws DocumentException  * @throws IOException */
public void createPdfX(String filename) throws IOException, 
DocumentException {
// step 1
Document document = new Document();
// step 2
PdfWriter writer = PdfWriter.getInstance(document,new 
FileOutputStream(filename));
writer.setPDFXConformance(PdfWriter.PDFX32002);
writer.setPdfVersion(PdfWriter.PDF_VERSION_1_7);
// step 3
document.open();
// step 4
Font font = FontFactory.getFont(FONT, BaseFont.CP1252, 
BaseFont.EMBEDDED, Font.UNDEFINED,Font.UNDEFINED, new CMYKColor(255, 255, 0, 
0));
ICC_Profile icc = ICC_Profile.getInstance(new FileInputStream(PROFILE));
writer.setOutputIntents(Custom, , 
http://www.color.org;http://www.color.org, SC_paper_eci.icc, icc);
document.add(new Paragraph(Hello World, font));
// step 5
document.close();
}



Thank you in advance,

Regards,

Julien Garcia Gonzalez

--
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_apr___
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] Duplicate indirect objects

2013-03-22 Thread Leonard Rosenthol
Such a document would be perfectly valid PDF.

For example, if I have a document that says that I owe you $200 but you use a 
standard PDF editing tool (Acrobat, FoxIt, etc.) to change it to $2000 and do a 
File-Save.   That will create a new content stream with the new data and 
potentially a bunch of other related objects, all pointed to by a new xref – 
called an incremental update. So now you have both in the file.  And some tools 
would let you extract the original version.

If you wish to build a tool that processes PDF files in ways other than the 
standard, there is nothing stopping you – but iText (as it stands today) is not 
to the tool for you (nor are any other standard PDF library).  You will need to 
learn the details of PDF and either write your own or modify an existing one.

Leonard

From: adriano asanton...@gmail.commailto:asanton...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Thursday, March 21, 2013 7:48 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Duplicate indirect objects

Ok, then suppose the incoming PDF document includes a stream object containing 
text that would cause trouble to the recipient if it only was visible, but it 
is not because it is not referenced in any page that the document is officially 
comprised of, according to the effective document Catalog. This document 
might even contain an extra Catalog that would cause the invisible text to 
become visible, if it only was in effect, but is not because it is located in 
an area of the PDF file that is also ignored. Again, I would rise my eyebrow if 
I noticed something like that by hand, and still more I would like to detect 
such a situation if I was processing a PDF document in an unattended way.

I perfectly understand that by processing the PDF document in a standard way 
that extra objects would just be ignored.
I just would like to detect such situations -- of course by processing the PDF 
in a non-standard way.

I also understand from your comments that you consider my arguments just 
nonsense, okay.
I just tried to ask



On Wed, Mar 13, 2013 at 3:49 PM, Leonard Rosenthol-3 [via iText - General] 
[hidden email]/user/SendEmail.jtp?type=nodenode=4657874i=0 wrote:
On 3/13/13 3:12 PM, adriano [hidden 
email]http://user/SendEmail.jtp?type=nodenode=4657816i=0 wrote:

Now, mkl, suppose you have to process the incoming PDF document as a
whole, without altering it in any way

Yes and no.

The process by which one processes a PDF document, where one starts with
the trailer-root/Catalog-Š, would mean that any objects that are NOT
referenced in the current xref table OR that are not linked into the
object tree, will be ignored.


Leonard


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar

___
iText-questions mailing list
[hidden email]http://user/SendEmail.jtp?type=nodenode=4657816i=1
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



If you reply to this email, your message will be added to the discussion below:
http://itext-general.2136553.n4.nabble.com/Duplicate-indirect-objects-tp4657759p4657816.html
To unsubscribe from Duplicate indirect objects, click here.
NAMLhttp://itext-general.2136553.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml



View this message in context: Re: Duplicate indirect 
objectshttp://itext-general.2136553.n4.nabble.com/Duplicate-indirect-objects-tp4657759p4657874.html
Sent from the iText - General mailing list 
archivehttp://itext-general.2136553.n4.nabble.com/ at Nabble.com.
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
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

Re: [iText-questions] Differences btw text extraction from iText and Acrobat Reader?

2013-03-20 Thread Leonard Rosenthol
On 3/20/13 8:38 AM, wwkloo wklo...@gmail.com wrote:

Additional information:
When create the PDF with another program, the text can be extracted by
iText
and Acrobat Reader XI correctly.
- 1: 0xD841 0xDD47
- 2: 0x92DB
D

That tells me that whatever program you are using to create the PDF is
broken and you should avoid it.

Leonard


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
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] Write timestamp in log

2013-03-20 Thread Leonard Rosenthol
On 3/20/13 8:49 AM, Ainur edu_p...@hotmail.com wrote:

Thanks for your answer, but that solution requires me to have a signature
with timestamp in order to collect data.

OK.  So the timestamp goes into the signature's data.


I think not explained my question well. I was wondering if itext allowed
to
make a call to a timestamp server and put the data in PDF, as attachments,
not into the firm.


You would have to put the attachment in FIRST and then sign.

Leonard


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
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] convert rtf to pdf. characters \tab and \page

2013-03-19 Thread Leonard Rosenthol
What do you mean they are converted to spaces?  How are you determining that?

Remember that in PDF, there is no concept of white space characters (in the 
content portion)…so if you had a tab in your original content, that is (pretty 
much) NEVER incorporated into the final PDF.

Leonard

From: Aitor Ramoneda ramoneda1...@gmail.commailto:ramoneda1...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, March 19, 2013 4:01 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] convert rtf to pdf. characters \tab and \page

Hi Alexis,

We have tried to construct the PDF using POI + itext without using the methods 
of RTF, and we have the same problem. The characters \tab and \page of the WORD 
or RTF are converted to spaces.

I think that is a general problem of PdfWriter.getInstance(document, new 
FileOutputStream(FILE)). If the  document have this characters the PdfWriter 
don't contemplate in the conversion.

What do you think?

Thanks,

Aitor Ramoneda

2013/3/19 Alexis Pigeon 
pigeon.ale...@gmail.commailto:pigeon.ale...@gmail.com
Hi Aitor,

On 19 March 2013 14:30, Aitor Ramoneda 
ramoneda1...@gmail.commailto:ramoneda1...@gmail.com wrote:
Hi Alexis,

Is there any way to achieve support of iText 4.2.0?

Maybe by purchasing a license from iText, which would entitle you to premium 
support [1]
However, you must understand that using pre-5.0.0 versions of iText might put 
you and your customers at risks, both technically and legally [2]
Another source of support could be stackoverflow [3] [4]

Then, the new releases of itext doesn't have utilities to convert RTF to PDF, 
has they?

Nope, RTF support has been dropped altogether.

HTH,
alexis

[1] http://itextpdf.com/support.php
[2] http://lowagie.com/iText2
[3] http://stackoverflow.com/questions/tagged/itext
[4] http://stackoverflow.com/questions/tagged/itextsharp


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
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] convert rtf to pdf. characters \tab and \page

2013-03-19 Thread Leonard Rosenthol
ASSUMING that \tab in RTF is the equivalent of ASCII 0x09, then yes, you would 
not find that in the PDF.

I don't know what \page means.

Leonard

From: Aitor Ramoneda ramoneda1...@gmail.commailto:ramoneda1...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, March 19, 2013 4:31 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] convert rtf to pdf. characters \tab and \page

Hi Leonard,

Maybe these don't be spaces...

Are you saying that characters \tab and \page of the original content can't 
be included in the final PDF?

Best regards,

Aitor

2013/3/19 Leonard Rosenthol lrose...@adobe.commailto:lrose...@adobe.com
What do you mean they are converted to spaces?  How are you determining that?

Remember that in PDF, there is no concept of white space characters (in the 
content portion)…so if you had a tab in your original content, that is (pretty 
much) NEVER incorporated into the final PDF.

Leonard

From: Aitor Ramoneda ramoneda1...@gmail.commailto:ramoneda1...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, March 19, 2013 4:01 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] convert rtf to pdf. characters \tab and \page

Hi Alexis,

We have tried to construct the PDF using POI + itext without using the methods 
of RTF, and we have the same problem. The characters \tab and \page of the WORD 
or RTF are converted to spaces.

I think that is a general problem of PdfWriter.getInstance(document, new 
FileOutputStream(FILE)). If the  document have this characters the PdfWriter 
don't contemplate in the conversion.

What do you think?

Thanks,

Aitor Ramoneda

2013/3/19 Alexis Pigeon 
pigeon.ale...@gmail.commailto:pigeon.ale...@gmail.com
Hi Aitor,

On 19 March 2013 14:30, Aitor Ramoneda 
ramoneda1...@gmail.commailto:ramoneda1...@gmail.com wrote:
Hi Alexis,

Is there any way to achieve support of iText 4.2.0?

Maybe by purchasing a license from iText, which would entitle you to premium 
support [1]
However, you must understand that using pre-5.0.0 versions of iText might put 
you and your customers at risks, both technically and legally [2]
Another source of support could be stackoverflow [3] [4]

Then, the new releases of itext doesn't have utilities to convert RTF to PDF, 
has they?

Nope, RTF support has been dropped altogether.

HTH,
alexis

[1] http://itextpdf.com/support.php
[2] http://lowagie.com/iText2
[3] http://stackoverflow.com/questions/tagged/itext
[4] http://stackoverflow.com/questions/tagged/itextsharp


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
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] convert rtf to pdf. characters \tab and \page

2013-03-19 Thread Leonard Rosenthol
If the RTF converter is recognizing that, then you'll get a new page in the PDF.

From: Aitor Ramoneda ramoneda1...@gmail.commailto:ramoneda1...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, March 19, 2013 5:39 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] convert rtf to pdf. characters \tab and \page

Hi Leonard,

\page indicates newPage. Is it in PDF?

Aitor

2013/3/19 Leonard Rosenthol lrose...@adobe.commailto:lrose...@adobe.com
ASSUMING that \tab in RTF is the equivalent of ASCII 0x09, then yes, you would 
not find that in the PDF.

I don't know what \page means.

Leonard

From: Aitor Ramoneda ramoneda1...@gmail.commailto:ramoneda1...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, March 19, 2013 4:31 PM

To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] convert rtf to pdf. characters \tab and \page

Hi Leonard,

Maybe these don't be spaces...

Are you saying that characters \tab and \page of the original content can't 
be included in the final PDF?

Best regards,

Aitor

2013/3/19 Leonard Rosenthol lrose...@adobe.commailto:lrose...@adobe.com
What do you mean they are converted to spaces?  How are you determining that?

Remember that in PDF, there is no concept of white space characters (in the 
content portion)…so if you had a tab in your original content, that is (pretty 
much) NEVER incorporated into the final PDF.

Leonard

From: Aitor Ramoneda ramoneda1...@gmail.commailto:ramoneda1...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Tuesday, March 19, 2013 4:01 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] convert rtf to pdf. characters \tab and \page

Hi Alexis,

We have tried to construct the PDF using POI + itext without using the methods 
of RTF, and we have the same problem. The characters \tab and \page of the WORD 
or RTF are converted to spaces.

I think that is a general problem of PdfWriter.getInstance(document, new 
FileOutputStream(FILE)). If the  document have this characters the PdfWriter 
don't contemplate in the conversion.

What do you think?

Thanks,

Aitor Ramoneda

2013/3/19 Alexis Pigeon 
pigeon.ale...@gmail.commailto:pigeon.ale...@gmail.com
Hi Aitor,

On 19 March 2013 14:30, Aitor Ramoneda 
ramoneda1...@gmail.commailto:ramoneda1...@gmail.com wrote:
Hi Alexis,

Is there any way to achieve support of iText 4.2.0?

Maybe by purchasing a license from iText, which would entitle you to premium 
support [1]
However, you must understand that using pre-5.0.0 versions of iText might put 
you and your customers at risks, both technically and legally [2]
Another source of support could be stackoverflow [3] [4]

Then, the new releases of itext doesn't have utilities to convert RTF to PDF, 
has they?

Nope, RTF support has been dropped altogether.

HTH,
alexis

[1] http://itextpdf.com/support.php
[2] http://lowagie.com/iText2
[3] http://stackoverflow.com/questions/tagged/itext
[4] http://stackoverflow.com/questions/tagged/itextsharp


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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


--
Everyone hates slow websites. So do we.
Make your

Re: [iText-questions] Insert Revisions Programmatically In A PDF File

2013-03-14 Thread Leonard Rosenthol
It's not possible with ANY PDF library, since revisions are specific to
the PDF for which they were created.

A PDF revision (or incremental update, to the use the PDF terminology) is
a collection of new, modified or (references to) deleted objects from the
previous revision.  Since object ID's are only unique in a single document
- a revision for one document has no meaning on another one.

What you COULD DO (though not with iText) would be to diff/compare the
two PDF files and create a version that shows the visual (or possibly
non-visible) difference.  Adobe Acrobat on the desktop, for example, can
do this.

Leonard

On 3/14/13 3:37 PM, k...@dataverse.gr k...@dataverse.gr wrote:

Hello.

I am trying to insert/copy the revisions from an old PDF file (extracted
with AcroFields.ExtractRevision()) to a new one.
Can this be done with iText?
Basically, I have a document in two formats: In a DOC/DOCX document and in
a PDF file. The PDF version needs to accumulate all the revisions made by
the user on the DOC file (e.g. every time the user modifies the DOC and
re-uploads it on the server, the a new PDF file gets created from that DOC
and the old PDF file revisions need to get imported in the new PDF).
If someone knows how to do this (copy PDF revisions to another PDF),
please let me know.

Thanks in advance.



--

Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
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] [SPAM] Re: Need help for Character Spacing in existing pdf

2013-03-13 Thread Leonard Rosenthol
Changing the font of any arbitrary text in any arbitrary PDF is EXTREMELY 
DIFFICULT (or may even be impossible in some cases).  You really need to read 
ISO 32000-1:2008 (the PDF standard) to get a deep understanding of font 
technology and text encoding issues and why it is such a hard problem.

Changing the character spacing of a run of text is easy – there is a text state 
operator (Tc) for that.

Leonard

From: Shafi hameed shafi123sh...@gmail.commailto:shafi123sh...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, March 13, 2013 11:34 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] [SPAM] Re: Need help for Character Spacing in 
existing pdf

Actually my basic requirement is to change the font of existing pdf into 
'Braille' (Braille.ttf is a true type font basically for blind people)
I want to select any PDF file and want to change all its font into Braille. as 
I did not findno easy method to change the existing text font, I did some trick 
to change all the text's font into Braille.
every thing worked fine for me but another problem occurred, since The width of 
Braille font is greater than the actual font's width which resulted the 
overlapping of character. file fully converted into Braille font but there is 
very less distance between two character. so I thought if I could set a spacing 
between two character, my problem would be solved.

OR
please tell me any easer way to change the all text fonts into Braille or any 
selected font.




On Wed, Mar 13, 2013 at 3:39 PM, mkl 
m...@wir-sind-cool.orgmailto:m...@wir-sind-cool.org wrote:
Shafi hameed,

Shafi hameed wrote
 I have a pdf file in which all the contents are in Arial font. my
 requirement is to set a space between every character. eg. i want to
 change 'HELLO' as 'H E L L O'.

Unless you only need to do that for the single PDF you mentioned (or a some
PDFs internally very similar), that is a hell of an assignment. And as your
title in your footer says that you are a Sr. Software engineer, I'm
inclined to doubt that this is only an excercise with only one target PDF...

Some questions, therefore:

 1. Do you really only need to process that one PDF you mentioned? Or only
PDFs internally very similar? In these cases, please provide that PDF.

 2. Can the text content of the PDFs in question be considered parsable?

 3. How wide should that space be? The width of a regular space character?
Some custom width? A width to calculate from font size and style?

 4. Inserting a space makes text lines longer. Does your assignment include
reflowing lines which afterwards would reach beyond some margin? In that
case, are the margins and the general page structure known?

 5. When copying and pasting text from your PDF, shall that text also
include the spaces?

 6. Does your assignment involve shifting annotations and jump targets which
might be considered anchored relative to certain page content?

Depending on the answers there may follow more questions still.

Regards,   Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Re-Need-help-for-Character-Spacing-in-existing-pdf-tp4657800p4657801.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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



--
Thanks  Regards

Shafi
Sr. Software engineer | Propalms Network Pvt Ltd. Pune
[http://www.propalmsnetwork.com/eshots/2011Allproduct_files/propalmslogo3.jpg]
http://www.http://www.tlcinfotech.co.in/propalmsnetwork.commailto:shafiuddin.ham...@propalmsnetwork.com
 | 
shafiuddin.ham...@propalmsnetwork.commailto:shafiuddin.ham...@propalmsnetwork.com
8600335990
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
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 

Re: [iText-questions] Duplicate indirect objects

2013-03-13 Thread Leonard Rosenthol
On 3/13/13 3:12 PM, adriano asanton...@gmail.com wrote:

Now, mkl, suppose you have to process the incoming PDF document as a
whole, without altering it in any way

Yes and no.

The process by which one processes a PDF document, where one starts with
the trailer-root/Catalog-Š, would mean that any objects that are NOT
referenced in the current xref table OR that are not linked into the
object tree, will be ignored.


Leonard


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
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] Duplicate indirect objects

2013-03-11 Thread Leonard Rosenthol
Adriano - I think you are asking the wrong question because it doesn't
make sense.

When you read/parse a PDF, there can only be ONE Document Catalog object
in the active PDF document.  The reason is because that object is
determined by the value of the /Root key in the CURRENT Trailer.  Once you
have that object, it will start your tree walk to all other objects in
the current/active PDF.

Leonard

On 3/11/13 5:16 PM, adriano asanton...@gmail.com wrote:

I realize that I was not clear when asking my question and making an
example.
I am not referring to regular PDF documents, but intentionally altered
ones
made up by the bad guys in order to try and cause problems to some
application. I am aware that a PDF document may have more than one
/Catalog
if it has been revised.
So what I was asking about is how to find suspicious objects in a PDF,
like
e.g. seemingly unused or duplicated ones of certain types (like a double
/Catalog when the document has no revisions) 
But may be I am still asking the wrong questions in the wrong place...



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Duplicate-indirect-objects-tp46
57759p4657791.html
Sent from the iText - General mailing list archive at Nabble.com.

--

Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-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


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-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] Still no hint

2013-03-08 Thread Leonard Rosenthol
Acrobat doesn't write that value anywhere.  Evermap's plugin may do so,
but Acrobat itself doesn't.

As for why it works in some but not others - I'd need to see the actual
PDFs in question to be able to comment.

I can say that we don't do any range checking on that value (beyond making
sure it's a valid number).

Leonard


On 3/8/13 10:11 AM, Paul Breslaw p...@breslaw.co.uk wrote:


On 07/03/13 20:06, Paulo Soares wrote:
 Here the author of the mystic 1.

Wonderful! Hello Paulo - thank you for writing - and for being one of
the authors of such a marvelously useful library.

 This value is the page height to
 position the view at the top. As the destination page size is generally
not
 known the 1 was an arbitrary big enough value greater then the
 destination page.

Okay - so the value you chose was arbitrarily large, but otherwise has
no significance.

 Why -32768 would work better is a mystery to me.

That's interesting. I wonder if anyone from Adobe is reading this,
because they might be able to comment on it?

To recap from my earlier posting:-

If I generate a link to page 1 of an external PDF using iText, then in
the Adobe reader, with a very few target files, I end up on the wrong
page.

With other readers I end up on the right page.

I do not know what significant charateristics the offending target files
have.

If I export the links using the Evermap AutoBookmark plug-in for Adobe,
delete all the links, and re-import them (using the same plug-in), then
the problem disappears.

Since the only difference between 'before' and 'after' is 1 vs
-32768, and this was (presumably) produced by the Adobe software, I
guess Adobe have a reason for using -32768.


What conditions would have to be met for iText to change the constant to
-32768?


Regards

Paul.

--

Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-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


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-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] Still no hint

2013-03-08 Thread Leonard Rosenthol
On 3/8/13 1:10 PM, Paul Breslaw p...@breslaw.co.uk wrote:
As for why it works in some but not others - I'd need to see the actual
 PDFs in question to be able to comment.

That would be great. I will try to put together minimal examples of the
phenomenon. Do you know if I am permitted to attach files to submissions
to the list, or should I send the files to you personally?

Just send them to me directly.  No need to clutter the listŠ


I can say that we don't do any range checking on that value (beyond
making
 sure it's a valid number).

Does this mean that, in your understanding, whilst a negative number is
legal, its interpretation is undefined?

It's interpretation is understood - you simply use it with respect to the
page's Top as you would for any value.  BUT, for any result which yields a
number that is out of bounds, the handling of that, by a conforming
viewer, is indeed undefined.  For example, it wouldn't surprise me that
some viewers simply pin the values between 0  maxPageSize.

Leonard


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-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] Still no hint

2013-03-07 Thread Leonard Rosenthol
Paul - the problem I suspect is that your first element of that array
should be an indirect object and NOT a page number.  ISO 32000-1:2008,
12.3.2

Leonard

On 3/7/13 7:37 AM, Paul Breslaw p...@breslaw.co.uk wrote:


Dear List

I've written a couple of times about a strangeness with
Chunk.setRemoteGoto(), but I'm no closer to an understanding of it.

The problem boiled down to a question about the PDF code emitted by this
constructor for PdfAction:-

 public PdfAction(String filename, int page) {
 put(PdfName.S, PdfName.GOTOR);
 put(PdfName.F, new PdfString(filename));
 put(PdfName.D,
   new PdfLiteral([ + (page - 1) +  /FitH 1]));
 }

As I wrote previously, some links generated by this code, when viewed
with the Adobe reader, went to the wrong page of the destination document.

However, changing the 1 above to -32768 fixed it.

Is this a bug? If so, is it a bug in iText or in the Adobe reader (other
readers worked fine)?

And whatever the case, does anyone have an explanation for the numbers?


Thank you.

Paul Breslaw.



--

Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-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


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-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] Still no hint

2013-03-07 Thread Leonard Rosenthol
Sorry - missed that, it's a GoToRŠ

In that case, the page number should start at zero hence the -1 in the
code.  (see 12.6.4.3)

I agree those values (either 1 or -32768) are both wrong.  It should
be the correct size for the page.

Leonard

On 3/7/13 9:48 AM, Paul Breslaw p...@breslaw.co.uk wrote:



On 07/03/13 13:48, TvT wrote:
 no need to pay CHF238 , you can download it for free here:

Brilliant thank you.

 On 07/03/13 13:12, Leonard Rosenthol wrote:
 Paul - the problem I suspect is that your first element of that array
 should be an indirect object and NOT a page number.  ISO 32000-1:2008,
 12.3.2

I don't think so in the case of a page in a remote document. Section
12.3.2.2 says:-

No page object can be specified for a destination associated with a
remote go-to action (see 12.6.4.3, ³Remote Go-To Actions²) because the
destination page is in a different PDF document. In this case, the page
parameter specifies an integer page number within the remote document
instead of a page object in the current document.

And anyway it's not the page number that is of concern to me, rather the
value of the 'top' parameter (1 or -32768).


Regards

Paul.



--

Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-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


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-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] Extract PDF from a PDF Collection

2013-03-01 Thread Leonard Rosenthol
The values of EmbeddedFiles is a Names Tree - so it can have both Names
and Kids in any combination

Leonard

On 2/28/13 11:33 PM, sselvia ssel...@gmail.com wrote:

Using the code below I'm trying to extract an embedded PDF which I can
see in
Reader.  The problem I'm having is the PdfArray file specs = embedded
files.getAsArray(PdfName.NAMES);  The content of the embeddedfiles is an
KIDS item not NAMES.  If I change the code to be KIDS and execute the rest
of the code the refs item is null.  In the catalog a COLLECTION item does
exist, is there an example using the COLLECTION item that will allow me to
extract the embedded PDF.

PdfReader reader = new PdfReader(filename);
PdfDictionary root = reader.getCatalog();
PdfDictionary documentnames = root.getAsDict(PdfName.NAMES);
PdfDictionary embeddedfiles =
documentnames.getAsDict(PdfName.EMBEDDEDFILES);
PdfArray filespecs = embeddedfiles.getAsArray(PdfName.NAMES);
PdfDictionary filespec;
PdfDictionary refs;
FileOutputStream fos;
PRStream stream;
for (int i = 0; i  filespecs.size(); ) {
  filespecs.getAsString(i++);
  filespec = filespecs.getAsDict(i++);
  refs = filespec.getAsDict(PdfName.EF);
  for (PdfName key : refs.getKeys()) {
fos = new FileOutputStream(String.format(PATH,
filespec.getAsString(key).toString()));
stream = (PRStream)
PdfReader.getPdfObject(refs.getAsIndirectObject(key));
fos.write(PdfReader.getStreamBytes(stream));
fos.flush();
fos.close();
  }
}
reader.close();



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Extract-PDF-from-a-PDF-Collecti
on-tp4657711.html
Sent from the iText - General mailing list archive at Nabble.com.

--

Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
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] Strange behaviour of Chunk.setRemoteGoto

2013-02-28 Thread Leonard Rosenthol
Paul - I don¹t see your original post.  Can you repost?

On 2/28/13 6:00 AM, Paul Breslaw p...@breslaw.co.uk wrote:


I posted a question about Chunk.setRemoteGoto and /FitH a few days ago,
but it doesn't seem to have triggered any comment.

I'm quite prepared to be told that the question doesn't make sense, or
that I should read the book (which I have done). And I would consider it
an absolutely unpunishable good deed if I were given just a hint of
guidance. :-)


Thanks

Paul Breslaw.


--

Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
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] PKCS#1 signature + iText = signed pdf

2013-02-27 Thread Leonard Rosenthol
You can't do that - it doesn't make any sense in the PDF context.


On 2/27/13 12:35 PM, adamec adam.pomo...@gmail.com wrote:

Hi guys.

I cannot find a way, how to use already created detached PKCS#1 signature
with iText. This topic is quite similar, but gives me no answers (and uses
old version of iText) -
http://itext-general.2136553.n4.nabble.com/HASH-SMARTCARD-and-PKCS-7-detac
hed-td3047252.html.

I have raw PKCS#1 signature as array of bytes, signing certificate but no
access to private key.

How can I use iText to sign pdf? I couldn't find any examples for this
case.
Is it even possible? Thanks a lot for any kind of info!!!



--
View this message in context:
http://itext-general.2136553.n4.nabble.com/PKCS-1-signature-iText-signed-p
df-tp4657691.html
Sent from the iText - General mailing list archive at Nabble.com.

--

Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
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] Adding a destination anchor to an existing PDFpage

2013-02-22 Thread Leonard Rosenthol
You seem to be confusing the capabilities of PDF (the file format) with the 
capabilities of products (such as the merging feature iText).

PDF very happily supports the concept of an anchor (called a named 
destination in PDF terms).  Additionally, links (either as Actions or as 
Destinations) can point to either local or remote named destinations.  They can 
also be referenced in URLs or via the command line when opening a PDF.

I can't speak for iText and it's merge feature, but I can say that if you use 
Adobe Acrobat, it will merge the named destinations and thus provide you what 
you want.

So what you want is 100% doable – it just make take some work on your end.

Leonard

From: HJT Research h...@hjt-research.co.ukmailto:h...@hjt-research.co.uk
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Friday, February 22, 2013 6:46 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Adding a destination anchor to an existing 
PDFpage

In fact, following this up myself, I think this might be more a general PDF 
issue, having also tried and failed to do what I want to do by manually 
inserting and extracting pages in Acrobat.

Googling, I found that this http://forums.adobe.com/message/2013939 describes 
the problem I am having.

It seems I cannot create an internal anchor reference in one PDF file and a 
corresponding internal anchor name in another PDF file and then merge the two 
files and get the anchor reference in what was the first file to go to the 
anchor name in what was the second file. I’m using Word 2007 to generate the 
PDFs and it works in MS Word (e.g. copying text with bookmark/links from one 
document to another) but seems not in PDF. So maybe internal anchors only work 
in the same PDF file.

What I am actually trying to do is to preserve a Word table of contents 
hyperlink. It goes to a location like _toc1234567 so I thought if I added that 
as a destination anchor in a new PDF file, Word’s hyperlinked table of contents 
would go to that destination when I merged the PDF files.

Would be grateful if anyone can think of a way to effectively mimic an anchor’s 
destination using iText, otherwise I’ll have to stick to PDF bookmarks as links.

John

From: HJT Researchmailto:h...@hjt-research.co.uk
Sent: Thursday, February 21, 2013 6:51 PM
To: 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Adding a destination anchor to an existing PDFpage

Hi.

I am trying (and failing) to add an internal destination anchor to an existing 
PDF page so would be grateful for any help. I’m using iTextSharp (VB code so no 
semi-colons...).

I’ve tried:

Dim myAnchor As Anchor = New Anchor(anchorlink, Ar9FONT)
myAnchor .Name = anchorlink
col.SetSimpleColumn(myAnchor , left, bottom, right, top, 10, Element.ALIGN_LEFT)
col.Go()

But while the text of what I want to be the anchor is added to the page (i.e. 
the string ‘anchorlink’), it’s not acting as a destination when I click on a 
hyperlink in the PDF which goes to that location.

If I try adding a link rather than a destination with .Reference such as:

Dim myAnchor As Anchor = New Anchor(anchorlink, Ar9FONT)
myAnchor.Reference = http://www.google.com/;
col.SetSimpleColumn(myAnchor, left, bottom, right, top, 10, Element.ALIGN_LEFT)
col.Go()

It works and the text is a clickable hyperlink. So SetSimpleColumn(myAnchor...) 
add anchors OK but maybe I am missing something regarding getting it to work 
with an internal destination?

Thank you in advance for your time and assistance.

Jay



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb


___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
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 

Re: [iText-questions] Creating Accessible Tables in 5.3.5 (Tagged, Marked Content)

2013-02-18 Thread Leonard Rosenthol
On 2/17/13 4:20 PM, 1T3XT BVBA i...@1t3xt.info wrote:
I really get frustrated when people use iText the wrong way. I know I
shouldn't, but I can't help it.


Completely understoodŠask me how frustrated I get at PDF creation software
that generates broken PDFs (even in 2013!!!).


With this in mind:
Once we start saying that iText supports PDF/UA creation, we'll need to
make sure people don't have the wrong expectations. Sure, you'll be able
to create correct PDF/UA documents using iText,

Just remember that it is IMPOSSIBLE to create a PDF/UA compliant document
(for the normal cases of document) w/o human intervention.  This is,
unfortunately, by design in PDF/UA - and accessibility in general (WCAG
has the same issue).  Some things, such as Alt text for images, has to be
provided by humans and can't be auto-generated.   Sure, in theory, if you
had a database with all the human-generated stuff pre-entered, then you
could - but that's not the case in 99.9%.


We need good documentation and a good set of rules to make sure
developers using iText create PDF/UA documents correctly. Having a clear
checklist based on the PDF/UA standard as well as the Matterhorn
protocol should help.

Yes, documentation, rules, guidelines, checklists, etc. are all good - no
question.

My question was how useful putting stuff into the PDF itself (in the form
of Matterhorn) mattersŠ


Is there a market for it? There's certainly a market for PDF/UA

I agree 100%!  Accessibility and PDF/UA is important, but you (and your
customers!) need to understand what that means (and what it doesn't, as
noted above).


Leonard


--
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
___
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] Creating Accessible Tables in 5.3.5 (Tagged, Marked Content)

2013-02-18 Thread Leonard Rosenthol
On 2/18/13 4:17 PM, Duff Johnson d...@duff-johnson.com wrote:
My question was how useful putting stuff into the PDF itself (in the form
 of Matterhorn) mattersŠ

Well, you might guess that I think it's VERY important! ;-)

The reason is simple. As you pointed out, validation involves
humans, and that's expensive. Matterhorn addresses the problem
by making validation data interoperable.

Matterhorn is certainly one possible way to potentially address that
issue.  Whether it is the right solution or the one that the industry will
adopt is still quite up in the air.

Leonard


--
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
___
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] Creating Accessible Tables in 5.3.5 (Tagged, Marked Content)

2013-02-16 Thread Leonard Rosenthol
On 2/16/13 3:51 AM, 1T3XT BVBA i...@1t3xt.info wrote:
This includes RD regarding the Matterhorn Protocol.

Why do you believe this is an important thing to invest in?   Do you have
any customers asking for it?  Have you talked to other vendors (of note)
who plan to introduce this into their products?  Do you believe that
supporting it will have a benefit to users?

Leonard



--
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
___
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] Tagging content

2013-02-13 Thread Leonard Rosenthol
Jason, using the Alt for an image is NOT the right way to accomplish what you 
want.

You should just put a custom key of your own choosing on each Xobject that you 
wish to mark.  This would be a second class key (as described in ISO 
32000-1:2008) and you'll need to register your second class extension with ISO. 
 But that's just formality…

Leonard

From: Jason Kissinger 
ja...@jasonkissinger.commailto:ja...@jasonkissinger.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, February 13, 2013 12:18 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Tagging content

Would the new accessibility api be appropriate for tagging an /XObject (ie 
image) so that it can later be retrieved by test automation?  Or is there 
something else?

I built 5.4.0 from svn, and added accessibleAttribute to image:

image.setAccessibleAttribute(PdfName.ALT, new PdfString(image1));

but then don't see anything new when I open it up (using rups and hunting 
around with my own code).

We embed multiple jpg and svg, which we generate, into our documents.  And then 
have junit tests that try to find the object and assert content is as expected. 
 I'm able to parse out the svg/jpg from pdf no problem, but am not able to 
identify which instance I have.  Would like to tag them during pdf generation 
so that I can extract by that tag during pdf testing.
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
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] Tagging content

2013-02-13 Thread Leonard Rosenthol
The way to do it is what I am telling you to do.   Custom key on the Xobject 
dictionary.   That is how it has been done for 20 years now.

The Alt element is for use in helping users who require assistive technology 
(such as blind users).  Putting your value in there will screw them up :(

Leonard

From: Jason Kissinger 
ja...@jasonkissinger.commailto:ja...@jasonkissinger.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, February 13, 2013 12:54 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Tagging content


Righto, I'll get right on that.   ;-)

Is there not a way to tag an object in any way so that I can pull it later?

On Feb 13, 2013 11:46 AM, Leonard Rosenthol 
lrose...@adobe.commailto:lrose...@adobe.com wrote:
Jason, using the Alt for an image is NOT the right way to accomplish what you 
want.

You should just put a custom key of your own choosing on each Xobject that you 
wish to mark.  This would be a second class key (as described in ISO 
32000-1:2008) and you'll need to register your second class extension with ISO. 
 But that's just formality…

Leonard

From: Jason Kissinger 
ja...@jasonkissinger.commailto:ja...@jasonkissinger.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, February 13, 2013 12:18 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Tagging content

Would the new accessibility api be appropriate for tagging an /XObject (ie 
image) so that it can later be retrieved by test automation?  Or is there 
something else?

I built 5.4.0 from svn, and added accessibleAttribute to image:

image.setAccessibleAttribute(PdfName.ALT, new PdfString(image1));

but then don't see anything new when I open it up (using rups and hunting 
around with my own code).

We embed multiple jpg and svg, which we generate, into our documents.  And then 
have junit tests that try to find the object and assert content is as expected. 
 I'm able to parse out the svg/jpg from pdf no problem, but am not able to 
identify which instance I have.  Would like to tag them during pdf generation 
so that I can extract by that tag during pdf testing.

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
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] Tagging content

2013-02-13 Thread Leonard Rosenthol
Except for your not being allowed to use a first class key (aka a key w/o a 
prefix), yes.

So now go to http://www.adobe.com/devnet/acrobat/pdfs/pdfregistry_v3.pdf, 
fill out the form and submit it.  Then you'll have your legal prefix.

Leonard

From: Jason Kissinger 
ja...@jasonkissinger.commailto:ja...@jasonkissinger.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, February 13, 2013 2:56 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Tagging content

To answer my own question (assume I'm on right track)...


Image doesn't represent an /XObject, but PDFTemplate does.  Doing:

pdfTemplate.getAdditional().put(new PdfName(myId), new PdfString(image1));

adds '/myId' to xobject's dictionary and I can now find the image stream by 
myId.

Is that the 'correct' way to tag an image?
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
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] Tagging content

2013-02-13 Thread Leonard Rosenthol
Are you saying that these keys will never appear in a PDF that makes it out in 
the wild (aka to the real world)?

A PDF containing an undefined first class key in a dictionary is technically 
not a compliant PDF, and may be flagged as such by a validator.  (for example, 
the PDF validator in Adobe Acrobat would flag it as such).

Additionally, sure.  If someone else also chose to break the rules and use a 
1st class key and you were both using them for something completely different – 
all hell could break lose.

Given that there is ZERO cost to registering the prefix.  I really don't 
understand your objection to just doing the right thing

Leonard

From: Jason Kissinger 
ja...@jasonkissinger.commailto:ja...@jasonkissinger.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, February 13, 2013 4:56 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Tagging content

This is just for our testing purposes.  Not for external use by anyone.

So in the absence of an already approved generic 'identifier' key for us to 
use, what are the drawbacks of us having a non-ISO approved key in our 
documents?
Collision with someone else's key causing plugin or some such to err when it 
hits our invalid use of their key?


On Wed, Feb 13, 2013 at 3:43 PM, Leonard Rosenthol 
lrose...@adobe.commailto:lrose...@adobe.com wrote:
Except for your not being allowed to use a first class key (aka a key w/o a 
prefix), yes.

So now go to 
http://www.adobe.com/devnet/acrobat/pdfs/pdfregistry_v3.pdfhttp://www.adobe.com/devnet/acrobat/pdfs/pdfregistry_v3.pdf%3E,
 fill out the form and submit it.  Then you'll have your legal prefix.

Leonard

From: Jason Kissinger 
ja...@jasonkissinger.commailto:ja...@jasonkissinger.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Wednesday, February 13, 2013 2:56 PM

To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Tagging content

To answer my own question (assume I'm on right track)...


Image doesn't represent an /XObject, but PDFTemplate does.  Doing:

pdfTemplate.getAdditional().put(new PdfName(myId), new PdfString(image1));

adds '/myId' to xobject's dictionary and I can now find the image stream by 
myId.

Is that the 'correct' way to tag an image?

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
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] PDF/A creation from image stopped working in iTextSharp 5.3.5

2013-02-07 Thread Leonard Rosenthol
On 2/7/13 5:50 AM, Berend b.engelbre...@gmail.com wrote:

How do I do that Acrobat syntax check? (I only have acrobat reader, not
professional)

You have Adobe Reader.

If you want to do the Acrobat syntax check, you need Adobe Acrobat. If you
are going to be doing PDF development, you will find it indispensable.
(of course, I'm biased on that matter :).

Leonard


--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
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] Rename Spot Colors

2013-02-07 Thread Leonard Rosenthol
I find it hard to believe that the actual names of the spot colors are MAIN and 
ACCENT.  Can you provide a sample that demonstrates this???

Leonard

From: Dean Johnson dean.john...@rrd.commailto:dean.john...@rrd.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Thursday, February 7, 2013 10:27 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Rename Spot Colors

I'm working on a project where I receive PDFs from an Adobe Secene7 web site 
offering various printed products. As I understand it the user can select a 
color palette as one of the options from within the product template. My job is 
to produce the printed pieces and consistantly match the color palette on our 
iGen digital press where we will set up color match libraries for each color in 
the palette. My problem is that the spot color names on the incoming PDFs are 
all called the same, i.e., MAIN COLOR or ACCENT COLOR, even though the colors 
are different, i.e., MAIN may be purple in one file, while green in another. So 
there is no way to set up color definitions for color management on the iGen.

Question -- is there some way using iText to rename the spot colors within the 
PDFs -- I can get the correct color names from the order file that comes with 
the PDFs.



--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
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] Rename Spot Colors

2013-02-07 Thread Leonard Rosenthol
ARGH!!!

I need to go shoot the Scene 7 guys – sorry about that.

As to your question…I believe you can use the lowest level APIs in iText to fix 
this, though I'll leave details to Bruno and team.

Leonard

From: Dean Johnson dean.john...@rrd.commailto:dean.john...@rrd.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Thursday, February 7, 2013 11:46 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Rename Spot Colors

I agree, hard to believe.
Two files attached showing two different colors but named the same.

Dean


On Thu, Feb 7, 2013 at 1:24 PM, Leonard Rosenthol 
lrose...@adobe.commailto:lrose...@adobe.com wrote:
I find it hard to believe that the actual names of the spot colors are MAIN and 
ACCENT.  Can you provide a sample that demonstrates this???

Leonard

From: Dean Johnson dean.john...@rrd.commailto:dean.john...@rrd.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Thursday, February 7, 2013 10:27 AM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: [iText-questions] Rename Spot Colors

I'm working on a project where I receive PDFs from an Adobe Secene7 web site 
offering various printed products. As I understand it the user can select a 
color palette as one of the options from within the product template. My job is 
to produce the printed pieces and consistantly match the color palette on our 
iGen digital press where we will set up color match libraries for each color in 
the palette. My problem is that the spot color names on the incoming PDFs are 
all called the same, i.e., MAIN COLOR or ACCENT COLOR, even though the colors 
are different, i.e., MAIN may be purple in one file, while green in another. So 
there is no way to set up color definitions for color management on the iGen.

Question -- is there some way using iText to rename the spot colors within the 
PDFs -- I can get the correct color names from the order file that comes with 
the PDFs.




--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
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] AddImage Parameters

2013-02-05 Thread Leonard Rosenthol
You can't.  The PDDoc is a private data structure to Acrobat while the 
iTextSharp Document is private to iText.

What you need to do is simply reopen the PDF document in iText.

Leonard

From: Vidhya K P vidhy...@gmail.commailto:vidhy...@gmail.com
Reply-To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Date: Monday, February 4, 2013 11:59 PM
To: Post here 
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] AddImage Parameters

Hi,

I need to convert AcroExch.PDDoc to iTextSharp.text.Document. Please advise me 
on how to get this done..


On Mon, Feb 4, 2013 at 6:55 PM, iText Info 
i...@1t3xt.infomailto:i...@1t3xt.info wrote:
Op 4/02/2013 12:55, Vidhya K P schreef:
 I have a Acrobat.CAcroPDDoc pdDocMain object. I need to convert this
 to iTextSharp.text.Document.
Please understand that the iText community doesn't have any clue what
you mean when you say you have an Acrobat.CAcroPDDoc pdDocMain object.

Your question sounds like: I have a square peg, how do I fit it into a
round hole.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
___
iText-questions mailing list
iText-questions@lists.sourceforge.netmailto: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



--
Vidhya
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
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] SWF embedded in second page and/or thereafter in PDF doesn't get printed

2013-02-01 Thread Leonard Rosenthol
And my answer still stands.

In order to have SWF content print, EITHER the annotation appearance has
to be generated ahead of time OR the SWF needs to modified to respond to
the proper event (I don't recall what it is) when asked.

Leonard

On 2/1/13 6:32 AM, iText Info i...@1t3xt.info wrote:

Op 1/02/2013 10:17, Benjamin Podszun schreef:
 Wouldn't Leonard's answer over there be considered valid by default,
 given his employer?
Yes, but please give him some time. We value his presence on the iText
mailing-list, but note that although we're all very interested in the
answer, he has no obligation to answer questions related to Adobe on the
iText mailing-list.

I'm sorry if my remark gave the impression that this question should be
treated differently. That wasn't my intention. I was just being curious.

--

Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
___
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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
___
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   >