• 0 Posts
  • 29 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle

  • Most Americans on the west coast call any place a shipping container can unload or an aircraft carrier to dock a port.

    A grand total of zero Americans would ever think to disambiguate a warm water port or not. Especially from Texas. That’s the weird part. Not the word port itself.

    Harbor is usually reserved for non-commercial or fishing use only.








  • If you are serious about help, and you are still early in the process, just one less bottle per night every day for a week, then the next week one less than that.

    It takes will power, but if you want it you can do it. It doesn’t have to be cold turkey. If you are at a six pack a night, or a 4 pack of some 12% ones you can wean yourself off nightly binge drinking in a month or two.

    When you are down to one a night, switch it to one every other night… Then don’t buy any for a week. Then you can figure out how to drink more responsibility.

    If you are to the point where you drink one when you wake up, you will need medical detox. If you wait… You will probably eventually die from alcohol related diseases.







  • I think the confusion/difficulty is the mistake that the PDF rendering is happening client side. I don’t know this for certain since I haven’t spent any time trying to break it, but based on the solutions I have found online leads me to believe that these view only PDFs are server side rendered and what is sent to your browser is only an image.

    PDF is a weird file format… It is sometimes just a bunch of jpeg images of pages (scanners that don’t do ocr generate PDFs this way) And the PDF isn’t anything more than a collection of jpeg images… Or it can be a fully text based document using a proprietary rendering language that needs to be rendered to be viewed… Or it’s a series of printer commands that would tell a printer how to print it…

    In any case PDF viewers are super complex (basically they need to know how to render all of those different kinds of instructions into a standard document for viewing) and often times they are implemented as image generators (because basically that’s what they are, it’s also why some PDF viewers don’t have text search or form filling, and it’s part of why PDF editors are so complex). The result of this is that it’s possible that the Google view of the PDF isn’t a PDF document… And only the server side rendering of it which means that when the view only option is enabled… There is no PDF to download. You aren’t looking at the PDF file. You are looking at the rendering result of the PDF viewer running on a Google server.

    In this case you can’t download the PDFs… Your best option is to take screen capture of the pages, and run ocr on them.

    Basically Google servers are printing the PDF to your screen. You dumb scan it, which generates a PDF that is a collection of jpeg images, then you ocr it, which generates a text version of the PDF.

    Those js script snippets literally are a dumb scanner for your screen… That make a PDF from a collection of jpeg images.

    Kinda nuts.