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

How are circuits which use complex ICs normally simulated?

Have you ever entered Singapore using a different passport or name?

Does the shape of a die affect the probability of a number being rolled?

Why is the Constellation's nose gear so long?

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

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

Reference request: Oldest number theory books with (unsolved) exercises?

Are there any other methods to apply to solving simultaneous equations?

Is three citations per paragraph excessive for undergraduate research paper?

One word riddle: Vowel in the middle

For what reasons would an animal species NOT cross a *horizontal* land bridge?

Deal with toxic manager when you can't quit

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

How to support a colleague who finds meetings extremely tiring?

Delete all lines which don't have n characters before delimiter

Feature engineering suggestion required

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

How can I autofill dates in Excel excluding Sunday?

Return to UK after having been refused entry years ago

Why isn't the circumferential light around the M87 black hole's event horizon symmetric?

Can one be advised by a professor who is very far away?

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?

Can you compress metal and what would be the consequences?



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.5k9135232




    66.5k9135232












    • 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

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?