Martin Osieka

'Portable Document Format' FileType Plugin (.PDF)

Recommended Posts

Hm. I'm sure I had this working on a previous laptop, but just can't make it go currently. I've installed the "slightly older" version of ghostscript as suggested, but still showing the same error whenever I try to open any PDF file:

Application version: paint.net 4.2.1

 

System.FormatException: Input string was not in a correct format.

   at OptionBasedFileTypes.OpenFileType.OnLoad(Stream input)

   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 482

   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158

 

Any suggestions?

 

 - Doriima

Share this post


Link to post
Share on other sites

Did you uninstall GhostScript v9.27 before installing the older v9.26? They copy into the same gs folder and I think that the newer version is still trying to load the PDF into Paint.NET.

Edited by HyReZ

Share this post


Link to post
Share on other sites

I would like to confirm that the latest  Ghostscript version 9.27 does not work for opening pdfs with this plugin. 9.26 works.  It took me quite some time to find the solution posted here. Thanks for the wonderful plugin.

Edited by SeriousTube

Share this post


Link to post
Share on other sites

Need help help having problem paint net open pdf file, my pc is window 10

 

Application version: paint.net 4.2.8

System.Exception: Module could not be loaded.

   at OptionBasedFileTypes.OpenFileType.OnLoad(Stream input)

   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 512

   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158

 

How to fix?

Share this post


Link to post
Share on other sites

I install ghostscript 9.26 same unable open pdf file

 

Application version: paint.net 4.2.8

System.FormatException: Input string was not in a correct format.

   at OptionBasedFileTypes.OpenFileType.OnLoad(Stream input)

   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 512

   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158

 

😭

Share this post


Link to post
Share on other sites
1 hour ago, yeebutton said:

I install ghostscript 9.26 same unable open pdf file

Is it just one PDF file that will not load or is that no PDF will load?

Share this post


Link to post
Share on other sites

Installation instructions from the first post in this thread:

 

Quote

Copy the two files OptionBasedLibrary vX.X.dll/.dlc to the Paint.NET\FileTypes\ folder.

 

You have missed this step 😉

Share this post


Link to post
Share on other sites

Same problem, use paint net save pdf file is ok. Use paint net to open pdf file can not.

Application version: paint.net 4.2.8

System.FormatException: Input string was not in a correct format.

   at OptionBasedFileTypes.OpenFileType.OnLoad(Stream input)

   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 512

   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158

 

 

problem.jpg

Share this post


Link to post
Share on other sites

@yeebutton

You have placed the OptionBasedLibrary files into the wrong folder.
It should be placed into paint.net folder not the FileType folder.

 

It works for me!

 

BTW:

Make sure that Ghostscript 9.27 is removed from the gs folder and that Ghostscript 9.26 is placed there.

Edited by HyReZ

Share this post


Link to post
Share on other sites
7 hours ago, HyReZ said:

You have placed the OptionBasedLibrary files into the wrong folder.

Incorrect. That's where the plugin author said to put them. Read the first post.

 

@yeebutton have you set the environment variable? See this post

https://forums.getpaint.net/topic/22863-portable-document-format-filetype-plugin-pdf/?do=findComment&comment=362054

 

Share this post


Link to post
Share on other sites
1 hour ago, jbionic said:

Can we expect the plugin files to be updated accordingly in order to support the newer Ghostscript versions?

 

No, that's not expected. Martin has been offline for some time now.

 

1 hour ago, jbionic said:

Serious security flaws were identified in Ghostscript version 9.26 back some time ago

 

Yes, but luckily you won't be affected by any of those, if you just use Ghostscript via this plugin.  If you're using the older version for other things, be careful!

Share this post


Link to post
Share on other sites

OptionBasedLibrary files I put in program > paint net or program > paint net > file type also same problem I can't use paint net open pdf file.

I install new version Ghostscript 9.50 paint net can not open pdf file, I uninstall 9.50, install Ghostscript 9.26 also same problem. 

😭I really did not know which part went wrong. 😭

Share this post


Link to post
Share on other sites
22 hours ago, Ego Eram Reputo said:

Incorrect. That's where the plugin author said to put them. Read the first post.

I have read the post as well as the readme file that is in the imPDF compressed folder.
I am also stating what is working for me!

 

I have no trouble using the PDF read/write plugin for Paint.NET and I have the OptionBasedLibrary files in the paint.net folder

and the other files of this plugin in the FileTypes folder.
My question, as is yeebutton, why is my set up is working form me and no setup seems to be working for them.

BTW I also have version 7 of the OptionBasedLibrary files in the paint,net folder.

@Ego Eram Reputo

I put Paint.NET on another computer and copy and pasted the OptionBasedLibrary files from my DropBox  to the FileTypes folder as per documentation and works there too as indicated.

@yeebutton

Maybe the the ImPDF.Open.FileType.dll is damaged and needs to be removed and replaced?

Edited by HyReZ

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.