mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-26 01:26:00 +03:00
[GH-ISSUE #1004] Bug: Cannot archive pdf page. #629
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#629
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TheAnachronism on GitHub (Jul 25, 2022).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1004
Describe the bug
I was trying to archive a URL that just returned a PDF file. I have only singlefile and PDF enabled, but archivebox didn't archive anything except the title, headers, and the favicon.
Steps to reproduce
Screenshots or log output
Result of doing the same with the cli:
ArchiveBox version
@TheAnachronism commented on GitHub (Jul 25, 2022):
As archive box is seen as a self-hosted version of archive.org and archive.org has no problems archiving a PDF I do believe that archive box should be able to do that too.
@pirate commented on GitHub (Jul 26, 2022):
You need to enable the wget extractor method to download staticfiles directly using their URL. The PDF extractor is designed to convert pages that aren't PDF into PDF archives, it's redundant if the file is already a PDF (which is what the wget extractor is designed for, staticfiles).
@TheAnachronism commented on GitHub (Jul 27, 2022):
…
I could have come up with that solution myself 🤦♂️
Thanks for the quick answer