{"id":25452,"date":"2019-01-29T09:16:04","date_gmt":"2019-01-29T08:16:04","guid":{"rendered":"http:\/\/help.qualiware.it\/qw-help\/?p=25452"},"modified":"2025-04-10T08:27:40","modified_gmt":"2025-04-10T06:27:40","slug":"conversione-di-un-file-word-in-pdf","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/conversione-di-un-file-word-in-pdf\/","title":{"rendered":"Conversione di un file Word in PDF"},"content":{"rendered":"<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">' Il seguente frammento di codice mostra come trasformare in PDF il file Word il cui percorso \u00e8 assegnato alla variabile \"path\"\r\n' Pu\u00f2 essere usato sia nei form che negli eventi del BPM\r\n' NOTA: il codice seguente non \u00e8 pi\u00f9 necessario in quanto \u00e8 disponibile la primitiva CreatePDF descritta qui: https:\/\/help.qualiware.it\/qw-help\/primitive-di-elaborazione-file-pdf\/\r\n\r\ndim path as string\r\ndim ext as string\r\n\r\npath=&lt;percorso documento Word&gt;\r\n\r\next=System.io.Path.GetExtension(path)\r\n\r\n' vedere https:\/\/help.syncfusion.com\/file-formats\/docio\/word-to-pdf\r\n\r\nDim wordDocument As New Syncfusion.DocIO.DLS.WordDocument(path, Syncfusion.DocIO.FormatType.Docx)\r\nwordDocument.ChartToImageConverter = New Syncfusion.OfficeChartToImageConverter.ChartToImageConverter()\r\n\r\nDim converter As New Syncfusion.DocToPDFConverter.DocToPDFConverter()\r\nDim pdfDocument As Syncfusion.Pdf.PdfDocument = converter.ConvertToPDF(wordDocument)\r\n\r\ndim dest as string=&lt;percorso del PDF convertito&gt;\r\npdfDocument.Save(dest)\r\npdfDocument.Close(True)\r\nwordDocument.Close()\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &#8216; Il seguente frammento di codice mostra come trasformare in PDF il file Word il cui percorso \u00e8 assegnato alla variabile &#8220;path&#8221; &#8216; Pu\u00f2 essere usato sia nei form che negli eventi del BPM &#8216; NOTA: il codice seguente non \u00e8 pi\u00f9 necessario in quanto \u00e8 disponibile la primitiva CreatePDF descritta qui: https:\/\/help.qualiware.it\/qw-help\/primitive-di-elaborazione-file-pdf\/ dim&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[65],"tags":[71],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/25452"}],"collection":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/comments?post=25452"}],"version-history":[{"count":1,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/25452\/revisions"}],"predecessor-version":[{"id":37822,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/25452\/revisions\/37822"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=25452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=25452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=25452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}