Importing PDF files in version 8 Trial
- To: mathgroup at smc.vnet.net
- Subject: [mg114842] Importing PDF files in version 8 Trial
- From: "E. Martin-Serrano" <eMartinSerrano at telefonica.net>
- Date: Mon, 20 Dec 2010 00:38:39 -0500 (EST)
Hi, I am trying V8 and having problems in importing some files. For example, in the documentation we find about the command *Import* - Import content from password-protected PDF files. - <http://reference.wolfram.com/mathematica/ref/Import.html> Import and <http://reference.wolfram.com/mathematica/ref/Export.html> Export support PDF Version 1.5 and *earlier*. - <http://reference.wolfram.com/mathematica/ref/Import.html> Import["file.pdf"] converts the pages of a PDF file to Mathematica vector graphics. - <http://reference.wolfram.com/mathematica/ref/Import.html> Import["file.pdf"] imports a PDF file, returning all pages as a list of graphics. The following, however, does not work in Version 8 /Trial (it renders *$Failed*) but the same construct does work in version 7.01. Module[{fullfilename, filename = "Marshalian-Walrasian = Equilibrium.pdf" }, fullfilename = FileNameJoin[{NotebookDirectory[],filename}]; pdffile =Import[fullfilename]] The construct, anyway, works for other files in V8. "Marshalian-Walrasian Equilibrium.pdf" is a version 1.3 PDF file (password-protected, as I think), but according to WRI, PDF files version 1.5 and *earlier*, are supported. I am also having problems in importing my own MS *.rtf files (Office 2003) although I am able to import my own *.xls files made with office 2003 too. Any help? E. Martin-Serrano ___________________________________________________ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, E. Mart=EDn-Serrano liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Este mensaje y los ficheros adjuntos pueden contener informaci=F3n confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente pueden estar protegidos por secreto profesional y en cualquier caso el mensaje en su totalidad est=E1 amparado y protegido por la legislaci=F3n vigente que preserva el secreto de las comunicaciones, y = por la legislaci=F3n de protecci=F3n de datos de car=E1cter personal. Si usted = recibe este correo electr=F3nico por error, gracias por informar = inmediatamente al remitente y destruir el mensaje. Al no estar asegurada la integridad de = este mensaje sobre la red, E. Mart=EDn-Serrano no se hace responsable por su contenido. Su contenido no constituye ning=FAn compromiso para el = remitente, salvo ratificaci=F3n escrita por ambas partes. Aunque se esfuerza al = m=E1ximo por mantener su red libre de virus, el emisor no puede garantizar nada = al respecto y no ser=E1 responsable de cualesquiera da=F1os que puedan = resultar de una transmisi=F3n de virus. ------=_NextPart_000_0000_01CB9F69.1B5B1E90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Sun-Content-Length: 8792 <html xmlns:v="urn:schemas-microsoft-com:vml" = xmlns:o="urn:schemas-microsoft-com:office:office" = xmlns:w="urn:schemas-microsoft-com:office:word" = xmlns:st1="urn:schemas-microsoft-com:office:smarttags" = xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; = charset=iso-8859-1"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <o:SmartTagType = namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/> <!--[if !mso]> <style> st1\:*{behavior:url(#default#ieooui) } </style> <![endif]--> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:Arial; color:windowtext;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> </head> <body lang=EN-US link=blue vlink=purple> <div class=Section1> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'>Hi,<o:p></o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'>I am trying V8 and having problems in importing some files. For example, in the documentation we find about the command = *Import*<o:p></o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'>- Import content from password-protected PDF = files.<o:p></o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'>- <a = href="http://reference.wolfram.com/mathematica/ref/Import.html"><font color=black><span = style='color:windowtext;text-decoration:none'>Import</span></font></a> and <a = href="http://reference.wolfram.com/mathematica/ref/Export.html"><font color=black><span = style='color:windowtext;text-decoration:none'>Export</span></font></a> support PDF Version 1.5 and *earlier*.<o:p></o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'>- <a = href="http://reference.wolfram.com/mathematica/ref/Import.html"><font color=black><span = style='color:windowtext;text-decoration:none'>Import</span></font></a>[= "file.pdf"] converts the pages of a PDF file to Mathematica vector = graphics.<o:p></o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'>- <a = href="http://reference.wolfram.com/mathematica/ref/Import.html"><font color=black><span = style='color:windowtext;text-decoration:none'>Import</span></font></a>[= "file.pdf"] imports a PDF file, returning all pages as a list of = graphics.<o:p></o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'>The following, however, does not work in Version 8 /Trial (it = renders *$Failed*) but the same construct does work in version = 7.01.<o:p></o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'>Module[{fullfilename, filename = "Marshalian-Walrasian Equilibrium.pdf" }, fullfilename = FileNameJoin[{NotebookDirectory[],filename}]; pdffile = =Import[fullfilename]]<o:p></o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'>The construct, anyway, works for other files in = V8.<o:p></o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'>"Marshalian-Walrasian Equilibrium.pdf" is a version = 1.3 PDF file (password-protected, as I think), but according to WRI, PDF files = version 1.5 and *earlier*, are supported. I am also having problems in = importing my own MS *.rtf files (Office 2003) although I am able to import my own = *.xls files made with office 2003 too.<o:p></o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'>Any help?<o:p></o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'><o:p> </o:p></span></font></p> <p class=MsoNormal><st1:PersonName w:st="on"><font size=3 = face="Times New Roman"><span style='font-size:12.0pt'>E. = Martin-Serrano</span></font></st1:PersonName><o:p></o:p></p> <p class=MsoNormal><font size=2 face=Arial><span = style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=2 face=Arial><span = style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=2 face=Arial><span = style='font-size:10.0pt; font-family:Arial'>___________________________________________________</s= pan></font><o:p></o:p></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'> <o:p></o:p></span></font></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span = style='font-size: 12.0pt'>This e-mail and the documents attached are confidential and = intended solely for the addressee; it may also be privileged. If you receive this = e-mail in error, please notify the sender immediately and destroy it. As its = integrity cannot be secured on the Internet, E. Mart=EDn-Serrano liability = cannot be triggered for the message content. Although the sender endeavors to = maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages = resulting from any virus transmitted. <br> <br> </span><span lang=ES-TRAD>Este mensaje y los ficheros adjuntos pueden = contener informaci=F3n confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente pueden estar protegidos por secreto = profesional y en cualquier caso el mensaje en su totalidad est=E1 amparado y = protegido por la legislaci=F3n vigente que preserva el secreto de las comunicaciones, = y por la legislaci=F3n de protecci=F3n de datos de car=E1cter personal. Si usted = recibe este correo electr=F3nico por error, gracias por informar = inmediatamente al remitente y destruir el mensaje. Al no estar asegurada la integridad de = este mensaje sobre la red, E. Mart=EDn-Serrano no se hace responsable por su contenido. Su contenido no constituye ning=FAn compromiso para el = remitente, salvo ratificaci=F3n escrita por ambas partes. Aunque se esfuerza al = m=E1ximo por mantener su red libre de virus, el emisor no puede garantizar nada al = respecto y no ser=E1 responsable de cualesquiera da=F1os que puedan resultar de = una transmisi=F3n de virus. </span></font><font size=2 face=Arial><span = lang=ES-TRAD style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p= > <p class=MsoNormal><font size=3 face="Times New Roman"><span = lang=ES-TRAD style='font-size:12.0pt'><o:p> </o:p></span></font></p> </div> </body> </html> ------=_NextPart_000_0000_01CB9F69.1B5B1E90--