converter now part of package

This commit is contained in:
Kilian Hofmann 2023-11-22 08:01:31 +01:00
parent 515cbd8a20
commit 34780db289
3 changed files with 77 additions and 64 deletions

View File

@ -19,6 +19,14 @@
<AssetDir>PackageDefinitions\khofmann-pdf-reader\ContentInfo\</AssetDir>
<OutputDir>ContentInfo\khofmann-pdf-reader\</OutputDir>
</AssetGroup>
<AssetGroup Name="converter">
<Type>Copy</Type>
<Flags>
<FSXCompatibility>false</FSXCompatibility>
</Flags>
<AssetDir>PackageSources\converter\bin\x64\Release\net8.0-windows\</AssetDir>
<OutputDir>converter\</OutputDir>
</AssetGroup>
<AssetGroup Name="html-ui">
<Type>Copy</Type>
<Flags>

View File

@ -16,15 +16,16 @@ const double MM2IN = 25.4;
#endregion
#region Main Code
/*
if (args.Length == 0)
{
Console.WriteLine("No PDF specified");
Console.ReadKey();
return 1;
}
Console.WriteLine($"Conversion for {args[0]}\n");
*/
Tuple<int, int> size = ReadConfig();
return ReadPDF("MD11_FCOM_vol1.pdf", size.Item1, size.Item2);

View File

@ -60,6 +60,8 @@ const ListPage: FC = () => {
Files
</Typography>
)}
{getPages(list.length) > 0 && (
<>
<TextField
variant="filled"
value={pageJump}
@ -124,6 +126,8 @@ const ListPage: FC = () => {
>
<NavigateNextIcon htmlColor="white" fontSize="large" />
</Button>
</>
)}
<Button
onClick={() => {
setOffset((prev) => {