Geometric measuring tools on screen for PDF documents The 2019 Stack Overflow Developer Survey Results Are InHow do I measure the size of an area?How do I measure dimensions on screen?Open pdf documents with different ReaderHow to dynamically generate PDF documentsSoftware to Index and Document large-number of PDF documents based on certain criteriaSome PDF documents are messy when printingHow to highlight and annotate PDF and DjVu documents?PDF viewer that lists open documentsClean or convert pdf documentspdf documents in evince have no linksThe search for the ultimate pdf viewerPDF Reader for Studying

Time travel alters history but people keep saying nothing's changed

Should I use my personal e-mail address, or my workplace one, when registering to external websites for work purposes?

Resizing object distorts it (Illustrator CC 2018)

Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?

How to save as into a customized destination on macOS?

Do these rules for Critical Successes and Critical Failures seem Fair?

If a Druid sees an animal’s corpse, can they wild shape into that animal?

Worn-tile Scrabble

Is this app Icon Browser Safe/Legit?

Can we generate random numbers using irrational numbers like π and e?

Apparent duplicates between Haynes service instructions and MOT

Is flight data recorder erased after every flight?

Loose spokes after only a few rides

How come people say “Would of”?

Does a dangling wire really electrocute me if I'm standing in water?

Did Section 31 appear in Star Trek: The Next Generation?

Shouldn't "much" here be used instead of "more"?

Am I thawing this London Broil safely?

Why hard-Brexiteers don't insist on a hard border to prevent illegal immigration after Brexit?

Why do UK politicians seemingly ignore opinion polls on Brexit?

Why did Acorn's A3000 have red function keys?

I see my dog run

What is the most effective way of iterating a std::vector and why?

What is the meaning of the verb "bear" in this context?



Geometric measuring tools on screen for PDF documents



The 2019 Stack Overflow Developer Survey Results Are InHow do I measure the size of an area?How do I measure dimensions on screen?Open pdf documents with different ReaderHow to dynamically generate PDF documentsSoftware to Index and Document large-number of PDF documents based on certain criteriaSome PDF documents are messy when printingHow to highlight and annotate PDF and DjVu documents?PDF viewer that lists open documentsClean or convert pdf documentspdf documents in evince have no linksThe search for the ultimate pdf viewerPDF Reader for Studying



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















Not sure if something exists for such a specific need, but I'll try anyway. I've got some PDF maps, and I was wondering if there's any PDF-viewer or similar software that allows me to measure distances, and use a compass to figure out headings.



The only thing I can think of is to import the maps into image editing software and use a line matching the scale to measure distances, but this would be highly impractical and potentially time consuming, and there would still be no way for me to measure headings.



EDIT: screenruler and kruler are unfortunately too basic, as they lack protractors, as well as the ability to make precision rotations.



What about something that would allow me to overlay, move, and rotate a transparent image of my choosing? That would allow me to create or find my own images of measurement tools.



EDIT2: Running Ubuntu 18.10 on a tablet










share|improve this question
























  • How about using a screen ruler? There are some here: askubuntu.com/questions/5324/…

    – Parto
    2 days ago











  • @Parto: Gave screenruler and kruler a try. Both are too basic, unfortunately. Unable to make precise rotations (90 degrees is the only option), and lack of protractor. Will edit post.

    – hiigaran
    2 days ago

















2















Not sure if something exists for such a specific need, but I'll try anyway. I've got some PDF maps, and I was wondering if there's any PDF-viewer or similar software that allows me to measure distances, and use a compass to figure out headings.



The only thing I can think of is to import the maps into image editing software and use a line matching the scale to measure distances, but this would be highly impractical and potentially time consuming, and there would still be no way for me to measure headings.



EDIT: screenruler and kruler are unfortunately too basic, as they lack protractors, as well as the ability to make precision rotations.



What about something that would allow me to overlay, move, and rotate a transparent image of my choosing? That would allow me to create or find my own images of measurement tools.



EDIT2: Running Ubuntu 18.10 on a tablet










share|improve this question
























  • How about using a screen ruler? There are some here: askubuntu.com/questions/5324/…

    – Parto
    2 days ago











  • @Parto: Gave screenruler and kruler a try. Both are too basic, unfortunately. Unable to make precise rotations (90 degrees is the only option), and lack of protractor. Will edit post.

    – hiigaran
    2 days ago













2












2








2








Not sure if something exists for such a specific need, but I'll try anyway. I've got some PDF maps, and I was wondering if there's any PDF-viewer or similar software that allows me to measure distances, and use a compass to figure out headings.



The only thing I can think of is to import the maps into image editing software and use a line matching the scale to measure distances, but this would be highly impractical and potentially time consuming, and there would still be no way for me to measure headings.



EDIT: screenruler and kruler are unfortunately too basic, as they lack protractors, as well as the ability to make precision rotations.



What about something that would allow me to overlay, move, and rotate a transparent image of my choosing? That would allow me to create or find my own images of measurement tools.



EDIT2: Running Ubuntu 18.10 on a tablet










share|improve this question
















Not sure if something exists for such a specific need, but I'll try anyway. I've got some PDF maps, and I was wondering if there's any PDF-viewer or similar software that allows me to measure distances, and use a compass to figure out headings.



The only thing I can think of is to import the maps into image editing software and use a line matching the scale to measure distances, but this would be highly impractical and potentially time consuming, and there would still be no way for me to measure headings.



EDIT: screenruler and kruler are unfortunately too basic, as they lack protractors, as well as the ability to make precision rotations.



What about something that would allow me to overlay, move, and rotate a transparent image of my choosing? That would allow me to create or find my own images of measurement tools.



EDIT2: Running Ubuntu 18.10 on a tablet







software-recommendation pdf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago







hiigaran

















asked 2 days ago









hiigaranhiigaran

1,660520




1,660520












  • How about using a screen ruler? There are some here: askubuntu.com/questions/5324/…

    – Parto
    2 days ago











  • @Parto: Gave screenruler and kruler a try. Both are too basic, unfortunately. Unable to make precise rotations (90 degrees is the only option), and lack of protractor. Will edit post.

    – hiigaran
    2 days ago

















  • How about using a screen ruler? There are some here: askubuntu.com/questions/5324/…

    – Parto
    2 days ago











  • @Parto: Gave screenruler and kruler a try. Both are too basic, unfortunately. Unable to make precise rotations (90 degrees is the only option), and lack of protractor. Will edit post.

    – hiigaran
    2 days ago
















How about using a screen ruler? There are some here: askubuntu.com/questions/5324/…

– Parto
2 days ago





How about using a screen ruler? There are some here: askubuntu.com/questions/5324/…

– Parto
2 days ago













@Parto: Gave screenruler and kruler a try. Both are too basic, unfortunately. Unable to make precise rotations (90 degrees is the only option), and lack of protractor. Will edit post.

– hiigaran
2 days ago





@Parto: Gave screenruler and kruler a try. Both are too basic, unfortunately. Unable to make precise rotations (90 degrees is the only option), and lack of protractor. Will edit post.

– hiigaran
2 days ago










2 Answers
2






active

oldest

votes


















0














Get geometry info on screen



Although the solution below should quickly give you all the info you ask for, not sure if the way the info is presented will fully satisfy your description.



It is an edited version of this answer, now extended with a few extra calculations, now including the angle to an imaginary horizontal line, as well as the length of the line you draw, in (equivalents of) px:



enter image description here



The script



#!/usr/bin/env python3
import subprocess
import os
import math

home = os.environ["HOME"]
area = home+"/"+".measure_area.txt"

def get_pos():
pos_data = subprocess.check_output(["xdotool", "getmouselocation"]).decode("utf-8")
return [m[2:] for m in pos_data.split()[:2]]

def confirm():
get = subprocess.check_output(["xrandr", "--verbose"]).decode("utf-8").split()
for s in [get[i-1] for i in range(len(get)) if get[i] == "connected"]:
br_data = float(get[get.index("Brightness:")+1])
brightness = lambda br: ["xrandr", "--output", s, "--brightness", br]
flash = ["sleep", "0.1"]
for cmd in [brightness(str(br_data-0.1)), flash, brightness(str(br_data))]:
subprocess.call(cmd)

if not os.path.exists(area):
with open(area, "wt") as measure:
measure.write(str(get_pos()))
confirm()
else:
second = get_pos()
with open(area) as first_m:
try:
first = eval(first_m.read())
w = int(math.fabs(int(second[0]) - int(first[0])))
h = int(math.fabs(int(second[1]) - int(first[1])))
l = str(round(math.sqrt(pow(w, 2) + pow(h, 2))))
arc = math.degrees(math.atan(w/h))
angle = str(round(90-arc))
command = [
'zenity', '--info', '--title', 'Area Size', '--width', '200',
'--text', "rectangle: " + str(w) + 'px x ' + str(h) + "px"
"nline length: " + l + "pxnangle: " + str(angle) + "°",
]
#---
confirm()
except SyntaxError:
text = "Please try again, there was an error in the data"
command = ['zenity', '--info', '--title', 'Please try again', '--text', text]
subprocess.Popen(command)
os.remove(area)


How it works



The script calculates the angle to an imaginary horizontal line, the length and the area size, between two locations of the mouse pointer.



It works as followes:



  1. Place the mouse pointer in the first position (without clicking)

  2. Press the key combination of your choice (see further below)

  3. Place the mouse in the second position (again without clicking)

  4. Press your key combination again. A Zenity window will show you the result as in the image above.

How to set up




  1. The script uses xdotool:



    sudo apt-get install xdotool


  2. Copy the script below into an empty file, save it in ~/bin (you will probably have to create the directory) as measure_area (no extension) and make it executable.



  3. Add a key combination of your choice to run the script: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:



    measure_area


Notes



  • You will have to log out / in first

  • It does not make a difference what you take as first/second position; the script measures absolute values.





share|improve this answer























  • Looks promising, but I'm guessing a keyboard and mouse are mandatory here, right? I'm working with a tablet.

    – hiigaran
    2 days ago











  • @hiigaran please add that to your Q, it is essential information. I am guessing that will rule out about all the allready scarce options. What is your distro?

    – Jacob Vlijm
    2 days ago











  • Will do. And it's running Ubuntu 18.10

    – hiigaran
    2 days ago


















0














Assuming that the PDF map that you have is a geospatial PDF, you can use Adobe Acrobat and teh built-in analysis tools or you can use the Avenza Maps mobile app on your phone or tablet.






share|improve this answer








New contributor




Jim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132129%2fgeometric-measuring-tools-on-screen-for-pdf-documents%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Get geometry info on screen



    Although the solution below should quickly give you all the info you ask for, not sure if the way the info is presented will fully satisfy your description.



    It is an edited version of this answer, now extended with a few extra calculations, now including the angle to an imaginary horizontal line, as well as the length of the line you draw, in (equivalents of) px:



    enter image description here



    The script



    #!/usr/bin/env python3
    import subprocess
    import os
    import math

    home = os.environ["HOME"]
    area = home+"/"+".measure_area.txt"

    def get_pos():
    pos_data = subprocess.check_output(["xdotool", "getmouselocation"]).decode("utf-8")
    return [m[2:] for m in pos_data.split()[:2]]

    def confirm():
    get = subprocess.check_output(["xrandr", "--verbose"]).decode("utf-8").split()
    for s in [get[i-1] for i in range(len(get)) if get[i] == "connected"]:
    br_data = float(get[get.index("Brightness:")+1])
    brightness = lambda br: ["xrandr", "--output", s, "--brightness", br]
    flash = ["sleep", "0.1"]
    for cmd in [brightness(str(br_data-0.1)), flash, brightness(str(br_data))]:
    subprocess.call(cmd)

    if not os.path.exists(area):
    with open(area, "wt") as measure:
    measure.write(str(get_pos()))
    confirm()
    else:
    second = get_pos()
    with open(area) as first_m:
    try:
    first = eval(first_m.read())
    w = int(math.fabs(int(second[0]) - int(first[0])))
    h = int(math.fabs(int(second[1]) - int(first[1])))
    l = str(round(math.sqrt(pow(w, 2) + pow(h, 2))))
    arc = math.degrees(math.atan(w/h))
    angle = str(round(90-arc))
    command = [
    'zenity', '--info', '--title', 'Area Size', '--width', '200',
    '--text', "rectangle: " + str(w) + 'px x ' + str(h) + "px"
    "nline length: " + l + "pxnangle: " + str(angle) + "°",
    ]
    #---
    confirm()
    except SyntaxError:
    text = "Please try again, there was an error in the data"
    command = ['zenity', '--info', '--title', 'Please try again', '--text', text]
    subprocess.Popen(command)
    os.remove(area)


    How it works



    The script calculates the angle to an imaginary horizontal line, the length and the area size, between two locations of the mouse pointer.



    It works as followes:



    1. Place the mouse pointer in the first position (without clicking)

    2. Press the key combination of your choice (see further below)

    3. Place the mouse in the second position (again without clicking)

    4. Press your key combination again. A Zenity window will show you the result as in the image above.

    How to set up




    1. The script uses xdotool:



      sudo apt-get install xdotool


    2. Copy the script below into an empty file, save it in ~/bin (you will probably have to create the directory) as measure_area (no extension) and make it executable.



    3. Add a key combination of your choice to run the script: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:



      measure_area


    Notes



    • You will have to log out / in first

    • It does not make a difference what you take as first/second position; the script measures absolute values.





    share|improve this answer























    • Looks promising, but I'm guessing a keyboard and mouse are mandatory here, right? I'm working with a tablet.

      – hiigaran
      2 days ago











    • @hiigaran please add that to your Q, it is essential information. I am guessing that will rule out about all the allready scarce options. What is your distro?

      – Jacob Vlijm
      2 days ago











    • Will do. And it's running Ubuntu 18.10

      – hiigaran
      2 days ago















    0














    Get geometry info on screen



    Although the solution below should quickly give you all the info you ask for, not sure if the way the info is presented will fully satisfy your description.



    It is an edited version of this answer, now extended with a few extra calculations, now including the angle to an imaginary horizontal line, as well as the length of the line you draw, in (equivalents of) px:



    enter image description here



    The script



    #!/usr/bin/env python3
    import subprocess
    import os
    import math

    home = os.environ["HOME"]
    area = home+"/"+".measure_area.txt"

    def get_pos():
    pos_data = subprocess.check_output(["xdotool", "getmouselocation"]).decode("utf-8")
    return [m[2:] for m in pos_data.split()[:2]]

    def confirm():
    get = subprocess.check_output(["xrandr", "--verbose"]).decode("utf-8").split()
    for s in [get[i-1] for i in range(len(get)) if get[i] == "connected"]:
    br_data = float(get[get.index("Brightness:")+1])
    brightness = lambda br: ["xrandr", "--output", s, "--brightness", br]
    flash = ["sleep", "0.1"]
    for cmd in [brightness(str(br_data-0.1)), flash, brightness(str(br_data))]:
    subprocess.call(cmd)

    if not os.path.exists(area):
    with open(area, "wt") as measure:
    measure.write(str(get_pos()))
    confirm()
    else:
    second = get_pos()
    with open(area) as first_m:
    try:
    first = eval(first_m.read())
    w = int(math.fabs(int(second[0]) - int(first[0])))
    h = int(math.fabs(int(second[1]) - int(first[1])))
    l = str(round(math.sqrt(pow(w, 2) + pow(h, 2))))
    arc = math.degrees(math.atan(w/h))
    angle = str(round(90-arc))
    command = [
    'zenity', '--info', '--title', 'Area Size', '--width', '200',
    '--text', "rectangle: " + str(w) + 'px x ' + str(h) + "px"
    "nline length: " + l + "pxnangle: " + str(angle) + "°",
    ]
    #---
    confirm()
    except SyntaxError:
    text = "Please try again, there was an error in the data"
    command = ['zenity', '--info', '--title', 'Please try again', '--text', text]
    subprocess.Popen(command)
    os.remove(area)


    How it works



    The script calculates the angle to an imaginary horizontal line, the length and the area size, between two locations of the mouse pointer.



    It works as followes:



    1. Place the mouse pointer in the first position (without clicking)

    2. Press the key combination of your choice (see further below)

    3. Place the mouse in the second position (again without clicking)

    4. Press your key combination again. A Zenity window will show you the result as in the image above.

    How to set up




    1. The script uses xdotool:



      sudo apt-get install xdotool


    2. Copy the script below into an empty file, save it in ~/bin (you will probably have to create the directory) as measure_area (no extension) and make it executable.



    3. Add a key combination of your choice to run the script: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:



      measure_area


    Notes



    • You will have to log out / in first

    • It does not make a difference what you take as first/second position; the script measures absolute values.





    share|improve this answer























    • Looks promising, but I'm guessing a keyboard and mouse are mandatory here, right? I'm working with a tablet.

      – hiigaran
      2 days ago











    • @hiigaran please add that to your Q, it is essential information. I am guessing that will rule out about all the allready scarce options. What is your distro?

      – Jacob Vlijm
      2 days ago











    • Will do. And it's running Ubuntu 18.10

      – hiigaran
      2 days ago













    0












    0








    0







    Get geometry info on screen



    Although the solution below should quickly give you all the info you ask for, not sure if the way the info is presented will fully satisfy your description.



    It is an edited version of this answer, now extended with a few extra calculations, now including the angle to an imaginary horizontal line, as well as the length of the line you draw, in (equivalents of) px:



    enter image description here



    The script



    #!/usr/bin/env python3
    import subprocess
    import os
    import math

    home = os.environ["HOME"]
    area = home+"/"+".measure_area.txt"

    def get_pos():
    pos_data = subprocess.check_output(["xdotool", "getmouselocation"]).decode("utf-8")
    return [m[2:] for m in pos_data.split()[:2]]

    def confirm():
    get = subprocess.check_output(["xrandr", "--verbose"]).decode("utf-8").split()
    for s in [get[i-1] for i in range(len(get)) if get[i] == "connected"]:
    br_data = float(get[get.index("Brightness:")+1])
    brightness = lambda br: ["xrandr", "--output", s, "--brightness", br]
    flash = ["sleep", "0.1"]
    for cmd in [brightness(str(br_data-0.1)), flash, brightness(str(br_data))]:
    subprocess.call(cmd)

    if not os.path.exists(area):
    with open(area, "wt") as measure:
    measure.write(str(get_pos()))
    confirm()
    else:
    second = get_pos()
    with open(area) as first_m:
    try:
    first = eval(first_m.read())
    w = int(math.fabs(int(second[0]) - int(first[0])))
    h = int(math.fabs(int(second[1]) - int(first[1])))
    l = str(round(math.sqrt(pow(w, 2) + pow(h, 2))))
    arc = math.degrees(math.atan(w/h))
    angle = str(round(90-arc))
    command = [
    'zenity', '--info', '--title', 'Area Size', '--width', '200',
    '--text', "rectangle: " + str(w) + 'px x ' + str(h) + "px"
    "nline length: " + l + "pxnangle: " + str(angle) + "°",
    ]
    #---
    confirm()
    except SyntaxError:
    text = "Please try again, there was an error in the data"
    command = ['zenity', '--info', '--title', 'Please try again', '--text', text]
    subprocess.Popen(command)
    os.remove(area)


    How it works



    The script calculates the angle to an imaginary horizontal line, the length and the area size, between two locations of the mouse pointer.



    It works as followes:



    1. Place the mouse pointer in the first position (without clicking)

    2. Press the key combination of your choice (see further below)

    3. Place the mouse in the second position (again without clicking)

    4. Press your key combination again. A Zenity window will show you the result as in the image above.

    How to set up




    1. The script uses xdotool:



      sudo apt-get install xdotool


    2. Copy the script below into an empty file, save it in ~/bin (you will probably have to create the directory) as measure_area (no extension) and make it executable.



    3. Add a key combination of your choice to run the script: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:



      measure_area


    Notes



    • You will have to log out / in first

    • It does not make a difference what you take as first/second position; the script measures absolute values.





    share|improve this answer













    Get geometry info on screen



    Although the solution below should quickly give you all the info you ask for, not sure if the way the info is presented will fully satisfy your description.



    It is an edited version of this answer, now extended with a few extra calculations, now including the angle to an imaginary horizontal line, as well as the length of the line you draw, in (equivalents of) px:



    enter image description here



    The script



    #!/usr/bin/env python3
    import subprocess
    import os
    import math

    home = os.environ["HOME"]
    area = home+"/"+".measure_area.txt"

    def get_pos():
    pos_data = subprocess.check_output(["xdotool", "getmouselocation"]).decode("utf-8")
    return [m[2:] for m in pos_data.split()[:2]]

    def confirm():
    get = subprocess.check_output(["xrandr", "--verbose"]).decode("utf-8").split()
    for s in [get[i-1] for i in range(len(get)) if get[i] == "connected"]:
    br_data = float(get[get.index("Brightness:")+1])
    brightness = lambda br: ["xrandr", "--output", s, "--brightness", br]
    flash = ["sleep", "0.1"]
    for cmd in [brightness(str(br_data-0.1)), flash, brightness(str(br_data))]:
    subprocess.call(cmd)

    if not os.path.exists(area):
    with open(area, "wt") as measure:
    measure.write(str(get_pos()))
    confirm()
    else:
    second = get_pos()
    with open(area) as first_m:
    try:
    first = eval(first_m.read())
    w = int(math.fabs(int(second[0]) - int(first[0])))
    h = int(math.fabs(int(second[1]) - int(first[1])))
    l = str(round(math.sqrt(pow(w, 2) + pow(h, 2))))
    arc = math.degrees(math.atan(w/h))
    angle = str(round(90-arc))
    command = [
    'zenity', '--info', '--title', 'Area Size', '--width', '200',
    '--text', "rectangle: " + str(w) + 'px x ' + str(h) + "px"
    "nline length: " + l + "pxnangle: " + str(angle) + "°",
    ]
    #---
    confirm()
    except SyntaxError:
    text = "Please try again, there was an error in the data"
    command = ['zenity', '--info', '--title', 'Please try again', '--text', text]
    subprocess.Popen(command)
    os.remove(area)


    How it works



    The script calculates the angle to an imaginary horizontal line, the length and the area size, between two locations of the mouse pointer.



    It works as followes:



    1. Place the mouse pointer in the first position (without clicking)

    2. Press the key combination of your choice (see further below)

    3. Place the mouse in the second position (again without clicking)

    4. Press your key combination again. A Zenity window will show you the result as in the image above.

    How to set up




    1. The script uses xdotool:



      sudo apt-get install xdotool


    2. Copy the script below into an empty file, save it in ~/bin (you will probably have to create the directory) as measure_area (no extension) and make it executable.



    3. Add a key combination of your choice to run the script: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:



      measure_area


    Notes



    • You will have to log out / in first

    • It does not make a difference what you take as first/second position; the script measures absolute values.






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 2 days ago









    Jacob VlijmJacob Vlijm

    66.4k9135232




    66.4k9135232












    • Looks promising, but I'm guessing a keyboard and mouse are mandatory here, right? I'm working with a tablet.

      – hiigaran
      2 days ago











    • @hiigaran please add that to your Q, it is essential information. I am guessing that will rule out about all the allready scarce options. What is your distro?

      – Jacob Vlijm
      2 days ago











    • Will do. And it's running Ubuntu 18.10

      – hiigaran
      2 days ago

















    • Looks promising, but I'm guessing a keyboard and mouse are mandatory here, right? I'm working with a tablet.

      – hiigaran
      2 days ago











    • @hiigaran please add that to your Q, it is essential information. I am guessing that will rule out about all the allready scarce options. What is your distro?

      – Jacob Vlijm
      2 days ago











    • Will do. And it's running Ubuntu 18.10

      – hiigaran
      2 days ago
















    Looks promising, but I'm guessing a keyboard and mouse are mandatory here, right? I'm working with a tablet.

    – hiigaran
    2 days ago





    Looks promising, but I'm guessing a keyboard and mouse are mandatory here, right? I'm working with a tablet.

    – hiigaran
    2 days ago













    @hiigaran please add that to your Q, it is essential information. I am guessing that will rule out about all the allready scarce options. What is your distro?

    – Jacob Vlijm
    2 days ago





    @hiigaran please add that to your Q, it is essential information. I am guessing that will rule out about all the allready scarce options. What is your distro?

    – Jacob Vlijm
    2 days ago













    Will do. And it's running Ubuntu 18.10

    – hiigaran
    2 days ago





    Will do. And it's running Ubuntu 18.10

    – hiigaran
    2 days ago













    0














    Assuming that the PDF map that you have is a geospatial PDF, you can use Adobe Acrobat and teh built-in analysis tools or you can use the Avenza Maps mobile app on your phone or tablet.






    share|improve this answer








    New contributor




    Jim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      0














      Assuming that the PDF map that you have is a geospatial PDF, you can use Adobe Acrobat and teh built-in analysis tools or you can use the Avenza Maps mobile app on your phone or tablet.






      share|improve this answer








      New contributor




      Jim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















        0












        0








        0







        Assuming that the PDF map that you have is a geospatial PDF, you can use Adobe Acrobat and teh built-in analysis tools or you can use the Avenza Maps mobile app on your phone or tablet.






        share|improve this answer








        New contributor




        Jim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        Assuming that the PDF map that you have is a geospatial PDF, you can use Adobe Acrobat and teh built-in analysis tools or you can use the Avenza Maps mobile app on your phone or tablet.







        share|improve this answer








        New contributor




        Jim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Jim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered yesterday









        JimJim

        1




        1




        New contributor




        Jim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Jim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Jim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132129%2fgeometric-measuring-tools-on-screen-for-pdf-documents%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

            How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

            Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü