sternj
sternj
I'm interested in what's happening here-- How does the remarkable calculate where annotations should be when exported compared to where they should be when being drawn on the page?
Also worth noting that this issue also occurs with the `geta` subcommand of [rmapi](https://github.com/juruen/rmapi), which can be interrogated
For reference, [this is how the PDF library thinks about annotations](https://github.com/moolekkari/unipdf/blob/1effa6f5c564887e78a12ac3953fcc9448c438a9/creator/creator.go#L467). My largely uninformed theory is that unipdf is deciding the page height based off of some metadata field that...
So I've established that the `MediaBox` attribute does have an effect on alignment, but it doesn't fix the misalignment. I have also confirmed that it is the `CropBox` that causes...
The issue isn't in the cropping itself but how the bounding box is being computed-- removing all reference to the `margin`s in `get_bbox` surfaces this issue. I'm also seeing that...
Reassessing my previous assessment, the salient code happening in `rmapi` is [the end of this function](https://github.com/juruen/rmapi/blob/master/annotations/pdf.go#L155). I'm concerned by the reference to the transformation matrix, since it means that the...
Confirming that the displacement of the annotations is directly related to how the box was created, I removed the upper and lower cropping and the displacement was only horizontal. What...
Just like a normal person, I have found and started reading [the pdf standard](https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf). What `rmapi` does is it uses a `path`, which is defined in section 8.5.2. The path...
So, to summarize: - `path`s are defined by their coordinates in "User Space" - User Space is defined as... something. It seems to be an invariant, but is mapped onto...
Well, I tried messing around with this in a few different ways only to conclude that there's something _else_ going on other than just mismatches in the coordinate system. I...