Embedding XMP Packet in PDF

I've reviewed the 1.4 spec on how to embed an XMP packet in a pdf file and it is still unclear. Is there a C++ code example of how to do this? I would like to embed a packet that is not dependent on the metadata contained in the Document Information Directory.
Where in the file do I write the xmp packet? Is there a particular directory that I should update after doing this so the pdf file doesn't get chewed. Where is the spec for this. The "Embedding XMP Metadata in Application Files Draft" document gives good info on everything except PDF. Help.
Steve
[email protected]

Thanks Shulin but I've already downloaded the acrosdk. The samples work based on plug in functionality to acrobat i.e. they call an api when acrobat runs. I want to write to the pdf file from my own C++ program which is only linked with the XMP toolkit as opposed to a plug-in. I am looking for the same kind of information that was supplied for JPG, TIFF by Adobe, only for PDF.
I've checked the knowledgebase as you suggested and this information is not there.
What are the data structures that need to be modified to stick the XMP packet into a pdf file. Can I just append it to the end of the file?
Steve

Similar Messages

  • Proposal for embedding XMP in IFF and RIFF files... (where to submit?)

    Since Adobe does not seem to have created any proposal
    for embedding XMP packets into IFF and RIFF files, I
    propose the following (Is it possible to submit it
    to Adobe so they can include it somewhere, do they
    accept propositions?):
    This is a draft proposal for embedding XMP packets into
    IFF and RIFF files. Comments and suggestions are welcome.
    Thanks!
    Carl Eric Codere
    http://www.optimasc.com
    Embedding XMP data into EA IFF'85 file formats
    ===============================================
    This proposal permits adding XMP compatible metadata to standard
    IFF files. An IFF file is composed of chunks of data; each of
    the chunks precedeed by a header giving the type of data that
    follows, as well as the length of the data in the chunk. For
    more information on the IFF file format, consult the specification
    "EA IFF 85 Standard for Interchange Format Files".
    Including XMP data in an IFF compatible file is a matter
    of using a chunk type that will contain the XMP packet. The chunk
    ID for this type of date shall be "XMP ".
    Guidelines for IFF writers
    If the XMP packet is to be used, the software can optionally
    write out the following chunks
    (defined in the original standard):
    "NAME", which represents the dc:title property in XMP.
    "AUTH", which represents the dc:creator property in XMP.
    "(c) ", which represents the dc:rights property in XMP.
    In the case where they are written, for better validation by reader
    software, the XMP packet should also contain the xmp:MetadataDate
    property.
    For better portability, and to easily modify the embedded
    XMP data, the following guidelines should be followed by
    the IFF writer:
    - The XMP packet should contain the full packet signature;
    this permits easier searching for tools that do not
    understand the IFF file format.
    - The XMP packet should be encoded in UTF-8.
    - As specified in the XMP specification, an XMP packet
    should be filled with blank spaces for easier updating of
    the XMP packet without rewriting the entire file.
    A suggested size of an XMP chunk is 4096 or 8192 bytes.
    - Only one "XMP " chunk should be present in the file
    (Even in "CAT " files).
    Guidelines for IFF readers
    If an XMP packet is present in an IFF file, then one of
    the following options can be used to retrieve the
    metadata from the file:
    If the "NAME", or "(c) " or "AUTH" chunks are also present,
    then, one of the following solutions can be used:
    a) Compare the xmp:MetadataDate property with the
    file modification date to determine which chunk to use
    for the dc:title, dc:righrs and dc:creator field. (If the
    file modification date is greater than xmp:MetadataDate,
    it is probably
    safe to assume that the "NAME", "(c) " and "AUTH" chunks
    might have been updated by software that does not
    understand XMP packets.
    b) Simply ignore these chunks and use the XMP
    packet for the metadata.
    c) Simply ignore the XMP chunk , and use the
    other chunks for getting the metadata of the file.
    Embedding XMP data into IBM-Microsoft RIFF file formats
    =======================================================
    This proposal permits adding XMP compatible metadata to standard
    RIFF files. A RIFF file is composed of chunks of data; each of
    the chunks precedeed by a header giving the type of data that
    follows, as well as the length of the data in the chunk. For
    more information on the RIFF file format, consult the specification
    "Multimedia Programming Interface and Data Specifications 1.0"
    Including XMP data in an RIFF compatible file is a matter
    of adding a subchunk to the INFO LIST chunk. The subchunk
    ID for this type of date shall be "IXMP".
    Guidelines for RIFF writers
    If the XMP packet is to be used, the software can optionally
    write out all other INFO LIST registered (from the standard),
    assuming the following ma

    Thanks for the info Paul. You (or anyone else) wouldn't happen to know if and when a Photoshop version likely to address this issue will be available (ie embedding XMP packets into GIF and PNG files according to the guidelines presented in XMPEmbedding.pdf)?
    Also, I like to point out the discrepancy for embedding an xmp packet into the PNG format (as listed in XMPEmbedding.pdf) and the sample provided in the SDK (BlueSquare57.png). XMPEmbedding.pdf state that an XMP packet is to be placed in an 'iTXt' chunk. However BlueSquare57.png has the packet in a 'tXMP' chunk. Which is the correct one? Or are they both correct and an XMP packet can be found in either an 'iTXt' or 'tXMP' chunks?
    dave

  • Embedding ICC-profiles in pdf

    I'm having problems getting InDesign to embed the ICC-profiles for CMYK images when exporting a PDF/X-3 from either CS5 or CS 5.5.
    The RGB images all have the correct ICC-profiles, but the CMYK images only show as CMYK in PitStop.
    Any ideas how to get this working properly?
    I want to use Enfocus PitStop Connect to flightcheck the PDF before sending it to out ftp-server, but due to the ICC-profiles not being embedded properly all files receive an error.

    Thanks Shulin but I've already downloaded the acrosdk. The samples work based on plug in functionality to acrobat i.e. they call an api when acrobat runs. I want to write to the pdf file from my own C++ program which is only linked with the XMP toolkit as opposed to a plug-in. I am looking for the same kind of information that was supplied for JPG, TIFF by Adobe, only for PDF.
    I've checked the knowledgebase as you suggested and this information is not there.
    What are the data structures that need to be modified to stick the XMP packet into a pdf file. Can I just append it to the end of the file?
    Steve

  • Incrementally appending  custom XMP metadata into PDF files

    I have a problem writing custom XMP metadata into a PDF document (I'm using the XMP Toolkit SDK).
    The problem is that I don't know whether is possible to expand the XMP packet in order to append metadata incrementally into the document, and, if it is possible, I don't know how to do it. The program I wrote succesfully appends an item to an array four times, but it fails when trying to append the fifth one. The reason obviously is that the packet gets full and there is not room for more metadata. The error message, if I force the PutXMP call, is:
    ERROR: Can't fit into specified packet size
    So, what can I do? How to enlarge the packet or make it expandable? Or, otherwise, have I to inject a new XMP packet with the up-to-date information in it? How?
    And a last question: Have I to scan for packets when dealing with PDF files? No smart handlers are available for this kind of files?
    Thanks in advance.
    Xabier Artola.
    Univ. of the Basque Country.

    Were you able to find a solution to this problem? I am having the same issue.
    Jason

  • Can't write large xmp metadata to pdf

    Hello,
    I tried to add a custom metadata of 2kb to the pdf, using PutXmp() method.The API supports "inplace" serialization of exact size - it serializes my packet to the size of the old xmp packet. If my packet size is small - it succeeds; otherwise, like in case of 2kb - fails.Moreover, if there is no old xmp packet, it can't put my xmp. Are there any limitations?I tried to remove some flags in API and PutXmp() performed "not inplace" serialization - that way it succeeded to serialize a big packet.Then I call CloseFile() method which performs an actual writing to file. When I open a pdf in txt format, I see the meta is writen correctly in a correctplace. But when I open the pdf file, the "out of memory" message is displayed.When I try to close the pdf file, it asks if I want to save it. Please advise how to add a large amount of metadata without getting the pdf corrupted.

    Hi Curt,
    Thanks for your response.
    No, there is currently no metadata displayed for the WAV file. I was getting the impression from forums that WAV files can't carry metadata but I thought Bridge would create a sidecar file to carry it.
    Cheers,
    Josh

  • Multiple XMP Packets. Why?

    I've read the XMP specification and I did'nt understand why it's possible to have more than one XMP packet in a file.
    I can't find any reason for that. I think it's not clear for a person to understand what is the "main" XMP packet taking a look inside a PDF file for example.
    Why incremental saving don't write only one XMP packet uploading it?
    Anyone knows the reason for that choice?
    Davide Noaro.

    Multiple XMP packets within a file have a tremendous value for enterprise customers. We offer an XMP-centric digital asset management system (MediaBeacon) that catalogs any file type and stores all data in XMP. XMP is then mirrored into an SQL database and we maintain the link between the two.
    Multiple XMP packets within a file give our customers an opportunity to have separate metadata blocks for each department, for instance. We are able to specify which blocks are viewable and editable by a given user or group of users. So, each file can have any number of namespace aware (unlike XML) metadata fields or metadata blocks that are unique across the universe.
    Using Pound Hill's software you can customize the way each tab looks.
    Here's what these XMP blocks look like to the end user. They are all collapsible - below you can see only "XMP Basic" tab open.
    http://forum.brightech.com/btimages/schemas.gif

  • Whats the difference between the two XMP packet tags

    Hi,
    I opened a file Bluesquare.indd(from XMP SDK sampke) and I found two XMP packets inside the file.
    One packet with tag
    and another one with tag
    When I tried to extract the xmp using getXMP() method from XMPFiles then, I got the packet with tag
    So can you tell me, what is the difference between two packets, why they are different
    what is its use.
    Thanks & Regards,
    Venkatesh.E

    My feeling here is that simply changing join syntax and case vs decode issues is not going to give any significant improvement in performance, and as Tubby points out, there is not a lot to go on. I think you are going to have to investigate things along the line of parallel query and index vs full table scans as well any number of performance tuning methods before you will see any significant gains. I would start with the Performance Manual as a start and then follow that up with the hard yards of query plans and stats.
    Alternatively, you could just set the gofast parameter to TRUE and everything will be all right.
    Andre

  • Fonts not embedding when "save as" pdf

    Version: Photoshop CS4 64 bit on Windows Vista 64.
    Issue: fonts not getting embedded during conversion to pdf.
    I am attempting to save files for commercial printing in Photoshop pdf format (file-save as-pdf). In the past, using previous versions of Photoshop, the fonts have always been embedded in the pdf document when I choose the "Press Quality" pdf preset. However, now, even when I simplify my Photoshop source file down to the most basic level (one non-background layer with one line of type using a font I KNOW has successfully embedded before) the resulting pdf reports NO embedded fonts (no fonts at all, actually) and when sized up a great deal in Acrobat Pro shows pixelation as though the type was converted to a graphic. If I open the resulting pdf file in Photoshop the text is still editable though...
    I have Photoshop files that were built using a previous version of Photoshop (CS2). When I open these in Photoshop CS4 and save as pdf the fonts are embedded just as they always were so the problem lies not with the CS4 version of Photoshop itself but rather with NEW files created by it. It seems that any NEW files I create using Photoshop CS4 wil not embed their fonts when saved as pdfs.
    Help !!?!! (example file attached)

    Good points. To test that out I tried substituting different non-commercial fonts (Arial, Tahoma, Times, etc.) and then saving as a pdf. No matter what fonts I try they don't get embedded. So that would seem to rule out the idea that Photoshop CS4 is now restricting the embedding of fonts to non-commercial ones.
    I have poured through the save-as-pdf options in GREAT detail - have tried many various options and don't see any settings that have either made a difference or seem relevant. According to Adobe documentation anytime you select "Press Quality" as the preset the fonts should automatically be embedded.
    The really odd thing is, if I take a psd file that was originally created using a previous version of Photoshop, delete all the layers and then create one single line type layer so that it is identical in every way to my CS4 test file, any font I select gets embedded when I convert that file to pdf - same exact pdf preset - all file settings the same - everything! - except that it was originally created using a previous Photoshop version.
    Does that make ANY sense??

  • How do I hide the file names/path names of embedded images in a PDF document?

    I created a PDF document from a Word document, and the problem is that the PDF document shows the file names and path names for all of the embedded images in the PDF document. I don't want that information displayed. I don't want to send the PDF out to clients and have them read the names I've assigned to those images, plus it looks messy. And I've lost many of the original image files so they only exist in the Word document, thus I can't go back and rename them. I searched the internet for an answer but I couldn't find one anywhere.

    When you create a tagged (accessible) PDF file from Word, placed bitmap images will use their filename as the "ALT text" if you don't define something else for the text to say, because an image without any ALT text is a failure against the accessibility standards. You can't change that default action, so you should put your own meaningful text into the ALT field for each image - which is what you should be doing anyway if the PDF is standards-compliant.
    You can can set the text in Word, but it depends on your version as to where the dialogs are - Google for it - or you can change/delete it in Acrobat using the tags navigation pane on the left side of the window (right-click the sidebar if it's not visible). Drill down through the tags structure to find the "<Figure>" tag you want to change, right-click and choose Properties, then put something in the "Alternative text" field. This process isn't something you can easily automate, but if you don't need tags at all, you can save without tags (or print to PDF).

  • Clarification on Adobe XMP Packet

    I would like to add some custom data to JPG images we are generating in our app. After much research I think the best approach is to include this information in the XMP packet and save it to the image, thus eliminating the need for side-car file.
    Few questions:
    The data I would like include is basic XML format:
    <Node1><SubNode1>Value</SubNode1>
    </Node1>
    etc..
    Is this a correct assumption that I can add this type of data to my XMP metadata in my image?
    The steps need to accomplish this are to:
    Open the image using the SDK
    Get the XMP data using the SDK
    Use the SDK to add this custom data to XMP object
    Save XMP packet back to image
    Are these assumptions and ideas way-off base or am I close to being on the correct track for this?
    Regards

    Hi,
    almost right..
    You can't store XMP as pure XML. You need to use the XMP data model. Please read the XMP specification for more details:
    http://www.adobe.com/devnet/xmp.html
    The steps you described are correct. You will use XMPFiles from the SDK to open/close the files and get/put the data from/to the file. And you will use XMPCore as the datamodel to add custom properties before putting it back into the file.
    Hope this helps,
    Samy
    Adobe XMP Team

  • Embedding FLV Video Into PDF Files

    I have been testing out embedding FLV files into PDF's to simplify presentations (no need for Powerpoint, DVD player, DVD player software, etc..).  It is a bit slow when a big video file will load, but I think it is worth it for the simplified presentation method.
    My problem is this, whenever I embed an FLV file into a PDF, it seems to degrade the quality down a notch or two.  I am not concerned about file size since these will always be played locally from a hard drive or CD so I created the embedded FLV file to be high quality and very crisp (720 x 486, ~2200kbs bit rate).  However, no matter how good a file I embed, after it becomes embedded it always looks worse.  At this point, it has mainly been trial and error, but the original quality does not seem to matter as to how it will look in the PDF.
    Does Acrobat Pro re-encode the video no matter if it is FLV or not?  And is there anyway to change the settings so it does not alter the existing quality?
    Thank you.

    Are you inserting a screen capture FLV of the whole screen.  I use camtasia Studio to capture my desktop in video... and if the playback is NOT at the same size as the original...then it can look blurry.

  • Embedding Fonts into a PDF file - Best Solution/s

    Good day
    What is the best solution or solutions to Embedding Fonts into a PDF file?
    Kind Regards

    Amplifing on what Test Screen Name posted.
    --| Use a Distiller Job Option that embeds fonts.
    --| Use Acrobat Pro's (starting with 9.x) Preflight that embeds fonts (if they are present and installed on the local machine).
    --| Untick "Rely on system fonts only; do not use document fonts" in the Adobe PDF Document Properties dialog.
    Be well...

  • Unable to inject XMP Packet info into older versions of Adobe Illustrator files

    Hi,
    I am trying to inject XMP Packet into Illustrator files of version 9 and below.
    I am using XMP SDK 4.0 Prerelease.
    My Code is inserting xmp packet only into Illustrator 10 and above.
    But with Adobe Illustrator 9 and below.. its not.
    Can you please tell me what is the problem.
    Thanks,
    Venkatesh

    FIXED....
    Strangly enough after the 3rd time deleting prefs it started working........
    Just goes to show.  To err is human, to realy foul things up it takes a computer....

  • How to import XMP metadata in pdf

    Could you please explain me, how to import XMP metadata in pdf file through "Live Cycle ES"?

    Yes, with LiveCycle ES (almost) all services can be invoked from any of the available endpoints (watch folder, EJB, WebService, etc).
    In this case since the ImportXMP requires two input files (the PDF and the XMP) you will need to drop a directory containing both of your files into the watch folder (not the individual files). This is because several requests can be dropped into the watch folder at the same time and without the sub directories LiveCycle couldn't tell what XMP when with what PDF.
    A com.adobe.idp.Document - AKA: Document - object is one of the common object types used across all LiveCycle products. When you deal with PDFs and many other binary file objects they are stored a Document object. It is more important that you know this when using Workbench, web services or the Java API.
    You should have a look at the documentation at: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/001553.html

  • I have to make inaccessible the Javascript code embedded in a form pdf. How can I do?

    I have to make inaccessible the Javascript code embedded in a form pdf. How can I do?

    You can secure the file and prevent access to the code, but it's very easy
    to overcome that. Alternatively you can use a code obfuscator to make the
    code less legible.
    On Feb 11, 2015 3:51 PM, "marcogolinelli88" <[email protected]>

Maybe you are looking for

  • C309a The wireless radio is not functionin​g.

    My c309a is out of warranty.  Network test report states wireless radio not functioning.  It is out of warranty but only 2 years old. Is there a part that can be purchased to correct px.  Saw other user who was still under warranty was told to contac

  • Old Mail Re-Appearing

    Having logged onto a wi-fi network in a hotel yesterday all the mail from the past 3-5 months keeps being resent to my mailbox even though it has been read and/or deleted. Obviously this is slowiing down the mailbox and because there are large emails

  • Denying logon to an administrative account

    I'm trying to find a way for user accounts that are used to elevate privileges cannot be logged on to. Like "Deny local logon" but with the added benefit of elevating a command prompt with that account. Anything like this exist in GPOs? Or any other

  • The latest version of iTunes com addin for outlook cause outlook to hang when exiting

    iTunes Version 11.0.0.163 com addin for Outlook causes Outlook 2003 used on a Windows XP machine to not close when exiting.  I have verified via the Task Manager that it Outlook does not close.  I have gone into Outlook and disabled the addin and Out

  • RUM Question

    Has anyone figured out what UNIX command will trigger RUM execution on a remote client?  Seems simple enough from the machine's console:  sudo /Users/macadmin/RemoteUpdateManager yields the following: WARNING: Improper use of the sudo command could l