From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: editing a PDF [Re: emacs 30.5.0 editing epub] Date: Tue, 21 Mar 2023 13:28:22 +0700 Message-ID: References: <877cvhqo9p.fsf@web.de> <4a7a0baf-677b-118c-fa6c-e50d054800e7@posteo.de> <87o7osp4ck.fsf@web.de> <704a63ef-c56d-f892-1e3f-9ee0f884b038@mousecar.com> <87y1nsmgwz.fsf@web.de> <0e6c9b8a-b70f-d244-c031-68c0c58dca86@mousecar.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5357"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: gebser@mousecar.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 21 07:29:15 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1peVUg-0001AW-NS for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Mar 2023 07:29:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peVU6-0007ie-Oa; Tue, 21 Mar 2023 02:28:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peVU5-0007iR-FH for help-gnu-emacs@gnu.org; Tue, 21 Mar 2023 02:28:37 -0400 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peVU3-0006l2-Mg for help-gnu-emacs@gnu.org; Tue, 21 Mar 2023 02:28:36 -0400 Original-Received: by mail-wr1-x42a.google.com with SMTP id r29so12485626wra.13 for ; Mon, 20 Mar 2023 23:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679380113; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LToXUtGaSD/5gjU+WmXlzsbvSC//lfuRki4rkNszvsM=; b=koQwm5HnDnieva1wfHwWnhnhEkA4Ajvyxb/kKdnSqgXD66b12V8gaT9Ks6jXs/25Od cWLTJPNYmt48GYDy5znpIr5y7d4VR8y0/5L2d+FpskA7H3ngvQRyttEXKp7/M/bETB+a twZALYePPdiItyTFcghgQ8+A4QiJ7CQ2b6NlJf1xGLmYiwsN0JdJA9VHNn4Jsyt990g7 fpRlslnEIxklqBKDGUSXk3fL/+qf60QWPJN8YMtdSJlDuqWpf/ZmOQ6jqN1v+I5VoGE3 Fl02Ye3cW0qLqN9IugK7xad2Em4pB9cdkJs33cJfkYeEJkCRx8xIdnoAokH+J7gOI+M8 BISQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679380113; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LToXUtGaSD/5gjU+WmXlzsbvSC//lfuRki4rkNszvsM=; b=3ebSzW2l12z15xLZuQ/f9JXyHFo5AZG9RlKT5kCZGLzcNJguNtOIX8ra4IhjXwfhky /WRM0DnIvmMA2gx98cbYBUEAZW2AEojX081GDQ68x3qSAjYIwTS+BnWyfaMYAN4ncYW0 cB80bEi9na/yv0dFf+b7L64SAw3tedbClac6+WB7DQ303f0VvGBaPEC1YvE2IuJ7khu1 NLx9JJey/JVyzms+6wP/lopeoX0XKmKepxAWpL4cog8WR+feLKB0ZqkQhC9rCIdwVhAH 1/c3LeqltqaXVgxAuo7N+ZS90uvB8FMYa2YMtlWvqlukiJKTdF5Ss97hqQzX8MMJ8ftB vmJg== X-Gm-Message-State: AO0yUKWOUxiHpEm0WpllYWswQmPK4qaegx7kdLX5IiFXv7bM2OSFJgZo rATc40Va1jiHlZeh+ZT3OdAR2dBww61WcltSOGg= X-Google-Smtp-Source: AK7set+E0mf9l2ZQP1pv+TzSkCl2NtaYNTaWixsqKPlrnhVgx1b9ocEzsXWvahS1QvfgDO+FI5LhBhDL214fiw0kJ1w= X-Received: by 2002:adf:ee91:0:b0:2c5:a38f:ca2f with SMTP id b17-20020adfee91000000b002c5a38fca2fmr428306wro.4.1679380113200; Mon, 20 Mar 2023 23:28:33 -0700 (PDT) In-Reply-To: <0e6c9b8a-b70f-d244-c031-68c0c58dca86@mousecar.com> Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=yurivkhan@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143074 Archived-At: On Mon, 20 Mar 2023 at 14:16, gebser@mousecar.com wro= te: > It is kinda weird that, with all the many things that emacs can do, it > can't take the info from doc-view (which obviously understands all the > pieces of a pdf-- down to its bits-- and how they all go together to > make a document) and edit it... it's pretty much implausible to believe > emacs *can't* do that. But then, I've always thought reality was > completely implausible. :^/ PDF is not really meant for editing. It=E2=80=99s not even a data format. Rather, it=E2=80=99s an executable program that has instructions like =E2= =80=9Cselect this font=E2=80=9D and =E2=80=9Cdisplay this word in the selected font at t= his position on the page=E2=80=9D and =E2=80=9Cmake a new page=E2=80=9D. You don=E2=80=99t normally edit executable programs, you compile them from source. In the same vein, to get a modified PDF, you find the source document from which it was produced, modify that, and re-export.