We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com


how I can use Aspose.word in Symfony2 ???

Hi Hrizi,

Thanks for your inquiry. Symfony is a PHP Web Development Framework. Please read the following articles to work with PHP and Aspose.Words for .NET and Java.

Aspose.Words for .NET

Aspose.Words for Java

You can also use Aspose.Words for Cloud which are REST APIs to use in Cloud environment. Please read following documentation link for your kind reference.

thank you how can I convert word file to pdf Symfony2

Hi Hrizi,

for your inquiry. Please check the code examples at following documentation links. You just need to change the extension of output file name in Document.Save method.


// Open template file

$doc = new Java("com.aspose.words.Document", "C:\\Temp\\in.doc");

// Save document to Pdf



Hi Thans you, here is what is my code source in Symfony2 but the pdf file is not created
class WelcomeController extends Controller
public function indexAction()
$doc = new \Java("com.aspose.words.Document", "C:\\Users\\Downloads\\license-agreement.doc");
// Save document to Pdf
* The action's view can be rendered using render() method
* or @Template annotation as demonstrated in DemoController.
return $this->render('AcmeDemoBundle:Welcome:index.html.twig');

Hi Hrizi,

Are you analyzing Aspose for Cloud now? If yes, please follow your latest thread at http://www.aspose.com/community/forums/543385/symfony2/showthread.aspx#543385

Best Regards,