Can GAS modify the footnote separator in Google Docs?

Hey everyone, I’m trying to customize the look of my Google Doc and I’m stuck on one thing. There’s this line that shows up between the main text and the footnotes. I can’t seem to change it through the normal menus. Does anyone know if there’s a way to tweak or get rid of this line using Google Apps Script? I’d really appreciate any help or tips on this!

In my experience with Google Docs and Apps Script, it’s clear that direct modification of the footnote separator isn’t possible since the API does not expose that functionality. A potential workaround involves inserting a custom horizontal line just above the footnotes. You can identify where the footnotes start and then programmatically insert and style a line to mimic a separator. This approach requires maintaining and updating the line if the document’s footnotes change, so while it offers more visual control, it may need fine-tuning over time to match your desired appearance.

I’ve actually tackled this issue before in one of my projects. Unfortunately, Google Apps Script doesn’t provide direct access to modify the footnote separator in Google Docs. It’s a limitation of the current API.

However, I found a workaround that might help. You can create a custom footer with a horizontal line that mimics the separator. Then, adjust the footer margins to position it where the original separator would be. It’s not perfect, but it gives you more control over the appearance.

Another option is to use a table with invisible borders to create a visual separation between the main text and footnotes. This method requires some manual formatting, but it allows for more customization than the default separator.

Remember, these are workarounds and might require some trial and error to get the desired look. If you need precise control, you might want to consider exporting the document and editing it in a more flexible word processor.

hey there! i’ve messed around with this before. sadly, GAS can’t change the footnote separator directly :frowning: but here’s a trick: you could add a custom line above the footnotes using script. it’s not perfect, but it lets you style it how you want. just gotta update it if footnotes change. hope that helps!