Welcome Guest Search | Active Topics | Sign In | Register

aspxtoPDF loss of stylesheet w/ masterpage Options
BrianS
Posted: Friday, September 16, 2011 11:57:35 AM
Rank: Newbie
Groups: Member

Joined: 9/6/2011
Posts: 5
i'm using the aspxtopdf renderaspdf function with no options set other than the eo.pdf.runtime.addlicense and all the css and some dynamic images are being stripped out of the page when it is rendered as a pdf, on another page, it is also failing to display a javascript rendered amchart if you need screen shots i can email them
eo_support
Posted: Friday, September 16, 2011 12:07:49 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Please check your security settings first. If you use form authentications, please update to the latest build. The latest build can automatically impersonate your form authentication identify and sessions when requesting dynamically generated contents, the early versions cannot. If you use Windows integrated authentications on those files, then you must turn it off on those files (not the main ASPX files that hosts the ASPXToPDF control, but "sub resources" such as images you ASPX file uses).

Currently you cannot use amChart with our converter. The reason is because amChart renders with Flash and we do not load Flash plug-ins --- in fact we do not load any third party plug-ins for security reasons. With a full blown browser, user has an UI where they can configure and disable a plug-in if things go wrong, we do not have such UIs, so blindly loading plug-in could potentially cause a lot of issues. You may want to contact amChart and ask them whether they can render their chart as a static image. We also fully support SVG. SVG allows you to create very complex chart on client side with JavaScript and it should be the future of vector chart. So you may want to see if you can replace amChart with a SVG based chart solution.

Thanks
BrianS
Posted: Friday, September 16, 2011 12:12:27 PM
Rank: Newbie
Groups: Member

Joined: 9/6/2011
Posts: 5
am charts line chart which i use will render by javascript if flash is not present and will currently render with your html to pdf if set properly with a high minloadwaittime, but i have had no such luck with the aspxtopdf conversion, none of my images are in forms secured directories, since forms authentication was only recently put in place on the application and resources must be backwards compatible with previous versions
eo_support
Posted: Friday, September 16, 2011 12:18:40 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

There should be no difference between ASPXToPDF and HTML to PDF because internally ASPXToPDF uses HTML to PDF to perform the conversion (it eventually calls HtmlToPdf.ConvertHtml). So any option that you have been using with HTML to PDF will work exactly the same way in ASPXToPDF.

If you do not wish to use a high MinLoadWaitTime value, you can manually trigger the conversion when you are ready (this feature did not exist in early builds, so again update first):

http://doc.essentialobjects.com/library/4/htmltopdf/eo_js.aspx

If you still have problems after all those, please try to isolate the problem into a test app and send the test app to us. Screenshot won't help at all. We will need a test app to debug at here in order to tell you why.

Thanks!
BrianS
Posted: Friday, September 16, 2011 12:19:09 PM
Rank: Newbie
Groups: Member

Joined: 9/6/2011
Posts: 5
sorry my mistake, was an issue with the development server once i put it on iis with permissions everything is rendering, sorry for the inconvenience, and amcharts javascript backup is also working now, likely wasn't able to load supporting .js files either


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.