GithubHelp home page GithubHelp logo

malakymr / pdfrider Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 3.0 3.62 MB

Split, Insert and Extract pages from PDFs with preview. New home for PDFRider (https://pdfrider.codeplex.com/).

License: Other

C# 100.00%
pdf

pdfrider's People

Contributors

malakymr avatar megasaturnv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pdfrider's Issues

PDFRider creates pdftk.exe in process folder - blocked by software restriction policies/applocker

Various processes that are run are run via a copy of pdftk.exe that is copied into the source folder of the PDFs.

For networks where .exes are whitelisted (in their locations) or completely blocked from running in %appdata% (ransomware protections etc) this does not work.

The process is calling something like "pdftk.exe 1.pdf 2.p".

pdftk can read from folder paths.

The fix is to change the "output" entry from just "pg_...pdf" to "c:\folder\pg_.pdf" with quotes to handle spaces - you're allowed to put a path with a mask.

There is also a 1 second delay coded in before the temporary .exe is deleted.

(This is a placeholder - a patch was already prepared for the old repo and needs to be applied here)

Change to newer style file picker

Currently uses the older style which has no access to the side bar options etc.

Should be migrated to System.Windows.Forms

(This is a placeholder - a patch was already created on codeplex and needs to be applied here)

Merge is progressively slow

The merge process seems to create files 1 and 2 first, before adding 3 to the merged file, and so on.

This causes an output file per file to be created which progressively gets slower as file sizes increases.

Requires admin access to access program files folder

When opening a new document PDFRider complains that there 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).

(Issue raised although a fix has been submitted to old repo that needs to be moved here)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.