Files
MayShow/TODO.txt
T

85 lines
4.5 KiB
Plaintext

----iOS----
-quickstart for loading last edited report on main menu
-option/setting to put copy/duplicate picture data into internal data dir for backup (always on for mobile)
-duplicate existing report with new name
-cleanup empty uuid folders in case user gets an internal folder created but never saves
-always save report data (file locations, title, etc.) to internal dir (might already be done?)
-add dropdown to Add Items button to have add items from folder and remove choose working folder option (data always saved internally)
-no more option to save data internally -> ALWAYS save report_data.json internally
-update project title -> should update recently used data
-this sort of works, something is wrong with the upgrade process where the UUID is not brought over properly; need to test and fix (maybe fixed already and my dataset is wrong?)
-make backup of last generated PDF
-iOS-specific (MAUI essentials?)
-Take picture
-Add pic from gallery
-Add file (uses Files picking)
-Generate PDF -> Share/print screen to share/print
-----------
https://stackoverflow.com/questions/78855900/error-ios-projects-must-build-with-publishtrimmed-true-when-trimming-is-disabl
https://blog.verslu.is/maui/exclude-assemblies-from-trimming/
-p:UseParallelGC=true for faster builds? or /p:MtouchUseLlvm=false? or -p:EnableAssemblyILStripping=false?
possible hints for building publish iOS binaries: https://github.com/dotnet/maui/issues/25022#issuecomment-2385334527
linker stuff: https://blog.verslu.is/maui/exclude-assemblies-from-trimming/
PublishFolderType documentation: https://github.com/dotnet/macios/blob/main/dotnet/BundleContents.md
https://signpath.org/
magick "2026-01-29 — \$210 — WORK PERMIT.pdf" -background white -alpha background -alpha off -density 288 -resize 25% page-%03d.jpg
https://github.com/dlemstra/Magick.NET/blob/main/docs/ConvertPDF.md
https://stackoverflow.com/questions/65089839/add-an-external-pdf-page-to-pdfsharp-migradoc
https://github.com/mephraim/ghostscriptsharp
https://stackoverflow.com/a/71485279/3938401
need a PDF viewer that works with annotations
https://github.com/BobLd/PdfPig.Rendering.Skia/ works but quality is low for some reason, I don't know why. probably need a bug report or some option that is hidden.
using (var document = UglyToad.PdfPig.PdfDocument.Open(filePath, UglyToad.PdfPig.Rendering.Skia.SkiaRenderingParsingOptions.Instance))
{
document.AddSkiaPageFactory(); // Same as document.AddPageFactory<SKPicture, SkiaPageFactory>() and document.AddPageFactory<PdfPageSize, PageSizeFactory>()
for (int p = 1; p <= document.NumberOfPages; p++)
{
using var skBitmap = document.GetPageAsSKBitmap(p, 1);
using (var fs = new FileStream(Path.Combine(convertedDir, $"{fileName}_{p}PIG.jpeg"), FileMode.Create))
using (var ms = document.GetPageAsPng(p, 1, 4))
{
MemoryStream memoryStream = new MemoryStream();
skBitmap.Encode(memoryStream, SkiaSharp.SKEncodedImageFormat.Jpeg, 100);
memoryStream.Position = 0L;
ms.WriteTo(fs);
}
}
}
https://github.com/GowenGit/docnet -- may need to fork this and publish our own package if some OS doesn't work
*-add more items
*-save last opened folder to settings somewhere
---Features---
*-save report to disk
*-separate save button to come back to things later
*-add resort by date option
*-when scanning files don't add kinds we cannot read/use
*-Fix buttons not enabling/disabling appropritely
*-if files not found show user error
*-add preview or open button or something to each item
https://gitflic.ru/project/jackhammer/pdf-forge-net/file?commit=7bdce6132a70ab12664a8f2482003836c7af2ab6
*-check if last remembered dir exists on auto-load!
*-show working directory
*-set DMG title in publish
*-Get linux publish command working and zip up/publish
dotnet publish -c Release -r linux-x64 -p:StripSymbols=False -p:PublishAot=False
dotnet publish -c Release -r linux-arm64 -p:StripSymbols=False -p:PublishAot=False
---Publishing---
*-Published app has unneeded .DSYM file (fixed via .app builder)
*-Published app has Assets folder already copied to it; don't want that in output macOS folder but it's being copied there anyway (fixed via .app builder)
*-macOS x64 build