JakubMelka / PDF4QT

Open source PDF editor.
https://jakubmelka.github.io/
GNU Lesser General Public License v3.0
713 stars 72 forks source link

Is REAL pdf text editing planned ? #42

Closed githuber-chen closed 4 months ago

githuber-chen commented 1 year ago

Thanks for your great work! REAL pdf text editing means I can edit the original text of the pdf , rather than add cooments text on pdf. There are almost no free pdf editor can achieve this feature,most commercial editor will charge for that.

JakubMelka commented 1 year ago

Hello,

Yes, I am planning this feature! Multiple people requested this feature, so I am considering to postpone 3D PDF development and create fully capable PDF page content editor, where you can edit text, add text, remove text, edit pictures etc. and much more!

githuber-chen commented 1 year ago

Its a good news.

nphotchkin commented 1 year ago

Anyone else who needs a PDF Editor, Libre office Draw will do the job :)

JakubMelka commented 1 year ago

Hello, yes, LibreOffice is usable. It is a hard task to implement PDF editing, and it will take probably 3 more months to finish it. Please be patient :-)

githuber-chen commented 1 year ago

Anyone else who needs a PDF Editor, Libre office Draw will do the job :)

thx, it is a tradeoff. But Libre will change the text front for chinese docs. it is not accepted sometimes.

lukolszewski commented 1 year ago

Seriously, there should be a note on the webpage that the software currently doesn't support text editing, just adding notes. Finding out the software doesn't support editing text what the page says it does (but the page means something else) is not a nice experience.

JakubMelka commented 1 year ago

To @lukolszewski, actually you are right. Where do you think it should be put?

raffaem commented 1 year ago

Anyone else who needs a PDF Editor, Libre office Draw will do the job :)

Last time I checked, LibreOffice Draw tended to mess up the layout of objects in the page, as well as the fonts

GerryT11 commented 9 months ago

@JakubMelka I assume that you came across PDFedit http://pdfedit.cz/en/index.html . It is an outdated open source PDF editor that was actually capable of manipulating content (text and objects) of PDF files. The user interface was very clumsy and (too) difficult, though, but I think, it is worth to look at how they implemented the editing of PDF content.

Editing of PDF text is highly appreciated, which no open source application can do as of today. The only solutions that run on Linux seem to be the proprietary applications Qoppa PDF Studio and Master PDF Editor. I wouldn't consider LibreOffice Draw a PDF editor, as it imports the PDF into LibreOffice text and drawing objects; there you can edit it; then you can export it again to PDF.

JakubMelka commented 9 months ago

Hello @GerryT11, I have looked on that. I dont like how they did it. I would like to generate list of objects (images, paths, texts etc.) to be editable via tools.

Of course, in PDF4QT, I have also access to the content streams.

J0HannJ0 commented 8 months ago

Can you already say when the tool (edit original text of the pdf) will come?

JakubMelka commented 8 months ago

I was focusing on bugfixing now and implementing Blend2D rendering. I will be bugfixing for another week and then I hopefuly resume work on editation.

boustanihani commented 7 months ago

Currently I am using an old free version of Master PDF Editor (4.3.89). This was the last free version and is still available on most linux distros, but sadly has some bugs..

I hope PDF4QT gets similar editing capabilities soon :) Master PDF Editor

@JakubMelka I assume that you came across PDFedit http://pdfedit.cz/en/index.html . It is an outdated open source PDF editor that was actually capable of manipulating content (text and objects) of PDF files. The user interface was very clumsy and (too) difficult, though, but I think, it is worth to look at how they implemented the editing of PDF content.

Editing of PDF text is highly appreciated, which no open source application can do as of today. The only solutions that run on Linux seem to be the proprietary applications Qoppa PDF Studio and Master PDF Editor. I wouldn't consider LibreOffice Draw a PDF editor, as it imports the PDF into LibreOffice text and drawing objects; there you can edit it; then you can export it again to PDF.

pjhfggij commented 6 months ago

I would rename this issue to include all PDF objects, content streams, paths, images and other fantastic creatures. I know it's a lot to ask, but I would really like to edit schematics and other technical drawings directly in PDF without having to resort to inkscape, libreoffice draw or scribus and risk data loss.

JakubMelka commented 6 months ago

Hello @pjhfggij, I am working hard on first version. In first version, images will be editable, text will be editable, very limited editation of paths (setting of appearance, color etc.), and move these graphic items via drag and drop.

pjhfggij commented 6 months ago

@JakubMelka that sounds amazing! I'm hyped!

JakubMelka commented 4 months ago

Hello @pjhfggij, @githuber-chen, @lukolszewski @raffaem, @GerryT11, @J0HannJ0, @boustanihani,

I'm excited to announce the completion of the Editor plugin! This robust tool transforms how you interact with PDF content, offering a suite of editing features designed for flexibility and ease of use:

This feature-packed release is a significant enhancement and requires thorough testing to ensure everything works flawlessly. Please take some time to explore these new capabilities, and don't hesitate to flag any issues you encounter. I'm looking forward to your feedback and hope you find these additions as exciting as I do!

Enjoy the new features, and thank you in advance for your contributions to refining this tool!

Thatoo commented 4 months ago

How can we test it? I don't see any new release.

JakubMelka commented 4 months ago

@Thatoo, you can test it on daily builds (https://github.com/JakubMelka/PDF4QT/actions/runs/9680116094), Linux build is being prepared.

raffaem commented 4 months ago

I have compiled it from master but I don't see any plugins at all

JakubMelka commented 4 months ago

To @raffaem, how is that possible? Did you run PDF4QT Editor? I have renamed the application.

eMPee584 commented 4 months ago

Kudos for tackling this @JakubMelka :tada: however I failed to find any object editing capability, and the toolbar icons are much less recognizable than the ones on the left.. This is version 1.3.7, the newer 1.4.0(.0) require qt6.7 which is not available right now even on debian experimental..

Pdf4QtEditor_2024-07-06_21-54-47

JakubMelka commented 4 months ago

@eMPee584, could you please check what plugins did you have turned on?

eMPee584 commented 4 months ago

@eMPee584, could you please check what plugins did you have turned on?

pdf4qt-plugins-07-07_15-26-27

JakubMelka commented 4 months ago

@eMPee584 , all plugins are turned off. Please check desired checkboxes in the first column (at least for "Editor" plugin) and restart the program.

SnowballV commented 4 months ago

I was confused by eMPee584's comments in regard to failing to find any object editing capability in version 1.3.7, and version 1.4.0.0 requiring Qt 6.7. Why does PDF4QT 1.4.0.0 require Qt 6.7? Is that for compiling from sources, or for running the application?

Running PDF4QT-1.4.0.0-x86_64.AppImage on Kubuntu 22.04, I think all editing capability was there in the menu under Insert. I was able to make annotations for testing: inserting rectangles, highlighting text, underlining text, and adding sticky notes.

Also, I was confused by JakubMelka's comments regarding the plugins. Using PDF4QT-1.4.0.0-x86_64.AppImage, in Tools\ Options\ Plugins I noticed no plugins were displayed as active. I wondered: were the plugins not required for editing, not even the Editor plugin?

I decided to reset the application: Tools\ Reset to Factory Settings. After resetting, PDF4QT Editor now shows all plugins are active. Also, the toolbar is now filled with many more icons. The previous state must have been because of testing PDF4QT 1.3.7 and daily builds earlier on. The reset changed the settings to the version 1.4.0.0 defaults, I suppose.

Edit I'm sorry. I was indeed confused. I overlooked the fact that this issue is essentially about editing page content and not just simple annotations. In PDF4QT-1.4.0.0-x86_64.AppImage, after the reset to factory settings, the option to edit page content is in Tools\ Editor\ Edit page content, and it has an icon in the toolbar as well. I am not sure if it was in Tools before the reset to factory settings. Anyhow, the option to edit page content is now in PDF4QT 1.4.0.0.

JakubMelka commented 4 months ago

OK

raffaem commented 3 months ago

To @raffaem, how is that possible? Did you run PDF4QT Editor? I have renamed the application.

I think the compilation process for Linux is messed up.

I fixed the issue by compiling with PDF4QT_LINUX (see PKGBUILD) and applying this patch (a leading / is missing)