adobe / xmp-docs Goto Github PK
View Code? Open in Web Editor NEWXMP documentation
License: Other
XMP documentation
License: Other
Hi,
I want to check if xmp supports reading/writing metadata for password protected pdf file.
does xmp supports reading metadata for password protected pdf file, if yes then how?
if no, then is there any other API which supports the reading of metadata for password protected pdf file? (i want to do it programmatically using c++ code + i want free sdk/api)
Sample PDF for testing: https://test.goca.io/pdf/sample_3.pdf.
If you load the sample pdf in Adobe Reader, and go to File > Properties, the properties displayed will be:
Title: PDF Metadata Sample
Author: Nigel Maddocks
Subject: Test Document
Keywords: 12345678
However, the Subject and Keywords properties are not the same when using the Adobe XMP SDK. For example, if you run the ReadingXMP sample, it will show the dc:subject as 12345678 (and it won't display any keywords).
Hi,
I want to check xmp support for reading metadata for password protected pdf file
does xmp supports reading metadata for password protected pdf file, if yes then how?
if no, then is there any other API which supports the reading of metadata for password protected pdf file? (i want to do it programmatically using c++ code + i want free sdk/api)
Is it possible to save blobs to XMP? Or do you have to use Base64 or something like that?
Hi, I was wondering if I could ask a question about using the XMP library. It seems that the XMP forum has been removed or something from the Adobe website.
I'm using the XMP SDK to implement in a Windows property handler. Basically I've created a COM class which is instantiated by Windows File Explorer whenever it encounters a PDF file. My class uses the XMP library to get and set metadata within each file that Explorer encounters.
In any event, I'm initializing the XMP Meta and File libraries within my class's constructor, which seems to work okay. However, when terminating those libraries within the destructor, I inevitably get an assertion errors and null pointer errors that crash the program. I'm not sure, but perhaps it's because File Explorer has created several instances of my class, and so terminating the libraries by one class leads to problems (just a guess).
So I was wondering if you had any input on where to properly terminate the XMP libraries when used by a property handler. Can they be terminated within DLLCanUnloadNow? Thanks for any input!
I successfully compiled the XMP libraries using Visual Studio 2015, per the instructions. However, when I tried to use the compiled libraries in the release mode of my project in Visual Studio 2019, it said the libraries were created using an old compiler, so I needed to recompile them with a newer compiler.
So then I tried to compile the libraries in Visual Studio 2019, retargeting for the v142 toolset. But there's a compiler error:
C3848 expression having type 'const P2SpannedClip_Order' would lose some const-volatile qualifiers in order to call 'bool P2SpannedClip_Order::operator ()(P2_Clip *,P2_Clip *)' XMPFilesStatic C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\xtree 1685
From what I can gather, the problematic code in the XMP source is in P2_Support.cpp, at line 286:
P2_SpannedClip::P2_SpannedClip(const std::string & p2ClipMetadataFilePath):
P2_Clip(p2ClipMetadataFilePath)
{
P2_Clip* p2Clip= dynamic_cast<P2_Clip*>(this);
spannedP2Clip.insert(p2Clip);
if (p2Clip->GetClipId())
addedClipIds.insert(*p2Clip->GetClipId());
}
Please help.
Sometimes my XMP code cannot read from certain PDF files. Then, when I open the PDF file and do some sort of edit to it (like add a comment or something), my XMP code will be able to read. I'm wondering if the edit changes the security of the PDF. At any rate, is there any way for my code to read the metadata from the apparently locked or secured PDF file? Thanks for any help.
Just to clarify, OpenFile is working, but GetXMP is not (it's returning false).
I understand the XMP specification described in ISO 16684-1 is generic and applies to several Adobe products, and so are the RELAX NG schemas published in ISO 16684-2, which are basically examples/samples. Are the full schemas for XMP packets in PDF documents available to download somewhere?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.