Coder Social home page Coder Social logo

cgogolin / penandpdf Goto Github PK

View Code? Open in Web Editor NEW
63.0 63.0 22.0 29.02 MB

Pen&PDF is a PDF viewer and annotation app for Android built on top of MuPDF.

License: GNU Affero General Public License v3.0

Emacs Lisp 0.01% Makefile 0.54% C 77.01% Shell 0.06% Java 11.15% Objective-C 10.22% Batchfile 0.05% C++ 0.42% Python 0.08% JavaScript 0.46%

penandpdf's People

Contributors

ccxvii avatar cgogolin avatar chris-liddell avatar kjk avatar mwoehrmann avatar patheticpat avatar robinwatts avatar sebras avatar seokgyo avatar slmistry avatar woutershep avatar zeniko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

penandpdf's Issues

Saving error with annotated document

I encounter saving error from time to time.
The procedure to save the file seems to go well, no error, but when trying to close the document, I am prompted with a «save?» dialog box asking to save the changes, as if the document wasn't previously saved. Answering Yes (save) or No (close without saving) has the same result : reopening the document shows no annotations.
This error is not systematic according to the file. However, i would occurs or not with similar pdf source (coming from the same editor). I don't see a pattern in thoses files.
Thanks!
(reading on tablet Acer Iconia A3-A20, Android 4.4.2)

New feature: Relocation of notes. Also, rotation?

A feature that could be interesting would be to be able to change the size and/or relocate notes taking with the pen. To avoid interference while writing, it could be activated somehow.
I don't know whether I or anyone will use it much, but I have just realized that it would be nice sometimes. At least, to move notes.

Add to F-Droid

F-Droid is a store of FOSS apps for Android. As your app is licensed under GPL v3, could you list your app in F-Droid database? Thank you very much!

When using an S-Pen to select and highlight text two annotations are produced

I am using a Galaxy Note 8.0 with an S-Pen and Pen&Pdf. When using the S-Pen only to first point to a text and then highlight a text two annotations are generated:

  1. A pencil annotation (not visible but listed in annotations)
  2. A higlighting annotation

If I do the same with selecting the text with the finger and then using the S-Pen to extend the highlighting as needed, as expected only one highlighting annotation is generated.

Feature Request: Scrolling vertical and full view mode

Thanks for your work first.
I've two annotations: 1. A option to scroll the document vertical would be nice.
2. A full view mode that only shows the document without the status bar from android and without the toolbar from the pdf reader.
Thanks and greetings to cologne ;)

Edit: I discovered, that a full view mode already exist. Sorry for that. So i can only add small notice. An automatic full view mode would be nice. But its really a "nice-to-have" extra. Not essential.

Alternative download source

Would you mind making the .apk available here at Github (e.g. attaching it to releases/), so folks without playstore get a chance to grab it? I'd offer to serve it via my repo then (updates included as long as you provide the APKs). Thanks in advance!

No rule to make target when trying to build in Android

I am trying to build the source code in Android Studio and it keeps throwing the *** No rule to make target for ../pdf-js.c needed by pdf-js.o . Stop.

I am having a hard time trying to fix this. How do I exactly run this source code?

Full Error:

Build command failed.
Error while executing process C:\Users\SITF01\AppData\Local\Android\Sdk\ndk\21.0.6113669\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\SITF01\Desktop\ndk-samples\kotlin-app\SITFPDFApp\app\src\main\cpp\jni\Android.mk NDK_APPLICATION_MK=C:\Users\SITF01\Desktop\ndk-samples\kotlin-app\SITFPDFApp\app\src\main\cpp\jni\Application.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 APP_PLATFORM=android-22 NDK_OUT=C:/Users/SITF01/Desktop/ndk-samples/kotlin-app/SITFPDFApp/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=C:\Users\SITF01\Desktop\ndk-samples\kotlin-app\SITFPDFApp\app\build\intermediates\ndkBuild\debug\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
Android NDK: WARNING:C:\Users\SITF01\Desktop\ndk-samples\kotlin-app\SITFPDFApp\app\src\main\cpp\jni\Android.mk:mupdfcore: LOCAL_LDLIBS is always ignored for static libraries
md "C:\Users\SITF01\Desktop\ndk-samples\kotlin-app\SITFPDFApp\app\build\intermediates\ndkBuild\debug\lib\arm64-v8a" >NUL 2>NUL || rem
C:/Users/SITF01/AppData/Local/Android/Sdk/ndk/21.0.6113669/build//../prebuilt/windows-x86_64/bin/echo.exe [arm64-v8a] "Gdbserver ": "[aarch64-linux-android] C:\Users\SITF01\Desktop\ndk-samples\kotlin-app\SITFPDFApp\app\build\intermediates\ndkBuild\debug\lib/arm64-v8a/gdbserver"
copy /b/y "C:\Users\SITF01\AppData\Local\Android\Sdk\ndk\21.0.6113669\build\..\prebuilt\android-arm64\gdbserver\gdbserver" "C:\Users\SITF01\Desktop\ndk-samples\kotlin-app\SITFPDFApp\app\build\intermediates\ndkBuild\debug\lib\arm64-v8a\gdbserver" > NUL
C:/Users/SITF01/AppData/Local/Android/Sdk/ndk/21.0.6113669/build//../prebuilt/windows-x86_64/bin/echo.exe [arm64-v8a] "Gdbsetup ": "C:\Users\SITF01\Desktop\ndk-samples\kotlin-app\SITFPDFApp\app\build\intermediates\ndkBuild\debug\lib/arm64-v8a/gdb.setup"
C:/Users/SITF01/AppData/Local/Android/Sdk/ndk/21.0.6113669/build//../prebuilt/windows-x86_64/bin/echo.exe "set solib-search-path C:/Users/SITF01/Desktop/ndk-samples/kotlin-app/SITFPDFApp/app/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a" > C:\Users\SITF01\Desktop\ndk-samples\kotlin-app\SITFPDFApp\app\build\intermediates\ndkBuild\debug\lib/arm64-v8a/gdb.setup
C:/Users/SITF01/AppData/Local/Android/Sdk/ndk/21.0.6113669/build//../prebuilt/windows-x86_64/bin/echo.exe "directory C:/Users/SITF01/AppData/Local/Android/Sdk/ndk/21.0.6113669/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot jni/andprof ../../include ../../source/fitz ../../source/pdf C:/Users/SITF01/Desktop/ndk-samples/kotlin-app/SITFPDFApp/app/src/main/cpp/jni ../../thirdparty/jbig2dec ../../thirdparty/openjpeg/libopenjpeg ../../thirdparty/jpeg ../../thirdparty/mujs ../../thirdparty/zlib ../../thirdparty/freetype/include ../../source/xps ../../source/cbz ../../source/img ../../source/tiff ../../scripts/freetype ../../scripts/jpeg ../../scripts/openjpeg ../../generated ../../resources" >> C:\Users\SITF01\Desktop\ndk-samples\kotlin-app\SITFPDFApp\app\build\intermediates\ndkBuild\debug\lib/arm64-v8a/gdb.setup
md "C:\Users\SITF01\Desktop\ndk-samples\kotlin-app\SITFPDFApp\app\build\intermediates\ndkBuild\debug\obj\local\arm64-v8a\objs\mupdf" >NUL 2>NUL || rem
C:/Users/SITF01/AppData/Local/Android/Sdk/ndk/21.0.6113669/build//../prebuilt/windows-x86_64/bin/echo.exe [arm64-v8a] "Compile ": "mupdf <= mupdf.c"
C:/Users/SITF01/AppData/Local/Android/Sdk/ndk/21.0.6113669/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -MMD -MP -MF C:/Users/SITF01/Desktop/ndk-samples/kotlin-app/SITFPDFApp/app/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/objs/mupdf/mupdf.o.d -target aarch64-none-linux-android22 -fdata-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-canonical-prefixes --sysroot C:/Users/SITF01/AppData/Local/Android/Sdk/ndk/21.0.6113669/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -D_FORTIFY_SOURCE=2 -fpic -O2 -DNDEBUG -Ijni/andprof -I../../include -I../../source/fitz -I../../source/pdf -IC:/Users/SITF01/Desktop/ndk-samples/kotlin-app/SITFPDFApp/app/src/main/cpp/jni -DANDROID -Wformat -Werror=format-security -c C:/Users/SITF01/Desktop/ndk-samples/kotlin-app/SITFPDFApp/app/src/main/cpp/jni/mupdf.c -o C:/Users/SITF01/Desktop/ndk-samples/kotlin-app/SITFPDFApp/app/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/objs/mupdf/mupdf.o
md "C:\Users\SITF01\Desktop\ndk-samples\kotlin-app\SITFPDFApp\app\build\intermediates\ndkBuild\debug\obj\local\arm64-v8a" >NUL 2>NUL || rem

make: *** No rule to make target 'C:/Users/SITF01/Desktop/ndk-samples/kotlin-app/SITFPDFApp/app/src/main/cpp/jni/../../../source/pdf/js/pdf-js.c', needed by 'C:/Users/SITF01/Desktop/ndk-samples/kotlin-app/SITFPDFApp/app/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/objs/mupdfcore///__/source/pdf/js/pdf-js.o'. Stop.

Pen&PDF has problem with form widgets and passwords with special characters

Due to limitations in the used version of MuPDF, Pen&PDF cannot correctly decode/encode strings in various form widgets (text fields, multiple choice widgets, ...) and and passwords (for protected pdfs). There is no easy way to work around this. Hopefully a future version of MuPDF will improve in this respect.

Use better print API

Pen&PDF could use this API instead of cloud print. There's some support in the "AndroidX" support library as well, to keep compatibility with much older devices.

Looks like this tutorial might be applicable:

Also relevant to #8

Feature Request: Invert Colors

It would be nice to have the option to invert colors when showing a document. It is more pleasant to read with a black background on an LCD screen.

Thanks!

Renato.

Error when opening or Creating document

Please i would like to know what ide you used in creating the project, i converted to android studio because eclipse was giving bugs and i was getting a runtime error throwing unsatified exception, something about the MUpdfcore.java

Alternatives

Thanks a lot @cgogolin for developing this useful app!

As it is no longer actively maintained, I wonder if you or anyone else knows some good alternatives (that are ideally available on f-droid)?

Internet permission;

I couldn't get why the app uses internet permission. Is it possible to remove the permission?

Feature Request: Custom additional pages

Would it be possible to add a custom additional page instead of an all empty page ? Would be very nice to have a page with lines for notes, or a grid for calculations or a sketch. Or a music sheet ... You get the idea.

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.