Q: We have tested the samples with annotations (http://www.pdftron.com/
pdfnet/samplecode.html#Annotation). It works well with the supplied
test files.
Then we tried to open our PDF file with an embedded video (see
attached). It opens and displays that the file has one annotation and
its type is “Screen”, but we weren‘t able to EXTRACT the video and
SAVE its content to hard drive. Could you confirm that it is possible
to do with your solution and provide some code example?
---------------
A: We didn’t receive your sample file yet, however I wanted to
confirm that you can use PDFNet SDK to extract any type of content
from PDF (including videos from Screen annotations).
In case of Screen annotations the actual multimedia data (i.e. movie)
is stored in ‘Rendition Action’ which is associated with the
annotation. Assuming that you are developing using C# you could use do
the following lines to extract the movie:
Q: I assume that some of PDFs I have created myself with Acrobat Pro 9
has video stored in a way other than this code expects.
However we have to be able to process all kind of embedded videos.
“The rich media annotation means that Flash applications, video,
audio, and other multimedia can be attached
to a PDF document. The rich media annotation incorporates the existing
3D annotation structure to
support multiple multimedia file assets, including Flash video and
compatible variations on the H.264
format.”
You can identify and process ‘RichMedia’ and other custom annotations
as follows: