AnaviTechnology / anavi-docs

Documents for all ANAVI open source hardware products
http://anavi.technology/
64 stars 34 forks source link

anavi-macro-pad-2-datasheet.pdf doesn't seem to be a PDF file #38

Closed UNIVAC-Colonel-Panic closed 2 years ago

UNIVAC-Colonel-Panic commented 2 years ago

https://github.com/AnaviTechnology/anavi-docs/blob/master/anavi-macro-pad-2/anavi-macro-pad-2-datasheet.pdf

I've tried a few different ways to retrieve this, including wget, but it seems to be an HTML document. Acrobat complains when it tries to open it.

image

Excerpt of first few lines, including several blank lines at the beginning.


<!DOCTYPE html>
<html lang="en" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark">
  <head>
    <meta charset="utf-8">
  <link rel="dns-prefetch" href="https://github.githubassets.com">
  <link rel="dns-prefetch" href="https://avatars.githubusercontent.com">
  <link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com">
  <link rel="dns-prefetch" href="https://user-images.githubusercontent.com/">
  <link rel="preconnect" href="https://github.githubassets.com" crossorigin>
  <link rel="preconnect" href="https://avatars.githubusercontent.com">
leon-anavi commented 2 years ago

Hi @UNIVAC-Colonel-Panic,

Thanks for the feedback. I am not sure what might be causing it as on my setup with Ubuntu Linux I don't have issues opening the pdf file through web browser like Chrome, Firefox and Acrobat reader.

The PDF has been generated from the md file with the popular open source tool pandoc:

pandoc anavi-macro-pad-2-datasheet.md -f markdown-implicit_figures  -s -o anavi-macro-pad-2-datasheet.pdf

After opening the URL https://github.com/AnaviTechnology/anavi-docs/blob/master/anavi-macro-pad-2/anavi-macro-pad-2-datasheet.pdf did you click the download button to get the file?

image

I think that if you use wget directly with the URL https://github.com/AnaviTechnology/anavi-docs/blob/master/anavi-macro-pad-2/anavi-macro-pad-2-datasheet.pdf you may end up downloading the HTML code of the GitHub web page rather than the raw file which in this case is the PDF: https://github.com/AnaviTechnology/anavi-docs/raw/master/anavi-macro-pad-2/anavi-macro-pad-2-datasheet.pdf

Best regards, Leon