Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please bring back the function to save image files as .pdf files #4636

Open
chrizilla opened this issue Nov 16, 2024 · 3 comments
Open

please bring back the function to save image files as .pdf files #4636

chrizilla opened this issue Nov 16, 2024 · 3 comments

Comments

@chrizilla
Copy link

Could you please bring back the function to save image files as .pdf files ?

It was removed recently (circa version 3.2 or 3.3 I think) for no apparent reason.
In previous versions I could open an image and save it as a .pdf file.
This was sooo helpful for scanned documents.
Pretty please.

@chrizilla
Copy link
Author

If this function is restored, maybe you could also restore the "save as .txt file function" which apparently was also removed (see #3823).

@GitHubRulesOK
Copy link
Collaborator

GitHubRulesOK commented Nov 16, 2024

Hmm the Save AS PDF and save as text were very variable
AS PDF would fail if using modern image types such as HEIC or WebP or some newer JPEG types.
AS TEXT will often fail in poorly written PDF since the fonts needed to convert from TTF/UTF to plain text were rarely well embedded

It is relatively easy to add TO TEXT as an external call to MuTool or PDFTOTEXT from XPDF/Poppler tools

For images to PDF or ZIP I use a call to FreeVimager as one of the best smallest single exe equivalents. It supports gif tiff HEIC WebP ? and simpler. and exports to both zip (then rename as .cbx if you wish) and also allows for rescale image to PDF page size.

image

Currently My extract page text would need to allow for say Tesseract or MuTool convert image to text so above image as PDF would fail
image

@GitHubRulesOK
Copy link
Collaborator

PS
Forgot to mention the obvious that if you include a copy of say Historic portable XP version 3.1.2 / 3.2 /3.4 then you can quickly switch to old behaviour. As a silly example. convert PDF image to text via historic copy, would as said be pointless but it shows the calling of older version with the old abilities is easy (I keep all my "extras" in a "Plus" folder but adjust as required)

image

ExternalViewers [
	[
		CommandLine = "C:\Users\K\AppData\Local\SumatraPDF\plus\SumatraPDF-3.1.2.exe" -page %p "%1"
		Name = &Historic 3.1.2
		Filter = *.*
		Key = h
	]
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants