Can DynamicPDF Converter product capture dynamic HTML content(example JQuery) to PDF document?

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Converter for .NET (v1)  /  Can DynamicPDF Converter product capture dynamic HTML content(example JQuery) to PDF document?

DynamicPDF Converter for .NET (v1) Forum

Hi Support team,

We have a glossy web content. Can DynamicPDF Converter product convert to PDF document without distor the format? Example, can DynamicPDF Converter convert https://www.yahoo.com or https://www.msnbc.com to PDF document straightly?

Thanks,
Minh Nguyen

Note: I have this question since I see the example below from ceTe Software Help Library for .NET:
   --------------------------------------
   Converting a File or URL:
   . . . .
   [C#]
   Converter.Convert("http://www.google.com", @"C:\Temp\Google.pdf");
   --------------------------------------

which make me think that Dynamic Converter can capture the content from a live website and convert to PDF document. However, it has not worked properly for me yet.

Thanks,
Minh
Posted by a ceTe Software moderator
Hello Minh,

Yes, is possible to convert a web page to PDF using the webpage's url. I am not sure what you mean by glossy web content or the format you mentioned in your posts, so please provide more details. Please email us the PDF result of your conversion along with the following information to support@cete.com so we can look into it further.

1. Version and build of DynamicPDF Converter.
2. Operating System Details: Name, x86 or x64.
3. Version of IE installed.
4. Code used along with the url converted. 

Thanks,
ceTe Software Support Team.
Thank you for your response.

Below is the info:

1. Version and build of DynamicPDF Converter.
    - Version: 1.0.1 for .NET
 
2. Operating System Details: Name, x86 or x64.
    - Windows Server 2008 R2 Standard
    - Service Pack 1
    - System type: 64-bit Operating System

3. Version of IE installed.
    - Version: 11.0.9600.16384

4. Code used along with the url converted. 
   Examples URL:
    - https://www.capitaloneinvesting.com/
    


------------------------------------------------------
My HelloWorld example:
------------------------------------------------------
   using ceTe.DynamicPDF.Conversion;

   namespace TestDynamicPDF
   {
       class Program
       {
           static void Main(string[] args)
           {
               System.Console.WriteLine("Web Source: " + args[0]);
               System.Console.WriteLine("Pdf file: " + args[1]);
               System.Console.WriteLine("\nCreating PDF... \n");

               Converter.Convert(args[0], args[1]);
           }
       }
   }
Posted by a ceTe Software moderator
Hello,

The default page size (Letter) used by Converter does not capture all the content of the web page you are trying to convert. Try using the ConversionOptions class to set a larger PDF page size.

            ConversionOptions options = new ConversionOptions(PageSize.Legal, PageOrientation.Landscape, 0);
            Converter.Convert("http://www.capitaloneinvesting.com", "Output.pdf",options);

Also be aware of the limitation where SVG and flash content embedded within the HTML may not get converted. Apart from the limitations listed, if you are still having issues after trying the above code, email the PDF output you are getting to
support@cete.com so we can look into it further.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 1:27 AM.