1
Vote

Requires modify access to \program files\pdfrider\

description

When opening a new document PDFRider complains that their is a problem with the document, and various options (Burst, Insert etc) are greyed out.

The user has no local admin access (as it should be).

When giving the user Modify access to \Program Files\PDFRider\ it works fine thus something is being edited in this folder.

Running processmonitor I find that pdftk.exe is producing a pdfdata.txt in that folder, and because its failing to write there pdfrider fails to read it.

PDFAction.cs

    // File generated by the dump_data function of pdftk:
    //   it contains various informations about the pdf file.
    private const string DUMP_DATA_FILE_NAME = "pdfdata.txt";
    private static string DUMP_DATA_FILE = Path.Combine(BASE_DIR, DUMP_DATA_FILE_NAME);

Since this folder can be specified it should go into temp. A few other things do not write to temp either (pdftk's output) which I have fixed in a previous (yet unchecked path).


I will be submitting a patch for this issue soon, though it seems like franceot is not maintaining anymore.

If anyone else needs these fixes, post here and I may consider a fork as there are other issues we need to clear up.

file attachments

comments

malakym wrote Dec 1, 2016 at 12:12 PM

Simple change

PDFAction.cs

// private const string DUMP_DATA_FILE_NAME = "pdfdata.txt";
// private static string DUMP_DATA_FILE = Path.Combine(BASE_DIR, DUMP_DATA_FILE_NAME);
private const string DUMP_DATA_FILE_NAME = "pdfrider_pdfdata.txt";
private static string DUMP_DATA_FILE = Path.Combine(System.IO.Path.GetTempPath(), DUMP_DATA_FILE_NAME);