Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Writing XMP to a PDF File

Last post 21 Nov 2007, 10:00 AM by andreigosman. 2 replies.
Sort Posts: Previous Next
  •  19 Nov 2007, 1:43 PM 12770

    Writing XMP to a PDF File

    Hi,

    I have the following case:

    A tiff is loaded in an AnnotateViewer

    Annotations are created from a database

    I want to save the tiff as a pdf file with xmp annotations

    I'm doing as follows

      Dim at As New Formatters.XmpFormatter
      at.CreateXmpPacket = True
      at.Formatting = Xml.Formatting.None
      Dim pdfenc As New Pdf.PdfEncoder

      pdfenc.UseAdvancedImageCompression = True
      pdfenc.JpegQuality = 10
      pdfenc.SizeMode = Pdf.PdfPageSizeMode.FitToImage
      pdfenc.Xmp = anw.Annotations.Save(at)
      anw.Save("g:\2.pdf", pdfenc)

     Where anw: Dim anw As New Atalasoft.Annotate.UI.AnnotateViewer

    But the resulting file, 2.pdf, has only the image in it, not the XMP highlighting as well

    What should I do to also have the annotations in the PDF file?

    Regards

    Andrei Gosman 

    Filed under: ,
  •  21 Nov 2007, 9:00 AM 12776 in reply to 12770

    Re: Writing XMP to a PDF File

    You will not see the annotations when viewing the PDF:  The XMP data is not the same as PDF annotations.  We are planning to add support for real PDF annotations in a future release, but for now you would only see them if you burn the annotations onto the image before saving.  Of course that means they can no longer be modified.

    Glenn Chittenden Jr.
    Atalasoft Development Team
  •  21 Nov 2007, 10:00 AM 12778 in reply to 12776

    Re: Writing XMP to a PDF File

    Hi,

    Thanks for your quick reply.

    The problem is then I burn the annotations, I have to convert the image from 1bbp TIFF to a 24bbp format

    and the resulting file will be huge. Is there a solution for this problem? I mean, after burning annotations, to convert to another smaller format but still have transparent annotations

View as RSS news feed in XML