I am trying to export my sketch to pdf. The issue that I have is that for some reason only a portion of my sketch is exported to pdf, as if the original sketch was cropped! When I run my sketch, 64 lines show up (as intended) and indeed when I save it to png all the 64 lines are there and sketch looks just the same as when I run it.
When I export the sketch to pdf though, only 16 line show up, as if the pdf was cropping my sketch and only the cropped portion was being exported.
This is the png showing what the sketch is supposed to look like:
I think the problem occurs when I export the sketch to pdf. Once the pdf file is created, it is already corrupted to opening with Chrome doesn’t fix the issue. I am not sure how to go about doing this…
I could not test pixelDensity(2) as it defaulted to pixelDensity = 1.
You could also use text() to write to the sketch window if you do not have a console.
so what i understand if pixelDensity(2) is not available for the display sketch run normal ??? even included pixelDensity(2) is that true or what ?
Correct. Based on your report of a displayDensity of 1, and @glv’s findings I think it defaults to normal if a high density display (displayDensity == 2) is not available (even if it’s coded for pixelDensity(2)).