I'm new to Mathematica, so I don't really understand some of the coding.

Each time I enter this, or a variant of this code Import["G:\\My Drive\\School\\Textbook/VCEMathMethods34.pdf", "Pages"]

I get this response: Import::general: Expected cross reference table Import::general: Expected cross reference table Import::general: Could not find document trailer General::stop: Further output of Import::general will be suppressed during this calculation.

I'm using windows, so I can't use the MAC OSX preview trick either :/


  • $\begingroup$ Your filename seems of to me. It seems like you have a directory "G:\\My Drive\\School" and a filename :"Textbook/VCEMathMethods34.pdf" If that is so rename it to something more sane, or more likely use "\\"instead of "/" for your windows directory(not a windows user so this might be false). $\endgroup$ – Ruud3.1415 Sep 18 '18 at 9:31
  • $\begingroup$ The filename is VCEMathMethods34.pdfwhen I copied it into Mathematica it automatically entered those slashes, I'll play around with them though. Also, even when I try to import through the menus, insert > file it still comes up with the same error $\endgroup$ – bailey12319 Sep 18 '18 at 10:38
  • $\begingroup$ Did you try Import["G:\\My Drive\\School\\Textbook\\VCEMathMethods34.pdf", "Pages"] as @Ruud3.1415 recommended? $\endgroup$ – Ulrich Neumann Sep 18 '18 at 10:48
  • $\begingroup$ Use the menu command Insert | File Path... | <selected file> to get the appropriate pathname separator for your system. $\endgroup$ – Bob Hanlon Sep 18 '18 at 12:53
  • $\begingroup$ In my experience that error usually means that the PDF has some security set on it. Check the PDF to see if there are any restrictions. $\endgroup$ – Edmund Nov 24 '18 at 20:02

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.