Giter Site home page Giter Site logo

haikuarchives / bepdf Goto Github PK

View Code? Open in Web Editor NEW
26.0 11.0 23.0 10.55 MB

BePDF is a PDF viewer. Besides viewing, it supports annotating and user-defined bookmarking for unencrypted PDFs.

Home Page: https://haikuarchives.github.io/BePDF/

C++ 94.78% C 4.88% Shell 0.01% Makefile 0.33%
haiku hacktoberfest

bepdf's Introduction

BePDF

This is a PDF reader that is based on XPDF 4.0. It handles PDF files up to PDF version 1.7 (Adobe Reader 9+).

BePDF Screenshoot

List of features:

  • Viewing of encrypted and password protected PDF 1.7 files.
  • Opens file dropped on window.
  • Navigation (with keyboard, toolbar, dragging with the mouse, mouse wheel, links).
  • Displays annotations.
  • Zooming (in/out, selecting a rectangle with the mouse).
  • Rotating the page.
  • Can show a page list, bookmarks and attachments.
  • Window mode or fullscreen mode.
  • Japanese, Chinese (simplified, traditional) and Korean font support.
  • Renders embedded fonts (Type 1, Truetype) with FreeType 2 library.
  • Multithreaded (rendering is done in a separate thread).
  • Editing (Annotations can be added to an unencrypted PDF file)
  • File Attachment Annotations and Attachments can be saved.
  • Printing (range of pages; even or odd pages only; reverse or in order).
  • Searching text.
  • Copying text or graphics (via drag and drop to other applications (e.g. Tracker) and into the clipboard).
  • Session management for PDF files on BFS (open file with the settings when it was last closed).
  • Information (about the file, security, fonts used).

bepdf's People

Contributors

aarroyoc avatar akujiism avatar claire50 avatar diversys avatar hawerpl avatar jmairboeck avatar kapix avatar mt819 avatar oscarl avatar owenca avatar pulkomandy avatar rogfanther avatar twofx avatar waddlesplash avatar yazgoo 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bepdf's Issues

Status bar of creating new PDF file

When a file is Saved As a status bar "Saving copy of PDF file:" appears but it shows nothing and stays there even when the new PDF is already created.

BePDF can't save annotated files in-place (forced Save As)

Creator: Kevin Field
URL: http://sourceforge.net/p/bepdf/bugs/4

I appreciate this feature in the sense that it's a bit safer, but on the other hand, I wouldn't have lost nearly as much work due to the crashing bug if I were able to keep with the typical habit of saving every minute or so, which this safety feature prevents. Maybe there's a best-of-both worlds where it can rename the current file to " (copy 2)" or whatever and then save with the original filename whenever you hit Alt+S? That would make this much more useful, and even safer, for marking up PDFs.

hrev45525 gcc4hybrid.

Annotations aren't saved

Saving a file after annotations were added, those annotations aren't saved and are therefore missing when the file is opened again.

Merge docs branch into master

The "docs" branch should probably be merged into the master branch.

We have the problem, that building the PDF versions of the user docs needs ghostscript, which isn't available for Haiku at this time. So currently we'd only have the HTML version. While it may be nice for a PDF viewer to have the doc as PDF, I think going HTML-only is OK.

I also find the separation of headers, footers and templates, and having a complicated script to build it all, is overkill. How about (in the future) we just do static HTML? We can keep the "docs" branch around if we ever want to go back the convoluted way...

Reproduceable BePDF crash saving second round with annotations

Creator: Kevin Field
URL: http://sourceforge.net/p/bepdf/bugs/3

The following crashes BePDF in Haiku during saving:

  1. open a PDF file (e.g. simple.pdf)
  2. add a comment text annotation
  3. right-click, choose Properties, type "comment 1"
  4. save as simple2.pdf and close BePDF
  5. open simple2.pdf
  6. add a comment text annotation
  7. right-click, choose Properties, type "comment 2"
  8. save as simple3.pdf

Following these steps exactly, simple3.pdf is actually saved with both comments, but it still crashes (case 1).

I had originally been marking up a PDF sent to me generated using Mac OS X 10.5.7 Quartz PDFContext when I first encountered this, but since then I have reproduced this using simple.pdf, which I generated using StyledEdit and the PDF Writer driver.

Trying with the PDF sent to me but following similar steps, I've had (also reproduceable) the unfortunate result that it produces a PDF but without my latest annotations (this is both if I immediately choose to save a debug report, or try to debug, save the debug report, and then tell the debugger to continue)--in fact, the file size is identical to the version just opened containing the first round of annotations. So I'm attaching that PDF too.

hrev45525 gcc4hybrid, with BePDF installed using installoptionalpackage.

Missing annotation icons

The following annotation vector icons don't exist (yet):

ANNOT_LINK
ANNOT_LINE
ANNOT_STAMP
ANNOT_INK
ANNOT_POPUP
ANNOT_FILEATTACHMENT
ANNOT_SOUND
ANNOT_MOVIE
ANNOT_WIDGET
ANNOT_PRINTERMARK
ANNOT_TRAPNET

cc @humdingerb, in case he wants to try and tackle those

PDFView::DrawBackground feels slow

For some reason right mouse selection feels slow. It was the same on BeOS so it's not a regression.
Selection mode in ShowImage doesn't feel slow.

Drawing error of document border

Wave a window in front of BePDF showing a document that is zoomed so you see the black border around it. You'll see some drawing corruption at the left and top border. Maybe some off-by-one error?
border

Attachment ColumnListView does not actually show attached files

I used pdflatex (pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015)) and the attachfile package (like this) to generate a pdf file with attachments. LaTeX inserts annotations into the pdf for each file included. BePDF correctly picks up the fact that they are annotations for file attachment and actually gives the option to save the attachments, so it knows how to handle them. However, annotations are not shown in the attachments view.
test.pdf is the file I used to test this.

Closing without asking

A PDF file with newly added annotations closes without asking. It would be better if it offered to save the file as a new one.

Multiple annotation problems

Often, when adding a key text annotation, the right side (head) of the key is cut off, due to the size of the annotation bounding box being too small. The rest of the key can be seen if the box is resized, but by default it is too small to show the entire graphic.

badkey

In addition, the text in the annotation system of BePDF is difficult to use. If text with too big a font size is made into an annotation, the annotation is cut off. The resize box in the bottom-right of all annotations resizes with an "anchor corner" of the top-right, meaning the annotation scales downwards and leftwards, instead of downwards and rightwards, as intuitively expected. This also leads to annotations being cut-off; additionally, the resize box is extremely difficult to click.

badtext
The annotation images themselves are old 90's style BeOS icons, and look quite pixelized when they are enlarged to be the annotation on the document, as opposed to an icon in the toolbar.

badicon

hrev48620

"Find next" shouldn't show find window

Choosing "Find next" shouldn't open the find window, unless there isn't a search string from a former search. It should just jump to the next match in the text.

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.