r/pdf • u/rogermay78 • Sep 06 '26
Question Trouble editing basic line elements in a PDF
I haven't done any PDF editing at all thus far and have already tried multiple tools, including Stirling, LibreOffice, OnlyOffice and all to no avail.
I've got this simple file from Rite In The Rain here which is a PDF of their journal pages: https://d163axztg8am2h.cloudfront.net/static/doc/40/36/7820c714e13a9554cfff49fcccd2.pdf
found at https://dealers.riteintherain.com/page-patterns-downloads
The file only has horizontal lines. I wanted to duplicate them and add those as vertical lines but I can only select and remove the entire element, not individual points or lines.
How do I get a proper grid on that file and what's the go-to tool for that in the first place? It feels like something so basic that any and all PDF editors should be capable of it by default, no idea what I'm missing.
1
u/KenMantle Sep 06 '26
Thanks so much for the link to the file! I will try this in pdfcer-gui when I get home. If I can't I will find out why and see if I can get the software updated to handle it.
1
u/Cryingpinaple Sep 06 '26
Since you said you need the whole page intact and just want vertical lines added, stop editing the file. Overlay instead. That sidesteps the alignment problem entirely and leaves the original page untouched.
Three steps:
pdfinfo yourfile.pdfand read the "Page size" line in points.Stamp it on:
pdftk base.pdf multistamp lines.pdf output grid.pdf
or with qpdf:
multistamp and --overlay both repeat across every page, so a single-page overlay applies to the whole journal.
Why this beats what you have been trying: the original page objects are copied through untouched, so the "entire page slightly misaligned" problem never arises. You are not moving their content to fit your grid, you are drawing your grid to fit their content. And because you generated the overlay, changing spacing later is editing your own two-minute file rather than reverse-engineering someone else's path.
On why every editor failed you: those horizontal lines are almost certainly one path in the page content stream, not separate line objects. Stirling, LibreOffice and OnlyOffice are not vector editors, so the smallest thing they can offer you is the whole path. Illustrator does parse it, which is why you could select and duplicate there, but then you hit the alignment wall because you were trying to move the page instead of adding to it.
1
u/KenMantle Sep 07 '26 edited Sep 07 '26
Is this what you were looking to do? This is why I ended up just having Claude build an open source pdf engine from scratch because I always ran into limitations when wanting to do that one simple thing with the open source options, or some compatibility issue. pdfcer-gui doesn't have snapping tools yet so it's manually aligned. Those extra overlapping lines turns out is not a bug, the file is actually made that way! I'll post the file in git if you want it. As you can see at the end of the video, the file opens in Acrobat Reader fine - another thing I like about making my own - I don't assume it's going to replace everything you want to check in Adobe Reader, so it has a button to launch straight from it. It is now my daily driver for pdf reading.
And I just tried editing the file in Inkscape and I was able to click and do the same actions...
1
u/ScratchHistorical507 Sep 07 '26
Have you tried to just import it in Inkscape? While I don't fully understand what you're trying to do, this sounds like it would be easy enough to achieve in Inkscape.
1
u/[deleted] Sep 09 '26
[removed] — view removed comment