Word SaveAsPDF Images missing

Posted by: m.mitchell on 13 July 2021, 2:01 am EST

    • Post Options:
    • Link

    Posted 13 July 2021, 2:01 am EST

    Hello,

    when i have da wordDocument (2007) with an image and i use the follwing Code: GcWordDocument.SetLicenseKey(licenseKeyWord); try { var wordDoc = new GcWordDocument(); wordDoc.Load(WordDoc); using (var layout = new GcWordLayout(wordDoc)) { PdfOutputSettings pdfo = new PdfOutputSettings(); pdfo.CompressionLevel = CompressionLevel.Fastest; // save the whole document as PDF layout.SaveAsPdf(PDFDoc, null, pdfo); } return PDFDoc; } catch (Exception ex) { MessageBox.Show(“Error:” + ex.InnerException); return “”; throw; } everthing is fine in VS2017. Within my Application the Image (JPEG) ist missing and instead there is a Red Cross. What is missing? I am using the latest Version of Document for Words and Document for PDF (Vers. 4)

    Mike MItchell

  • Posted 13 July 2021, 4:40 pm EST

    Hello Mike,

    Sorry, we do not face the issue at our end. Can you please share the word file that is having the issue at your end so that we can investigate it further?

    Regards, Prabhat Sharma.

  • Posted 13 July 2021, 5:34 pm EST

    Documents.zip Included are 3 Files: 1 Worddocument 2 PDFFile out of Visual Studio 2017 (incl. the Image) 3 PDFFile out of My Windows Forms Application (RedCross istead of Image)

  • Posted 13 July 2021, 11:23 pm EST

    I solved the Problem.

    In my Windows.Forms.App I had to change the config File and add the following Text:

    Thanks for Your Help. Regards Mike Mitchell

  • Posted 14 July 2021, 8:26 pm EST

    Hello Mike,

    It is good to hear that the issue has been resolved at your end. If you need any other help, please feel free to ask.

    Regards, Prabhat Sharma.

Need extra support?

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

Learn More

Forum Channels