You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uint8List uintData = await scorePdf.save();
await drawScore.makePDF(uintData);
makePDF(Uint8List doc) async {
final dir = await getTemporaryDirectory();
String dirPath = dir!.path + '/score.pdf';
File pdf = File('$dirPath');
await pdf.writeAsBytes(doc);
print('make PDF done');
}
If you proceed with the above process, a PDF will be created, but the size of the PDF will be 2048 * 3508. Is there a way to readjust this size? However, the sheet music in the pdf must not be truncated.
The text was updated successfully, but these errors were encountered:
I changed the value of .a4 to match the coordinate system for drawing sheet music on PDF.
Below is a simple test code.
Now create a pdf with that data.
If you proceed with the above process, a PDF will be created, but the size of the PDF will be
2048 * 3508
. Is there a way to readjust this size? However, the sheet music in the pdf must not be truncated.The text was updated successfully, but these errors were encountered: