Re: Office Word Viewer

344 views
Skip to first unread message

Support

unread,
Aug 16, 2012, 9:47:08 PM8/16/12
to pdfne...@googlegroups.com
 
To print custom file formats via virtual printer driver, the associated application needs to support the command verb “print”.

A quick way to test this is right clicking the file to show the context menu and see if “Print” is one of the options.
 
If the print verb is not present, then PDFNet cannot use the perform the conversion.

Assuming that your associated application supports command line printing, you can manually add the print verb through modifying the registry.

-Under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\UserChoice

-look for value of “Progid”, this could be under HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE

-Under this entry, you are looking for the “Shell” key. Add the “Print” key, with “command” and data as the command-line code to perform print.


For example, if you set your default program to open .docx with Wordpad….
Since Wordpad in Windows 7 can open & print Word (docx) files you may want to try associating these files with Wordpad.


HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\UserChoice

Ø Progid REG_SZ Applications\Wordpad.EXE


HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\notepad.exe\shell

Ø Add key “print”

Ø Under “print”, add key “command”


HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\notepad.exe\shell\print\command

Ø set default value to the command line code for printing

Ø (Default) REG_EXPAND_SZ %SystemRoot%\system32\Wordpad.EXE /p %1


Resources on setting command verbs
http://msdn.microsoft.com/en-us/library/windows/desktop/cc144171(v=vs.85).aspx#customize_verb_static

After you made your changes to the registry, try to print from the context menu with the “print” command.

If that works successfully, PDFNet should also be able to convert the file.
 

On Monday, August 13, 2012 6:27:34 AM UTC-7, Hrishi wrote:
Would i be able to convert word documents to XPS using PDFTron convert add on if i dont have office installed?
Microsoft provides Word viewer which is free and capable of opening and printing the document.
However if i do call pdftron.PDF.Convert.ToXps, it throws error saying too many attempts.
Please help
Reply all
Reply to author
Forward
0 new messages