Hello,
I try to use this function for insert XMP meta in a PDF document. I provide metadata file has attachement. When I create a new PDF, using the SetMetaData function, all seem fine. When I open my PDF file (with Acrobat 9 (not the reader)), I don't see my XMP data (File -> Properties -> Metadata... -> Advanced ). If I open the PDF file for view raw content (ex : with notepad++), I can see my XMP struct (<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
...)
Note that it's a custom XMP, and it work with Pdflib PLOP. I suppose that some xml tag may be added or remove to work with GdPicture PDF plugin, but I don't know what I should do for correctly working.
Have you a sample code that set XMP metadata (custom XMP or standard (ex : DC, ...) that show how to use correctly SetMetaData function.
Thanks,
SetMetaData method
SetMetaData method
- Attachments
-
- input.zip
- XMP metadata file
- (750 Bytes) Downloaded 331 times
Re: SetMetaData method
Hello,
All is working fine for me.
Here the snippet I've used with the V9:
And here what I obtain:
Kind regards,
Loïc
All is working fine for me.
Here the snippet I've used with the V9:
Code: Select all
Using oGdPicturePDF As New GdPicturePDF
oGdPicturePDF.LoadFromFile("c:\test.pdf", True)
Dim oFile As New FileInfo("c:\input.txt")
Using oFileStream As FileStream = oFile.OpenRead()
Dim lBytes As Integer = CInt(oFileStream.Length)
Dim data(lBytes - 1) As Byte
oFileStream.Read(data, 0, lBytes)
oGdPicturePDF.SetMetadata(System.Text.Encoding.GetEncoding(1252).GetString(data))
End Using
oGdPicturePDF.SaveToFileInc("c:\test.pdf")
End Using
And here what I obtain:
Kind regards,
Loïc
Re: SetMetaData method
Thanks for help.
It seem that it work with non PDF/A file. With PDF/A, my custom schema (foobar machines) disappears. I suppose that my xml data have some mistake for PDF/A struct.
Regards,
Chess.
It seem that it work with non PDF/A file. With PDF/A, my custom schema (foobar machines) disappears. I suppose that my xml data have some mistake for PDF/A struct.
Regards,
Chess.
-
- Posts: 3
- Joined: Mon Feb 18, 2013 8:37 pm
Re: SetMetaData method
Hi
We are facing similar problem.
Is it confirmed that custom Xmp meta won't work with PDF/A ?
Thanks
We are facing similar problem.
Is it confirmed that custom Xmp meta won't work with PDF/A ?
Thanks
Who is online
Users browsing this forum: Google [Bot] and 0 guests