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!
Rulers with mm and decimal point
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: Rulers with mm and decimal point
Hi Relapse,
I believe these are the two you need:Units possible values:
cm,
in,
mm,
p (picas),
pt (points)
Best,
Stefan
I believe these are the two you need:
Code: Select all
SetProperty("Measurement.Rulers.Visible", "true", 0);
SetProperty("Measurement.Units", "mm", 0);
cm,
in,
mm,
p (picas),
pt (points)
Best,
Stefan
-
- User
- Posts: 167
- Joined: Wed Jan 18, 2012 11:10 am
Re: Rulers with mm and decimal point
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.
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: Rulers with mm and decimal point
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
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
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);
https://forum.pdf-xchange.com/ ... =36&t=9344
(As you have noticed they are not documented in the manual)
Best,
Stefan
-
- User
- Posts: 167
- Joined: Wed Jan 18, 2012 11:10 am
Re: Rulers with mm and decimal point
Thanks a lot! It was exactly what I needed! 
And I've noted your link for the future.

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