Return to site

From doc to pdf removal

broken image
broken image

RStory.StoryType = wdPrimaryHeaderStory Then If rStory.StoryType = wdPrimaryFooterStory Or _ The following example looks only in the header and footer area and deletes any graphics that it finds there.įor Each rStory In ActiveDocument.StoryRanges

broken image

Instead, you'll want to use a macro to get rid of them. Since it appears that the PDF conversion process is adding the graphics to the header and footer, that means they are not easily 'findable' by doing a regular Find and Replace. Anita wonders if there is a way she can automate the removal of these graphic lines, as she'd rather not have to click and press Del 600+ times. She wants to delete all those graphic lines, but searching for ^g doesn't find them. The original document had horizontal lines in the header and footer that were converted to graphic lines in the Word document.

broken image

In this case there is a problem she can't figure out. She has lots of experience with Word and styles and using Find and Replace to fix badly formatted documents. Anita is re-formatting a long document (over 300 pages) that was converted from PDF to Word.