• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Windows Microsoft Word
#10
I'd guess the Export is intended to be editable in Adobe, whereas the print version is a minimal rendering.

I used Word itself to generate PDFs automatically. As I was hacking, it is very rough and ready - I didn't properly deal with file extensions but used PowerToys PowerRename to remove the extension afterward because I really couldn't be bothered.

In Word 365 the developer tab is hidden, so first you need to enable the tools by right clicking on the ribbon and on the right hand panel, click on the empty box by the developer menu. Then View Macros. Create a macro then use something like this:

Code:
Sub CreatePDFs()
'
' CreatePDFs Macro
'
'
    Dim vDirectory As String
    Dim oDoc As Document
   
    vDirectory = "C:\Users\ianms\OneDrive\Documents\Tabs\Songs\"

    vFile = Dir(vDirectory & "*.docx")

    Do While vFile <> ""
        On Error Resume Next
        Set oDoc = Documents.Open(FileName:=vDirectory & vFile)
        On Error GoTo NextDoc
        ActiveDocument.SaveAs2 FileName:=vDirectory & "\PDFs\" & oDoc.Name & ".pdf", _
                              FileFormat:=17
        oDoc.Close SaveChanges:=False
NextDoc:
       
        vFile = Dir
    Loop


End Sub

It's very hacky, borrowed from elsewhere (I tried a command line code but Word doesn't seem to offer a COM model now without some faff & it's a decade since I bothered programming anything as a matter of principle. I set up a subdirectory to keep life simple. I then re-ran it for rtf and doc extensions. You will need to check the output, especially as the old RTF files from WordPad (I've been collecting tabs for a long time) were very inconsistent on page breaks. If Word is maximised when you run it, it may induce a fit with the flashing screen, but it didn't annoy when kicked off when small. A couple of seconds per document, so pretty useful.
Reply


Messages In This Thread
Windows Microsoft Word - by grimreaper46 - 12-12-2022, 12:21 AM
RE: Windows Microsoft Word - by Geoff Bacon - 12-12-2022, 06:03 AM
RE: Windows Microsoft Word - by grimreaper46 - 12-12-2022, 06:35 AM
RE: Windows Microsoft Word - by Zubersoft - 12-12-2022, 06:42 AM
RE: Windows Microsoft Word - by grimreaper46 - 12-12-2022, 07:32 AM
RE: Windows Microsoft Word - by Zubersoft - 12-12-2022, 09:05 AM
RE: Windows Microsoft Word - by paltieldav - 10-10-2024, 09:13 PM
RE: Windows Microsoft Word - by BRX - 10-10-2024, 09:37 PM
RE: Windows Microsoft Word - by Lawrie - 10-10-2024, 10:31 PM
RE: Windows Microsoft Word - by IanMSpencer - 10-16-2024, 03:25 AM
RE: Windows Microsoft Word - by Lawrie - 10-16-2024, 07:37 AM



Users browsing this thread:
11 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2024 MyBB Group.