Hi Asad,
Thanks for your reply.
But I tried with the updated package and still get the error sometimes.
Also a bad part is if I remove my license of the Aspose product and download the PDF with trial version then never get the error.
Kindly look into the issue and give me a reply.
Regards,
Bidisha
@bidisha.c1
Thanks for writing back.
As requested earlier, would you please specify your development environment and complete routine of execution, so that we can try to reproduce the issue in our environment and address it accordingly.
Hi Asad,
I am back again:-)…Again doing one more conversion of HTML to PDF.I tried to link external CSS but it is still not working.Please find below the code snippet.
HtmlLoadOptions options = new HtmlLoadOptions(@“local path”);
//options.PageInfo.IsLandscape = true;
MemoryStream stream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes((String)Session["ih"]));
// Load HTML file
Document doc = new Document(stream, options);
Kindly help me with the code of how to link external CSS file to the HTML.
Many thanks in advance.
Regards,
Bidisha
Hi Asad,
I have another query for converting html to PDF,If my HTML file has any anchor tag then in that anchor tag href is not working.how do I make the href tag working in anchor tag.
Regards,
Bidisha
@bidisha.c1
Thanks for getting back to us.
Please note that “local path” should point to the same location which has been used in the HTML for CSS file reference. However, if issue still occurs, please share your HTML along with CSS file(s). We will test the scenario in our environment and address it accordingly.
Usually anchor tags in source HTML are converted into link annotations in the output PDF document. We have also tested this scenario in our environment while converting a sample HTML document with anchor tags into PDF and links were working in the output PDF. In case you are experiencing any issue at your side, please share your sample HTML document with us, so that we can test the scenario in our environment and address it accordingly.
Hi Asad,
Aspose PDF converter is giving issues if HTML has a video then black PDF is coming.Does Aspose support videos in the HTML,If yes then how it needs to be done?
Regards,
Bidisha
Asad,
I am using an Iframe as below:-
<iframe width="540" height="303" src="https://something.com/somesites/somesubsites/_layouts/15/videoembedplayer.aspx?site=a3745c009db84f83ba10b74d060df7fa&web=01dafd617cd74f6cb1b4a12dbed64dde&folder=c6c3f17531934a31ad4b2e615e3b0742&img=https%3a//something.com/somesites/somesubsites/PublishingImages/big_buck_bunny_720p_1mb/Preview%2520Images/big_buck_bunny_720p_1mb_mp4.png&" data-duration="5" data-title="big_buck_bunny_720p_1mb"></iframe>
regards,
Bidisha
@asad.ali ,
I am using an Iframe as below:-
regards,
Bidisha
@Asad
string iframe=""
this is the iframe.
regards,
Bidisha
@asad.ali,
Not able to paste the iframe but could you kindly help me with how to show video in the HTML to PDF conversion?
Regards,
Bidisha
@bidisha.c1
Thanks for contacting support.
Please select all the <iframe>
related code after copying it in your post and press Ctrl+Shift+C
to make it PreFormatted. Please share a valid iframe HTML code, so that we can test the scenario in our environment and address it accordingly. We have tried your previous iframe code but that did not contain any valid URL to be displayed in iFrame.
<iframe width="540" height="303" src="https://something.com/somesites/somesubsites/_layouts/15/videoembedplayer.aspx?site=a3745c009db84f83ba10b74d060df7fa&web=01dafd617cd74f6cb1b4a12dbed64dde&folder=c6c3f17531934a31ad4b2e615e3b0742&img=https%3a//something.com/somesites/somesubsites/PublishingImages/big_buck_bunny_720p_1mb/Preview%2520Images/big_buck_bunny_720p_1mb_mp4.png&" data-duration="5" data-title="big_buck_bunny_720p_1mb"></iframe>
@asad.ali
Also one more problem is that if I am giving any external video source then only a link is coming as “Please click here to see the video” but I also want a preview of the video.Is it possible to have a preview of the video for external as well as IFrame that I pasted above.
Regards,
Bidisha
@bidisha.c1
Thanks for writing back.
Currently support for rendering iframe tag inside output PDF is not present in the API - however we have logged an enhancement request as PDFNET-44527 in our issue tracking system. We have also recorded your concerns along with the request details. We will further check the feasibility of this enhancement and keep you posted with the status of ticket resolution. Please be patient and spare us little time.
We are sorry for the inconvenience.