Ok so I want to download this embedded PDF/document in order to physically print it. The website allows me to view it as much as I want, but is asking me to fork over 25 + tax USD so i can download the document.

Obviously, i don’t want to do that, so I try to download the embedded document via inspect element. But, the weird thing is it not actually loading a pdf, but like really small pictures of each page:

So, my question is basically how can I download this document in order to print it?

PdF link: https://www.sbcaplanroom.com/jobs/2477/plans/goleta-sanitary-district-biosolids-and-energy-phase-1-project/?preview=200647

  • Norah - She/They@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    1 year ago

    Okay so, PDF documents are actually already “a collection of images” basically. This website is clearly trying to make it an extra step harder by loading the images individually as you browse the document. You could manually save/download all the images and use a tool to turn it back into a pdf. I haven’t heard of a tool that does this automatically, but it should be possible for a web scraper to make the GET requests sequentially then stitch the pdf back together.

    • Pantoffel@feddit.de
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      I would go this route as well. As a developer this sounds easy enough. It you don’t get vertical sequences of images, but instead a grid of images, then I would apply traditional image stitching techniques. There are tons of libraries for that on github.

    • jlow (he/him)@beehaw.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Just as a tiny nitpick: PDFs can be just a collection of images. If there’s text I would hope that they’re embedded as text or vectors, which is what would usually happen if you export a document from a program (that isn’t completely bs). So texts / vector graphics etc should not be images usually (unless you scan a document as a PDF - which I hate with a passion but can see that people prefer a single PDF over a collection of image files). Even then you could OCR the imges / PDF to make it searchable etc. Anyway in this case it seems to be a collection of images indeed __

  • Morgikan@lemm.ee
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    1 year ago

    Imagemagick can convert a series of images to single PDF: “convert page*.png mydoc.pdf”

    • Daniel@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I thought the convert command didn’t do this, and that it was the magick one?

  • applejacks@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    I’ve run into this before on archive.org, incredibly annoying.

    I believe there are utilities that can capture and join together JPEGs into a PDF, but it seems they purposefully uploaded a very low res version to prevent that.

    Hate to say, but I don’t see a way around it.

  • LesserAbe@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    1 year ago

    You could write a script to scroll through the document at defined intervals, take screenshots, then have the script edit them together.

    Of course by then, the time you’d have spent would be worth more than $25

    • Isoprenoid@programming.dev
      link
      fedilink
      English
      arrow-up
      11
      ·
      edit-2
      1 year ago

      Of course by then, the time you’d have spent would be worth more than $25

      Yes, but you’d now have a script that can be used in the future as well. Automation is a magical thing, my friend.

  • Luvon@beehaw.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    To semi automate downloading all the pages, try jdownloader 2. You probably need to paste the url into jdownloader manually for jdownloader to load all the downloadable bits it finds on the page.

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Think you’ll have to take screen shots. That’s a pretty good way of stopping you downloading it.

    Or just email and ask them for a copy. It’s not Harry Potter or anything, there’s no reason it shouldn’t be free if you ask the right person.