简体   繁体   English

如何打开受编程保护的 PDF 文件 [不受密码保护]

[英]How to open a programmatically protected PDF file [Not password protected]

There is a android app named taaghche which you can purchase and read pdf books etc...有一个名为taaghche的 android 应用程序,您可以购买和阅读 pdf 书籍等...

I purchased a book and I want to be able to read it on PC not android, and also be able to highlight the text (which is not allowed in the app), But The app stores the pdfs so that the pdf files only opens in the app itself and if you try to open the pdf in another device you'll get the error:我购买了一本书,我希望能够在 PC 上而不是 android 上阅读它,并且还能够突出显示文本(应用程序中不允许这样做),但是应用程序存储了 pdf,因此 pdf 文件只能在应用程序本身,如果您尝试在另一台设备上打开 pdf,您将收到错误消息:

在此处输入图像描述

Note that the app actually stores the pdf along with a file with no extension and the same name.请注意,该应用程序实际上存储了 pdf 以及一个没有扩展名和相同名称的文件。

I think the app uses the file with no extension to give permission to the pdf file to be opened.我认为该应用程序使用没有扩展名的文件来授予要打开 pdf 文件的权限。

Here is the two files in a zip to download and have a look.这是 zip 中的两个文件下载并查看。

http://langfox.ir/download/pdfs.zip http://langfox.ir/download/pdfs.zip

Any idea or solution or clue to open this file is greatly appreciated.非常感谢打开此文件的任何想法或解决方案或线索。

The pdf looks encoded/encrypted (I maybe wrong) but I would expect to see a Pdf header, and I don't. pdf 看起来已编码/加密(我可能错了),但我希望看到 Pdf header,但我没有。

The file without an extension is a JFIF file (JPEG File Interchange Format), if you change the extension to Jpg, or JFIF, you should be able to view it as an image.没有扩展名的文件是 JFIF 文件(JPEG File Interchange Format),如果你把扩展名改为 Jpg 或 JFIF,你应该可以将其作为图像查看。 Or in C# you can just use the Bitmap or Image class to load it或者在 C# 中,您可以使用BitmapImage class 来加载它

Image.FromFile(theFileName);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM