[Solved] Deleting Junk

Discuss the word processor

[Solved] Deleting Junk

Postby Rich Adams » Fri Feb 14, 2020 2:14 am

*sighs*

After reading all the nice stuff about images and how well Writer deals with them, I thought I could avoid having to make Snapshots, and I could add the PDF directly to Writer.

Mistake.

By dragging the PDF file and dropping it into the document, I went from about 40 pages to 117 pages, all filled with machine language programming junk (to my eyes). It could not be undone (CTRL-Z was not my friend this time). I also could not highlight and delete it (I was going to delete it page by page). It highlighted just fine, but could not be deleted.

Any suggestions on how to delete the unwanted pages and pages of junk? Or will I need to do a massive copy and paste of what I want to keep into a new document?

This didn't seem like rocket science, and I used to work with rocket scientists.

Thanks

--Rich
Last edited by Rich Adams on Fri Feb 14, 2020 8:42 am, edited 1 time in total.
OpenOffice 4.1.4 on Windows 10
Rich Adams
 
Posts: 8
Joined: Thu Feb 13, 2020 9:03 pm

Re: Deleting Junk

Postby RusselB » Fri Feb 14, 2020 4:22 am

A PDF file is not meant to be dragged and dropped into a Writer file.... in fact, they were originally meant to be the equivalent of a electronic printing, similar to what you would get from your printer, but in electronic form. not on paper.
There is an extension to import PDFs, but there are mixed reviews as to whether it works or not... Some people have reported that it works with no problems, others have stated that it doesn't work at all.
In either case, Writer is not designed to take the information from a PDF file directly.
You could try using http://www.zamzar.com to convert the PDF to a .doc file, then import the .doc file into Writer.
OpenOffice 4.1.7 and LibreOffice 6.3.3.2 on Windows 7 Pro & Ultimate
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
User avatar
RusselB
Moderator
 
Posts: 6056
Joined: Fri Jan 03, 2014 7:31 am
Location: Sarnia, ON

Re: Deleting Junk

Postby robleyd » Fri Feb 14, 2020 7:27 am

If you haven't saved the damaged file, simply exit without saving and re-open your un-trashed version of the file.
Cheers
David
Apache OpenOffice 420m2(Build:9821) - Slackware 14.2 - 64 bit
LibreOffice 6.0.7.3 - Slackware 14.2 - 64 bit
Apache OpenOffice 4.1.4 - Windows 7 Virtual machine
User avatar
robleyd
Moderator
 
Posts: 3389
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Deleting Junk

Postby Zizi64 » Fri Feb 14, 2020 8:02 am

By dragging the PDF file and dropping it into the document,


It's a pretty bad habit. Always use the regular ways to insert foreign contents into your documents.
- Always optimize the images before you insert them with the "Insert - ..." menu item.
- Always paste the textual contents "as an unformatted text", and then re-format them in your document.
Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.5;AOO4.1.7
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9409
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Deleting Junk

Postby Bill » Fri Feb 14, 2020 8:14 am

The PDF file was probably inserted in a write-protected section (that's what happened when I tried it). Remove the write protection so you can delete the contents of the section and remove it.

Note: I also tried it with LO. LO did not insert a section but did insert the first page of the 4-page pdf document as an image.
AOO 4.1.7, LO 6.3.6.2 and LO 6.4.3.2 on Kubuntu 20.04
Bill
Volunteer
 
Posts: 7792
Joined: Sat Nov 24, 2007 6:48 am

Re: Deleting Junk

Postby Rich Adams » Fri Feb 14, 2020 8:41 am

Since I have no clue how to unprotect a write-protected block of junk, I followed the advice and just closed it without saving. That cleared it. Thanks.
OpenOffice 4.1.4 on Windows 10
Rich Adams
 
Posts: 8
Joined: Thu Feb 13, 2020 9:03 pm

Re: Deleting Junk

Postby Bill » Fri Feb 14, 2020 8:53 am

Rich Adams wrote:Since I have no clue how to unprotect a write-protected block of junk, I followed the advice and just closed it without saving. That cleared it. Thanks.

You will find it in Help if you look for "sections". You won't find it if you look for "block of junk".
AOO 4.1.7, LO 6.3.6.2 and LO 6.4.3.2 on Kubuntu 20.04
Bill
Volunteer
 
Posts: 7792
Joined: Sat Nov 24, 2007 6:48 am

Re: [Solved] Deleting Junk

Postby Lupp » Fri Feb 14, 2020 1:23 pm

Emmm...
I'm still wondering what you (Rich Adams) expected to get. A pdf will mostly be a multipage thing.

Recent LibreOffice inserts pdf if dropped with the mouse in a way I would call "image mode": Only the first page is shown, and it is positioned and sized like an image would have been.

Is this what you wanted?

(AOO would offer to insert the pdf as a new section, I suppose.)
On Windows 10: LibreOffice 7.0 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
User avatar
Lupp
Volunteer
 
Posts: 2892
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: [Solved] Deleting Junk

Postby Rich Adams » Sat Feb 15, 2020 5:06 am

I suppose it is true that a PDF will mostly be a multipage thing. As I mentioned in a different post, the PDFs are my own creation, made when exporting a .MSCZ from Musescore to a .PDF. The scores are short traditional dance pieces, frequently taking up 1/4 to 1/3 of a page. The book I'm creating uses 2 to 3 of those PDFs per page. As I was criticized for using snapshot to capture the image, I tried doing what I *thought* had been suggested. It wasn't. I have since returned to my tried and true method.

If you are still unclear what I'm trying to do, please visit my website at www.beniciasession.org/conc8 and look in the "SETS" section. Note that I am not a web designer nor webmaster, so what you see is functional and the best I can do. My project is putting all the music scores on that site into a single, multi-page document. I just took my finished protoype to the printers today to see how it ended up.

Cheers!
OpenOffice 4.1.4 on Windows 10
Rich Adams
 
Posts: 8
Joined: Thu Feb 13, 2020 9:03 pm

Re: [Solved] Deleting Junk

Postby Zizi64 » Sat Feb 15, 2020 8:14 am

As I was criticized for using snapshot to capture the image, I tried doing what I *thought* had been suggested. It wasn't.


The snapshots are a good way to insert pictures into a textual document.
Note: do not (never!) do it directly (by drag&drop or copy/paste) - from the source to a document.

Follow these steps strictly:

1.: Always save the snapsots (or the downloaded pictures) into image files with a lossless compression (for example: .PNG); or choose the lossless type of the picture if it available to download in more than one file format. Save them onto your computer.
2.: And then open the pictures in a third party image manager software (for example: InfanView).
3.: Crop the pictures (crop the irrelevant part of the picture)
4.: Decrease the color depth from 24 bit 'million colors' to (at least) 8 bit (256 colors). Maybe it is enough lesser number of colors for the musical notes.
5.: Resize/resample the picture to an optimal DPI and to the real phisycal size (that size you need in the document). Not needed more than 200 dpi relative resolution in a printed document.
6.: Resave the optimized document into a lossless compression format (.PNG)
7.: Use the regular (orderly) method to insert the picture into a document. From the Menu: Insert - ...
Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.5;AOO4.1.7
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9409
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: [Solved] Deleting Junk

Postby Lupp » Sat Feb 15, 2020 1:25 pm

As I (and probably somebody else) was criticized for criticizing ;-) I want to apologize.
However: I cannot promise to have in mind every "other post" or whatever might be related without mention.

Once again: LibreOffice Writer should do as you want: It accepts a pdf by drag'n drop and handles it like an image by adopting the width to the available space within the page margins.

You may throw a glance into the attached example. It's what I got with LibreOffice by dragging and dropping one of your "Tunes" in. The first page was set to my standard margins (2 cm at every edge), the second page was set to zero margin left and right. The adaption was made automatically by Writer.

To be clear: I first had to download the pdf from your site to my file system.
And to be clear once more: You cannot do it this way using AOO, but you can inspect the result with a recent AOO.
(I tested with AOO V 4.1.5.)
Attachments
aoo101094dragnDropPdfIntoWriterDoc_1.odt
(81.24 KiB) Downloaded 9 times
On Windows 10: LibreOffice 7.0 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
User avatar
Lupp
Volunteer
 
Posts: 2892
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: [Solved] Deleting Junk

Postby greyinblue » Sat Feb 15, 2020 1:40 pm

MuseScore allows export to png. Multipage scores are exported as single files that can be inserted into Writer. By default they will fill the available text space in the Writer file. No need for pdf at all.
AOO 4.1.6 and LibreOffice 6.3, Windows 10
greyinblue
 
Posts: 8
Joined: Wed Mar 07, 2018 3:14 pm


Return to Writer

Who is online

Users browsing this forum: No registered users and 15 guests