We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

GIFF to PDF conversion in .NET

Hello,
After conversion from giff to pdf format, the file is inconsistent. The conversion worked well in 20.1 version, but output file is corrupted using version 20.8, .net. The output file format is pdf.

Source file:
Latency.pdf (498.7 KB)

Output:
Latency.gif (209.0 KB)

1 Like

@YuliaF

We tried back and forth conversion (GIF to PDF, PDF to GIF) but couldn’t reproduce this issue. Could you please share the sample code? Have a look at these output.zip (2.0 MB) files.

Sorry, my bad. I swapped source and output files. We need to convert from giff to pdf.
The source file is giff:
Latency.gif (209.0 KB)

Wrong output is pdf:
Latency.pdf (498.7 KB)

We convert in this way:

    Stream document = GetDoc();

    using (var fileConverter = new Converter(() => document))
                            {
                                var convertedDocumentStream = new ConvertedDocumentStream((converted) =>
                                {
                                    converted.CopyTo(result);
                                    converted.Dispose();
                                });
                                 fileConverter.Convert(() => new MemoryStream(), convertedDocumentStream, GetPdfOptions());
            }
1 Like

@YuliaF

This issue is reproduced at our end. Hence, we’ve logged it in our internal issue tracking system with ID CONVERSIONNET-4817. You’ll be notified in case of any progress update.