Rulers with mm and decimal point

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Rulers with mm and decimal point

Post by relapse »

Hi, I'd like to adjust the viewer so that the rulers are shown with mm as the standard unit and the numbers are with decimal point instead of fraction line. How could I achieve it programmatically?


Thanks a lot!
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Rulers with mm and decimal point

Post by Stefan - PDF-XChange »

Hi Relapse,

I believe these are the two you need:

Code: Select all

SetProperty("Measurement.Rulers.Visible", "true", 0);
SetProperty("Measurement.Units", "mm", 0);
Units possible values:
cm,
in,
mm,
p (picas),
pt (points)

Best,
Stefan
relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Re: Rulers with mm and decimal point

Post by relapse »

Thank you, Stefan! It functions! But what is with the decimal point? It's really uncomfortable to see the fractions with a line instead of a point.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Rulers with mm and decimal point

Post by Stefan - PDF-XChange »

Hi relapse,

Could you please show me a screenshot of this?
When you have the unit set to mm - there should be 0 10 20 ... ect mm measurements shown in the rulers and no fractions of mms.

Or is it the fractions that are shown for inches?
In this case you can turn them off with

Code: Select all

SetProperty("Measurement.Rulers.ShowFractions", "false", 0);
And I just found out this older topic where Vasyl has listed all the Measurement options:
https://forum.pdf-xchange.com/ ... =36&t=9344
(As you have noticed they are not documented in the manual)

Best,
Stefan
relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Re: Rulers with mm and decimal point

Post by relapse »

Thanks a lot! It was exactly what I needed! :D

And I've noted your link for the future.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Rulers with mm and decimal point

Post by Stefan - PDF-XChange »

:)