Convert pdf to text with colors [closed] - go

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I am trying to convert a pdf to text, and als extract the color information of the text.
I am trying to do this in golang, but using a command line tool I call from golang is absolutely acceptable.
I found pdftotext from poppler-utils, and its almost perfect. Only, it does not give me the color information.
I tried github.com/ledongthuc/pdf, which also does not give me color information.
Is there some other tool? Am I missing a way to do this with pdftotext?

There is a C++ library called poppler (https://poppler.freedesktop.org), which allows extracting text from PDF Files including color.
There a go bindings here: https://github.com/cheggaaa/go-poppler

Related

Opacity of background in Textmate2 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am new to Textmate 2. I have seen few people using textmate with a reduced opacity of the background color. I am trying to find a way to achieve that, but could not get to anything closer.
I tried tweaking the bundle file for the default theme, but eventually ended up messing the look of the existing theme.
What am I missing here. Do I need any other bundle to achieve it? How do I get a transparency in the background?
Ah! yes I now get it!... I guess its different in Textmate2. All you need to do is to goto the bundle editor and change the value of background in settings.
For example if the value of background is #141414 then append the hex value of the desired transparency. For example you want the opacity to be 62.8% then you can change the value to be #141414A1.
0xA1 = 161
161/256 = 62.8%

Clearly show an image/button is clickable/touchable [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Hey i am building an interface to display power flow and I have images for controllers (switches, power storage, etc...) some of the images contain more information (pop-ups) and some do not I am looking for a way to clearly show the images with more content I was wondering if anyone has good idea on how to do this?
On a web page, clickable text is often in a different color and/or is underlined. Perhaps you can do something similar? Add a colored border to your images-with-more-content?

Ruby libraries to find "location" of items on laid out web page? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I'm looking for a library, or a strategy, that can be used, ideally in conjunction with Ruby/Nokogiri, to determine the layout location of items on a web page, when viewed in the browser.
For example, in the current page I'm looking at, there is a "Ask Question" button in the top right corner (I am guessing in the header). If, for example, I wanted to see where the all the words "question" are on the page, which would match this word, and other places hat have the word question, in terms of XY coordinates or pixels, how would I do that?
I clearly have to load the CSS. But, what else?
Any suggestions would be appreciated.
The Watir project might be able to help, as it talks directly to the browser, allowing you to get information about a page after the browser has finished rendering it. You'll need to look through the API to see if you can get the pixel locations for elements.
Pixel locations will be difficult though, because those are tied to font sizes and a real-human user could have something that is overriding the settings applied by the CSS. The information you get from a browser in your testing could vary wildly from what a real user would see. That might, or might not, be an issue for you.

Hide detail in Oracle report [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm making a report in Oracle reports 10g, and all I want to show is totals. I want the detail lines removed so that the total line is all the displays for each date. I can hide the details, but the report still leaves the spaces and I can't figure out how to close the gap between the date and total lines so they display evenly next to each other.
Put the detail stuff inside of a frame and set the frame's vertical elasticity to "Variable". Then put a format trigger on that frame that returns false when you want to hide it. Everything below it should move up to fill the space then when the format trigger returns false.
Put the conditional formatting on "Repeating Frame" and check on hide the object.
Then all rows meeting condition will be hidden. And no space will left.

What are the best fonts for numeric data entry? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm creating a GUI application that requires the user to provide lots of numeric data. What is the best font to display the user's data? I assume that a mono-spaced font would be better in this case, as multiple lines will have the same number of characters.
My favorite is Consolas
I'd probably go sans serif monospace.
What other fonts are you using for the rest of the application? If the answer is "Arial", "Arial Monospace" is probably the matching font for the numbers.
courier/courier new also looks better.
anything monospace will be fine.
Agreed on monospace but let the USER choose which one and the size - you have to set one by default
I'm a fan of Lucida Console or PT Mono.

Resources