Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Just as user has a publish feature option available for MS office . is there some kind of publish directly to sharepoint 2010 available for PDF documents or do the users have to go the usual route to upload documents

share|improve this question
    
Are you looking to have a "Publish to SharePoint..." menu/button in Adobe Acrobat? –  Gabriel Mongeon Jul 12 '11 at 13:20
add comment

2 Answers

SharePoint Word Automation Services allows you to do this: http://msdn.microsoft.com/en-us/library/ff181518.aspx

Relevant code from that article:

    ConversionJobSettings jobSettings;
    ConversionJob pdfConversion;
    string wordFile;
    string pdfFile;

    // Initialize the conversion settings.
    jobSettings = new ConversionJobSettings();
    jobSettings.OutputFormat = SaveFormat.PDF;

    // Create the conversion job using the settings.
    pdfConversion = 
      new ConversionJob("Word Automation Services", jobSettings);

    // Set the credentials to use when running the conversion job.
    pdfConversion.UserToken = properties.Web.CurrentUser.UserToken;

    // Set the file names to use for the source Word document
    // and the destination PDF document.
    wordFile = properties.WebUrl + "/" + properties.ListItem.Url;
    if (properties.ListItem.Name.Contains(".docx"))
    {
      pdfFile = wordFile.Replace(".docx", ".pdf");
    }
    else
    {
      pdfFile = wordFile.Replace(".doc", ".pdf");
    }

    // Add the file conversion to the conversion job.
    pdfConversion.AddFile(wordFile, pdfFile);

    // Add the conversion job to the Word Automation Services 
    // conversion job queue. The conversion does not occur
    // immediately but is processed during the next run of
    // the document conversion job.
    pdfConversion.Start();
share|improve this answer
1  
That is just for MS-Word. –  Muhimbi Jun 9 '11 at 13:12
add comment

Have you considered a third party component such as this one.

Note that I have worked on this product so I am obviously biased :-)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.