Quantcast

Itext 5.4.1 - Metadata Bug?

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Itext 5.4.1 - Metadata Bug?

linuxunil
Hello,

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

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

My code:

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

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

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

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

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

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

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

In version 5.3.5 of Itext it's does not happen.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

linuxunil
Hello,

If you run the example part3.chapter12.MetadataXmp.java with the version of Itext 5.4.1 you get the same errors.

#> Link: https://www.dropbox.com/s/noxpzxcqd6mmc95/pdfMetadataError2.jpg
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

info-2
In reply to this post by linuxunil
On Thu, 23 May 2013 22:59:55 +0200, linuxunil <[hidden email]>  
wrote:

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

We've tested the code, and we don't consider this to be a bug.

The file looks OK when we look at its syntax (see attached screen shot).
Granted, Adobe Reader joins some info into the Keywords section, but  
that's not a bug. Adobe Reader tries to provide as much info as possible.
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

keywords.png (90K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

Leonard Rosenthol-3
In reply to this post by linuxunil
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" <[hidden email]> 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
>[hidden email]
>https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>iText(R) is a registered trademark of 1T3XT BVBA.
>Many questions posted to this list can (and will) be answered with a
>reference to 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

info-2
On Fri, 24 May 2013 10:35:03 +0200, Leonard Rosenthol <[hidden email]>  
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:format>application/pdf</dc:format><dc:description><rdf:Alt><rdf:li>This  
example shows how to add  
metadata</rdf:li></rdf:Alt></dc:description><dc:subject><rdf:Bag><rdf:li>This  
example shows how to add  
metadata</rdf:li></rdf:Bag></dc:subject><dc:title><rdf:Alt><rdf:li>Hello  
World  
example</rdf:li></rdf:Alt></dc:title><dc:creator><rdf:Seq><rdf:li>Bruno  
Lowagie</rdf:li></rdf:Seq></dc:creator></rdf:Description>
<rdf:Description rdf:about=""  
xmlns:pdf="http://ns.adobe.com/pdf/1.3/"><pdf:Producer>iText®  
5.4.2-SNAPSHOT ©2000-2012 1T3XT BVBA  
(AGPL-version)</pdf:Producer><pdf:Keywords>Metadata, iText,  
PDF</pdf:Keywords></rdf:Description>
<rdf:Description rdf:about=""  
xmlns:xmp="http://ns.adobe.com/xap/1.0/"><xmp:CreateDate>2013-05-24T10:04:32+02:00</xmp:CreateDate><xmp:ModifyDate>2013-05-24T10:04:32+02:00</xmp:ModifyDate><xmp:CreatorTool>My  
program using iText</xmp:CreatorTool></rdf:Description>
</rdf:RDF></x:xmpmeta>

Adobe Reader combines the following information:

<pdf:Keywords>Metadata, iText, PDF</pdf:Keywords>
<dc:subject><rdf:Bag><rdf:li>This 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

Leonard Rosenthol-3
That doesn't make sense.

Can you send me a PDF?

On 5/24/13 4:43 PM, "iText Software" <[hidden email]> wrote:

>On Fri, 24 May 2013 10:35:03 +0200, Leonard Rosenthol
><[hidden email]>
>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:format>application/pdf</dc
>:format><dc:description><rdf:Alt><rdf:li>This
>example shows how to add
>metadata</rdf:li></rdf:Alt></dc:description><dc:subject><rdf:Bag><rdf:li>T
>his  
>example shows how to add
>metadata</rdf:li></rdf:Bag></dc:subject><dc:title><rdf:Alt><rdf:li>Hello
>World  
>example</rdf:li></rdf:Alt></dc:title><dc:creator><rdf:Seq><rdf:li>Bruno
>Lowagie</rdf:li></rdf:Seq></dc:creator></rdf:Description>
><rdf:Description rdf:about=""
>xmlns:pdf="http://ns.adobe.com/pdf/1.3/"><pdf:Producer>iText®
>5.4.2-SNAPSHOT ©2000-2012 1T3XT BVBA
>(AGPL-version)</pdf:Producer><pdf:Keywords>Metadata, iText,
>PDF</pdf:Keywords></rdf:Description>
><rdf:Description rdf:about=""
>xmlns:xmp="http://ns.adobe.com/xap/1.0/"><xmp:CreateDate>2013-05-24T10:04:
>32+02:00</xmp:CreateDate><xmp:ModifyDate>2013-05-24T10:04:32+02:00</xmp:Mo
>difyDate><xmp:CreatorTool>My
>program using iText</xmp:CreatorTool></rdf:Description>
></rdf:RDF></x:xmpmeta>
>
>Adobe Reader combines the following information:
>
><pdf:Keywords>Metadata, iText, PDF</pdf:Keywords>
><dc:subject><rdf:Bag><rdf:li>This 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
>[hidden email]
>https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>iText(R) is a registered trademark of 1T3XT BVBA.
>Many questions posted to this list can (and will) be answered with a
>reference to 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

info-2
On Fri, 24 May 2013 11:15:00 +0200, Leonard Rosenthol <[hidden email]>  
wrote:

> That doesn't make sense.
>
> Can you send me a PDF?

Sure, see attachment.

If you manually change <dc:subject><rdf:Bag><rdf:li>This 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

xmp_metadata_added.pdf (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

Leonard Rosenthol-3
Will investigate - it's definitely not expected (AFAIK)

On 5/24/13 5:20 PM, "iText Software" <[hidden email]> wrote:

>On Fri, 24 May 2013 11:15:00 +0200, Leonard Rosenthol
><[hidden email]>
>wrote:
>
>> That doesn't make sense.
>>
>> Can you send me a PDF?
>
>Sure, see attachment.
>
>If you manually change <dc:subject><rdf:Bag><rdf:li>This 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

linuxunil
Hello,

thanks for looking at this issue.

I discovered another thing. When i create a pdfa-1B with the metadata, the result pdf it's not in pdfa-1B conformance. But, when i don't put the title AND the subject, the result pdfa-1B is in the conformance.

@PDFA-1B With full metadata:
My code:

public static void main(String[] args) throws DocumentException, IOException {
        System.out.print("#> RUNING...");
        Document document = new Document(PageSize.A4);
       
        File outputFile = new File("out-pdfa1b.pdf");
        FileOutputStream fos = new FileOutputStream(outputFile);
        PdfAWriter writer = PdfAWriter.getInstance(document, fos, 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();
       
        String FONT = "c:/windows/fonts/arial.ttf";
        Font font = FontFactory.getFont(FONT, BaseFont.CP1252, BaseFont.EMBEDDED);
        document.add(new Paragraph("Hello World", font));
                       
        InputStream iccFis = ImageToPdfXmp.class.getResourceAsStream("sRGB.profile");
        ICC_Profile icc = ICC_Profile.getInstance(iccFis);
    writer.setOutputIntents("Custom", "", "http://www.color.org", "sRGB IEC61966-2.1", icc);
                   
        document.close();
        writer.close();
        fos.flush();
        fos.close();
       
        System.out.println("DONE.");
}

@PDFA-1B Without title and subject metadata:
My code:

public static void main(String[] args) throws DocumentException, IOException {
        System.out.print("#> RUNING...");
        Document document = new Document(PageSize.A4);
       
        File outputFile = new File("out-pdfa1b.pdf");
        FileOutputStream fos = new FileOutputStream(outputFile);
        PdfAWriter writer = PdfAWriter.getInstance(document, fos, 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();
       
        String FONT = "c:/windows/fonts/arial.ttf";
        Font font = FontFactory.getFont(FONT, BaseFont.CP1252, BaseFont.EMBEDDED);
        document.add(new Paragraph("Hello World", font));
                       
        InputStream iccFis = ImageToPdfXmp.class.getResourceAsStream("sRGB.profile");
        ICC_Profile icc = ICC_Profile.getInstance(iccFis);
    writer.setOutputIntents("Custom", "", "http://www.color.org", "sRGB IEC61966-2.1", icc);
                   
        document.close();
        writer.close();
        fos.flush();
        fos.close();
       
        System.out.println("DONE.");
}

@Results
pdfa-1b with title and subject:
https://www.dropbox.com/s/39vof3x76zrv1ct/pdfa1b-withTitleAndSubjectMetadata.jpg
preflight report: https://www.dropbox.com/s/erbp7xqwq1kgott/pdfa1b-withTitleAndSubjectMetadata-preflightReport.jpg

pdfa-1b without title and subject:
https://www.dropbox.com/s/h1fiwl66imj4888/pdfa1b-withoutTitleAndSubjectMetadata.jpg

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

ps: i attached  the two files.
out-pdfa1b-withTitleAndSubject.pdf

out-pdfa1b-withoutTitleAndSubject.pdf
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

info-2
On Fri, 24 May 2013 16:51:21 +0200, linuxunil <[hidden email]>  
wrote:

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

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

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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

Abedellatif Hussein
In reply to this post by linuxunil
Hello,
I am having the same validation error issue when generating PDF/A files. Did you have any solution or workaround for it?

Thanks,
Abedellatif
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

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

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

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

Thanks,
Abedellatif
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

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

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

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

Thanks,
Abedellatif
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

info-2
On 8/25/2014 6:05 PM, Abedellatif Hussein wrote:
> where can I find example usage of the iTextsharp.xmp package?

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

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Itext 5.4.1 - Metadata Bug?

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

Thanks,
Abedellatif
Loading...