I have to process a lot of information from different pdf. I already have the code to download all the files, but i'm stuck in the part where i have to open the files with "Import".

For example: http://www.hidraulica.gob.ar/precipitaciones_historial/QzAzMTFfMjAxNg==

If i tried to open the file using:


Mathematica just crash... i got an "Internal self-test-error: winFonts|c|982"

I was able to import the file using the format "Plaintext", but i couldn't save the data as a csv, because the "spaces" aren't constant (that's why i wanted to import the file as a pdf to get the coordinates from the texts)

| improve this question | | | | |
  • $\begingroup$ Mathematica 8.0.4 on Windows 7 x64 gets completely frozen after an attempt to import this PDF file (both from the URL and as a local file). Obviously it is a bug in the PDF importer. $\endgroup$ – Alexey Popkov Jun 8 '17 at 7:30
  • $\begingroup$ Please report this to the tech support. $\endgroup$ – Alexey Popkov Jun 8 '17 at 7:31
  • $\begingroup$ You do understand that link provided is not an actual pdf, but leads you to a pdf view. You need to feed Import with a url with .pdf extention in order to work. for example Import["http://www.unipi.gr/faculty/mbouts/sim/Intro_to_Mathematica08.pdf","PDF"] $\endgroup$ – Fierce82 Jun 8 '17 at 7:48
  • $\begingroup$ @TomZinger Actually Mathematica successfully follows redirects and indeed imports the PDF (not a web page or a preview). As I mentioned above, the same happens when one attempts to import a local copy of the file. $\endgroup$ – Alexey Popkov Jun 8 '17 at 9:37
  • $\begingroup$ @Alexey Popkov i was able to import the pdf file (removing manually an element from the pdf). But the texts moved from their original places... i could make an OCR, but i need a way to automatically import the pdf as an image, without distortions $\endgroup$ – Gonza_ Jun 8 '17 at 17:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.