I’m converting a DOC to a PDF and some hyperlinks are
wrong. I’m attaching both input and output files for sample.
See the page 14 in the PDF file, the hyperlink is wrong. It is linking to the following URL: “$tVD1;.C6BBAh73as(g)M1*q2\gEr݁Kéщu|,A”.
I’m converting a DOC to a PDF and some hyperlinks are
wrong. I’m attaching both input and output files for sample.
Hi Rogger,
The error persists. See the code i’m using:
Hashtable hsTagsRegs = new Hashtable();
hsTagsRegs.Add("##DatImp", new DateTime(2011, 06, 15, 17, 05, 00));
hsTagsRegs.Add("##NmeElb", “Siteware”);
hsTagsRegs.Add("##DatApr", “”);
hsTagsRegs.Add("##SigUni", “SiteAir 2011”);
hsTagsRegs.Add("##TitDoc", “TESTE ROGGER”);
hsTagsRegs.Add("##NmeVrf", “”);
hsTagsRegs.Add("##DatVrf", “”);
hsTagsRegs.Add("##TipCop", “Copia Não Controlada”);
hsTagsRegs.Add("##DatCri", new DateTime(2011, 06, 14, 11, 10, 06));
hsTagsRegs.Add("##NumRev", “0”);
hsTagsRegs.Add("##NmeApr", “Siteware”);
hsTagsRegs.Add("##CodDoc", “AI_Site_Air2011_009”);
Dim processedFile As IO.Stream = New IO.MemoryStream()
Try
Dim doc As New Document(pFileName)
For Each item As DictionaryEntry In hsTagsRegsdoc.Range.Replace(item.Key.ToString(), item.Value.ToString(), <span style="color:#a2c4fd;">False</span>, <span style="color:#a2c4fd;">False</span>) <span style="color:#a2c4fd;">Next</span> <span style="color:#a2c4fd;">Dim</span> saveOptions <span style="color:#a2c4fd;">As</span> <span style="color:#a2c4fd;">New</span> Aspose.Words.Saving.<span style="color:#2b91af;">PdfSaveOptions</span>() saveOptions.EncryptionDetails = <span style="color:#a2c4fd;">New</span> Saving.<span style="color:#2b91af;">PdfEncryptionDetails</span>(<span style="color:#a2c4fd;">String</span>.Empty, <span style="color:#2b91af;">Guid</span>.NewGuid().ToString(), Saving.<span style="color:#2b91af;">PdfEncryptionAlgorithm</span>.RC4_128) saveOptions.EncryptionDetails.Permissions = Saving.<span style="color:#2b91af;">PdfPermissions</span>.DisallowAll saveOptions.SaveFormat = Aspose.Words.<span style="color:#2b91af;">SaveFormat</span>.Pdf doc.Save(processedFile, saveOptions) <span style="color:#a2c4fd;">Catch</span> ex <span style="color:#a2c4fd;">As</span> <span style="color:#2b91af;">Exception</span> <span style="color:#a2c4fd;">Throw</span> ex <span style="color:#a2c4fd;">End</span> <span style="color:#a2c4fd;">Try</span> <span style="color:#a2c4fd;">Return</span> processedFile</pre></div>
Hi Rogger,
Any updates on this issue?
Hi
Thanks for your request. The issue reported in this thread is already resolved in the current codebase. The fix will be included into the next version of Aspose.Words that comes out in a week.
Best regards,
The issues you have found earlier (filed as WORDSNET-5989) have been fixed in this .NET update and this Java update.