Call a custom document converter using Sharepoint Object Model -


how call custom sharepoint converter activated specific website.

for example, below code used guid of converter

foreach (spdocumentconverter converter in converters)

        {              //console.writeline(converter.displayname);              if (converter.convertfrom.tolower().equals("pdf") && converter.convertto.tolower().equals("jpg"))                  pdftojpgconverterid = converter.id;          } 

and spfile.convert method used call converter usually. when trying call document converter using spfile.convert method, not calling it.

my custom conveter takes 2 command line arguments. how can pass them converter when called using sharepointobject model or other.

update:

a document converter custom executable file, deployed specific website feature. want transform given pdf file images supplying file name document converter using sharepoint object model. spfile.convert method has argument "-config", third parameter pass required information(parameters). can in regard?

you may want consider invoking process directly using process.start , passing command line arguments.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -