How to read pptx engine name from pptx files - powerpoint

Given pptx file, how to know which engine created the file? (Ex, MSOffice, docx4j/pptx4j, etc.) Perhaps, there is some place in Office Open XML structure where it's acceptable to put the signature.

It would normally go in the extended properties part:
<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties">
<Application>Microsoft Office PowerPoint</Application>
which Powerpoint stores at /docProps/app.xml
That part can also contain <AppVersion>
No guarantee that an application will write or update that though. docx4j, for example, will do so only if configured to.

Related

Change pptx language encoding

I came across the neat little R package slidex() to convert pptx to rmd. However, it does only support "en-US" language encoding.
How do I change the language encoding of an existing .pptx file?
Language tags are scattered all over a PowerPoint file. There are add-ins that can do a pretty thorough job: PPTools LanguageSelector
Personally, I prefer to change the file ending to .Zip, expand the file and use a text editor like NotePad++ to find and replace all language tags (you're looking for tags like lang="en-US"), then rezip. The default Windows Zip utility is not the best for this, it adds a top-level folder that PowerPoint can't parse. WinZip and 7-Zip are better.
If you're using PowerPoint for Windows, save the file as a PowerPoint XML Presentation (*.xml). Do the find and replace on that, then resave as a normal presentation. That avoids the unzip/rezip issue.

Converting Word to PDF Using SharePoint 2010 Word Automation Services

I have tried to find out the way I can put locks or disable the copy and paste on the PDF file after the conversion. I looked at the ConversionJobSettings properties but I couldn’t be able to accomplish this.
Based on what I have read, the sharepoint2010 Word Automation services API provides very limited capability in manipulating the conversion logics but is there any way I can lock down the content so that it cannot be copied?
Thank for your help
You will either need to code something up yourself or get a third party product such as this one, which allows conversion as well as PDF manipulation including security and watermarking.
Note that I worked on this product, so I am obviously biased. Having said that, it works brilliantly.
The only way to prevent copy and paste (as text) is to create image versions of the pages and saves those as a PDF.
a possible solution:
1) Use Word automation to print to a PostScript (PS) printer driver to get a .ps file
2) Use GhostScript to convert the PS to tif files
3) Create a PDF using the tif files (possibly with GhostScript too)

Displaying XSLT content in Silverlight

I am working with Silverlight 4.
I am supposed to display a XSLT inside a Silverlight page as is, read-only.
Which control is best suited for this?
XSLT files are for transforming one file format to another (generally used for taking XML and creating other XML files or HTML pages or human-readable plain-text files out of the input XML). They are not visual documents - what you actually need is to display the result of an XSLT transformation and the control you need for that will depend on what type of file the output of the transformation is (e.g. it could be an HTML file or a text file).
If you can post an example XSLT file you need to use, we might be able to offer more detailed help.

How to use the existing Png-Shell-Thumbnail for my file types?

I am currently writing an application working with specially prepared image data. Another tool prepares the images (basically PNGs with additional data stored in the meta-data section). Now my tool works with these files, but not with all PNGs, so "we" decided to use a different file extension. So far, so good.
Now, because I am a lazy sack I implemented some file type registration to allow double-clicking on the file and opening it in my application (no problem at all).
And here is my Question:
It would be cool if the windows explorer could still show me the thumbnail previews for my files. Since they basically are still PNG files, it should be possible without writing my own shell extension (at least I believe so).
I quickly tried to copy all registry keys and values from HKCR.png to HKCR.mInDat (my file name ext) and it worked. However, I would prefere knowning what I am doing ;-)
Which of the registry settings are responsible for the thumbnail preview control and which can I use to get the preview for my file types?
I tried to google it, but I failed, since it seems I am unable to come up with the right buzz-words to find the info I need. Please, help me.
Thank you!
Yours,
3of4
Simple:
[HKEY_CLASSES_ROOT\.apng]
#="apng"
"Content Type"="image/png"
"PerceivedType"="image"
[HKEY_CLASSES_ROOT\apng\shellex\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
#="{3F30C968-480A-4C6C-862D-EFC0897BB84B}"

Where can I learn more about the PowerPoint 2010 file format?

Where can I find the PowerPoint file format definition, like the header/XML/directory structure?
PowerPoint 2010 uses three primary markup languages - PresentationML, DrawingML and PowerPoint 2010 Extentions. The first two are part of ISO/IEC 29500:2008 specs, the last one isn't.
But in all cases with and above PowerPoint 2007, the document structure (i.e. what XML and other files go where in a .pptx and how they relate) is an implementation of the Open Packaging Convention. For details, go to the section PresentationML document structure of the Open XML Explained e-book. For 2010-specific extensions, this document lists them: PowerPoint Extensions to the Office Open XML File Format.

Resources