Welcome to the WinForms feedback portal. We’re happy you’re here! If you have feedback on how to improve the WinForms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

When converting a DOCX to PDF, where there are bullet points that use hyperlink style, some of the lines have the hyperlink style and underscore all they way from the bullet point, while others leave a gap.

The default behaviour for MS Print to PDF, and acrobat control, does not have the hyperlink all the way to the bullet point. 

Attached example file, and example output from Syncfusion and MS Print.


basic code looks like this:


string infilename = @"HyperLinkTests.DOCX";

      syndoc.WordDocument document = new syndoc.WordDocument(infilename, FormatType.Docx);

      DocToPDFConverter converter = new DocToPDFConverter();

      converter.Settings.ExportBookmarks = ExportBookmarkType.Headings;

      converter.Settings.AutoTag = true;


      //Converts Word document into PDF document

      PdfDocument pdfDoc1 = converter.ConvertToPDF(document);


      pdfDoc1.ViewerPreferences.CenterWindow = true;

      pdfDoc1.ViewerPreferences.DisplayTitle = true;

      pdfDoc1.ViewerPreferences.PageLayout = PdfPageLayout.OneColumn;

      pdfDoc1.ViewerPreferences.PageMode = PdfPageMode.UseOutlines;


      pdfDoc1.FileStructure.Version = PdfVersion.Version1_5;


      //set on open action

      Syncfusion.Pdf.Interactive.PdfDestination pg0dest = new Syncfusion.Pdf.Interactive.PdfDestination(pdfDoc1.Pages[0]);

      pg0dest.Mode = Syncfusion.Pdf.Interactive.PdfDestinationMode.Location;

      pg0dest.Zoom = 1f;

      Syncfusion.Pdf.Interactive.PdfGoToAction pa = new Syncfusion.Pdf.Interactive.PdfGoToAction(pg0dest);


      pdfDoc1.Actions.AfterOpen = pa;


      pdfDoc1.Security.Algorithm = Syncfusion.Pdf.Security.PdfEncryptionAlgorithm.RC4;

      pdfDoc1.Security.KeySize = Syncfusion.Pdf.Security.PdfEncryptionKeySize.Key128Bit;

      pdfDoc1.Security.OwnerPassword = "xxx";

      pdfDoc1.Security.Permissions = Syncfusion.Pdf.Security.PdfPermissionsFlags.AccessibilityCopyContent

        | Syncfusion.Pdf.Security.PdfPermissionsFlags.CopyContent

        | Syncfusion.Pdf.Security.PdfPermissionsFlags.FullQualityPrint

        | Syncfusion.Pdf.Security.PdfPermissionsFlags.Print

        | Syncfusion.Pdf.Security.PdfPermissionsFlags.EditAnnotations

        | Syncfusion.Pdf.Security.PdfPermissionsFlags.FillFields;


      pdfDoc1.Compression = PdfCompressionLevel.Normal;


      pdfDoc1.DocumentInformation.Author = "xxx";

      pdfDoc1.DocumentInformation.Subject = pdfDoc1.DocumentInformation.Title;


      //Saves the PDF file to file system

      pdfDoc1.Save(infilename + ".pdf");

      //Closes the instance of document objects

      pdfDoc1.Close(true);


      document.Close();