Welcome Guest Search | Active Topics | Sign In | Register

Javascript API Options
Matt Scott
Posted: Thursday, January 15, 2015 9:18:41 AM
Rank: Member
Groups: Member

Joined: 10/3/2014
Posts: 14
Hi, I've been trying to determine the orientation being printed and would like to do this via the javascript interface you provide.
The problem is I haven't been able to find a full list of what is available, i.e. an API.
I've had a look at the documentation provided and all I could find was how to get the version number.

Thanks in advance
eo_support
Posted: Thursday, January 15, 2015 10:13:24 AM
Rank: Administration
Groups: Administration

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

Which product are you referring?

Thanks!
Matt Scott
Posted: Thursday, January 15, 2015 10:14:32 AM
Rank: Member
Groups: Member

Joined: 10/3/2014
Posts: 14
Apologies, EO.PDF (HTML 2 PDF)
eo_support
Posted: Thursday, January 15, 2015 10:20:12 AM
Rank: Administration
Groups: Administration

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

No. There is no way for you to do that with EO.Pdf. The default paper size is letter size. If you wish to change it or change the orientation, you must set HtmlToPdf.Options.PageSize before the conversion (landscape orientation is just a different paper size). There is no way to change that mid way.

Thanks!
Matt Scott
Posted: Thursday, January 15, 2015 10:21:32 AM
Rank: Member
Groups: Member

Joined: 10/3/2014
Posts: 14
Hi, thanks for the response.
I do not wish to change it, I just want to find out what it has been set to, preferably using a similar method to getVersion().

Thanks
eo_support
Posted: Thursday, January 15, 2015 10:24:37 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
No. That does not exist either. The only two methods currently supported are getVersion() and convert().

Thanks!
Matt Scott
Posted: Thursday, January 15, 2015 10:25:19 AM
Rank: Member
Groups: Member

Joined: 10/3/2014
Posts: 14
OK thanks for your help


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.