Retaining certain links converting RTF to PDF using C1PDF

Posted by: chuck on 2 September 2022, 7:53 pm EST

    • Post Options:
    • Link

    Posted 2 September 2022, 7:53 pm EST

    I am successfully using C1PDF to convert RTF PDF files. I have embedded hyperlinks (to files on an external website) in the RTF which all work in the RTF format. The RTF files are originally created in Word/WordPad (where the hyperlinks all work)

    If a link has the actual “link address” as the “Show Text” , the link works fine in the PDF.

    However, if the link has a different “Show Text” (e.g. the Show Text is “Click here”) then the link doesn’t work in the PDF.

    What, if anything, can I do to get those links to be retained in the PDF?

    Thanks in advance

  • Posted 3 September 2022, 9:54 am EST

    Sorry - I think I posted the above in the wrong place - I meant to post in Help Support. So I re=posted there.

    Feel free to delete this one

  • Posted 5 September 2022, 7:29 am EST

    Hi Chuck,

    We have replied to your support portal case (Case ID: CAS-34052-R1X1M5). You can continue the thread on that case.

    Best Regards,

    Kartik

  • Posted 28 March 2023, 9:36 am EST

    I want to know if we can convert RTF to PDF using grapecity in .netframework ?

  • Posted 29 March 2023, 2:07 am EST

    Hi Somya,

    Yes, you can use our C1Pdf API to convert RTF text to PDF. To achieve the same, you will need to load your RTF string in the code and then draw it to PDF using the “C1PdfDocument.DrawStringRtf” method. Please see the attached sample project showing a simple implementation of the same.

    You can refer to the documentation of the C1Pdf for more information.

    (https://www.grapecity.com/componentone/docs/win/online-pdf/overview.html)

    Attachment: RtfToPdf.zip

    Best Regards,

    Kartik

  • Posted 29 March 2023, 2:40 am EST

    Hello,

    We are looking for solution to handle all file type which can be convert to pdf and then merge them together.

    I checked gcword , gcpdf and gcexcel, But not sure how many files type can support by it.

    And also, to handle RTF file type we need use to use different package and solution you provided is for winform ?

    Can you provide us which file types which are supported by GC to convert it into PDF ?

    Thanks,

    Somya

  • Posted 30 March 2023, 6:29 am EST

    Hi Somya,

    JFYI, we have 2 different products:

    (1) ComponentOne (https://www.grapecity.com/componentone)

    (2) Document APIs (https://www.grapecity.com/documents-api)


    The Document APIs have support for the file types mentioned in the links below, and then these files can be further saved ad PDF files.

    (https://www.grapecity.com/documents-api-word/docs/online/keyfeatures.html#:~:text=Supported%20file%20formats)

    (https://www.grapecity.com/documents-api-excel/docs/online/GrapeCity.Documents.Excel~GrapeCity.Documents.Excel.OpenFileFormat.html)

    (https://www.grapecity.com/documents-api-pdf/docs/online/KeyFeatures.html#:~:text=Supported%20PDF%20versions)

    JFYI, the GcWord API (which comes under the Document APIs product) does not have support for RTF yet. It is on the to-do list of the development team for further enhancement.


    The solution we provided in our previous response uses the C1Pdf API (which comes under ComponentOne product) and gives you the option to draw RTF strings in PDF.


    The PDF files you save can then be merged by using the GcPdf API (which comes under the Document APIs product).

    https://www.grapecity.com/documents-api-pdf/demos/features/merge-pdfs

    Best Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels