mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +03:00
Move Pdf namespace to the top level
This commit is contained in:
parent
69f75149c5
commit
58a16d773f
@ -4,7 +4,7 @@ using NAPS2.EtoForms.Mac;
|
||||
using NAPS2.EtoForms.Ui;
|
||||
using NAPS2.Images.Mac;
|
||||
using NAPS2.ImportExport;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Update;
|
||||
|
||||
namespace NAPS2.Modules;
|
||||
|
@ -1,6 +1,6 @@
|
||||
using Autofac;
|
||||
using NAPS2.Automation;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Sdk.Tests;
|
||||
using NAPS2.Sdk.Tests.Asserts;
|
||||
using NAPS2.Sdk.Tests.Mocks;
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Threading;
|
||||
using NAPS2.Config.Model;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Ocr;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Sdk.Tests;
|
||||
using Xunit;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Moq;
|
||||
using NAPS2.EtoForms;
|
||||
using NAPS2.ImportExport;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Scan;
|
||||
using NAPS2.Sdk.Tests;
|
||||
using NAPS2.Sdk.Tests.Asserts;
|
||||
|
@ -4,9 +4,9 @@ using NAPS2.EtoForms;
|
||||
using NAPS2.ImportExport;
|
||||
using NAPS2.ImportExport.Email;
|
||||
using NAPS2.ImportExport.Images;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Lang.ConsoleResources;
|
||||
using NAPS2.Ocr;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Recovery;
|
||||
using NAPS2.Scan;
|
||||
using NAPS2.Serialization;
|
||||
|
@ -1,5 +1,5 @@
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Lang.ConsoleResources;
|
||||
using NAPS2.Lang.ConsoleResources;
|
||||
using NAPS2.Pdf;
|
||||
|
||||
namespace NAPS2.Automation;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
using NAPS2.Config.Model;
|
||||
using NAPS2.ImportExport.Email;
|
||||
using NAPS2.ImportExport.Images;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Ocr;
|
||||
using NAPS2.Scan;
|
||||
using NAPS2.Scan.Batch;
|
||||
|
@ -3,7 +3,7 @@ using System.Text;
|
||||
using System.Xml;
|
||||
using NAPS2.Config.Model;
|
||||
using NAPS2.Config.ObsoleteTypes;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Serialization;
|
||||
|
||||
namespace NAPS2.Config;
|
||||
|
@ -3,8 +3,8 @@ using NAPS2.ImportExport;
|
||||
using NAPS2.ImportExport.Email;
|
||||
using NAPS2.ImportExport.Email.Oauth;
|
||||
using NAPS2.ImportExport.Images;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Ocr;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Scan;
|
||||
using NAPS2.Scan.Batch;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Xml.Serialization;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Ocr;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Scan;
|
||||
|
||||
namespace NAPS2.Config.ObsoleteTypes;
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Xml.Serialization;
|
||||
using NAPS2.ImportExport.Email;
|
||||
using NAPS2.ImportExport.Images;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Ocr;
|
||||
using NAPS2.Scan;
|
||||
using NAPS2.Scan.Batch;
|
||||
|
@ -2,7 +2,7 @@ using Eto.Drawing;
|
||||
using Eto.Forms;
|
||||
using NAPS2.EtoForms.Layout;
|
||||
using NAPS2.EtoForms.Widgets;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
|
||||
namespace NAPS2.EtoForms.Ui;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
using NAPS2.EtoForms;
|
||||
using NAPS2.ImportExport.Images;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Scan;
|
||||
|
||||
namespace NAPS2.ImportExport;
|
||||
|
@ -2,7 +2,7 @@
|
||||
using NAPS2.EtoForms.Ui;
|
||||
using NAPS2.ImportExport.Email;
|
||||
using NAPS2.ImportExport.Images;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
|
||||
namespace NAPS2.ImportExport;
|
||||
|
||||
|
@ -4,8 +4,8 @@ using NAPS2.ImportExport;
|
||||
using NAPS2.ImportExport.Email;
|
||||
using NAPS2.ImportExport.Email.Mapi;
|
||||
using NAPS2.ImportExport.Images;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Ocr;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Platform.Windows;
|
||||
using NAPS2.Recovery;
|
||||
using NAPS2.Remoting.Worker;
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Autofac;
|
||||
using NAPS2.Automation;
|
||||
using NAPS2.EtoForms;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Scan;
|
||||
|
||||
namespace NAPS2.Modules;
|
||||
|
@ -2,7 +2,7 @@ using Autofac;
|
||||
using NAPS2.EtoForms;
|
||||
using NAPS2.EtoForms.Desktop;
|
||||
using NAPS2.ImportExport;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Scan;
|
||||
using NAPS2.Scan.Batch;
|
||||
using NAPS2.Update;
|
||||
|
@ -1,7 +1,7 @@
|
||||
using NAPS2.EtoForms;
|
||||
using NAPS2.EtoForms.Ui;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public class EtoPdfPasswordProvider : IPdfPasswordProvider
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using NAPS2.Config.Model;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public class PdfSettings
|
||||
{
|
@ -1,7 +1,8 @@
|
||||
using NAPS2.ImportExport.Email;
|
||||
using NAPS2.ImportExport;
|
||||
using NAPS2.ImportExport.Email;
|
||||
using NAPS2.Ocr;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public class SavePdfOperation : OperationBase
|
||||
{
|
@ -4,8 +4,8 @@ using NAPS2.EtoForms;
|
||||
using NAPS2.EtoForms.Ui;
|
||||
using NAPS2.ImportExport;
|
||||
using NAPS2.ImportExport.Images;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Ocr;
|
||||
using NAPS2.Pdf;
|
||||
|
||||
namespace NAPS2.Scan.Batch;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
using Codeuctivity;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.ImportExport.Pdf.Pdfium;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Pdf.Pdfium;
|
||||
using PdfSharpCore.Pdf.IO;
|
||||
using PdfSharpCore.Pdf.Security;
|
||||
using Xunit;
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Threading;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Ocr;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Scan;
|
||||
using NAPS2.Unmanaged;
|
||||
using Xunit.Abstractions;
|
||||
|
@ -1,4 +1,4 @@
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Scan;
|
||||
using NAPS2.Sdk.Tests.Asserts;
|
||||
using NAPS2.Serialization;
|
||||
|
@ -1,4 +1,4 @@
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Sdk.Tests.Asserts;
|
||||
|
||||
namespace NAPS2.Sdk.Tests.ImportExport.Pdf;
|
||||
|
@ -1,4 +1,4 @@
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using Xunit;
|
||||
|
||||
namespace NAPS2.Sdk.Tests.ImportExport.Pdf;
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Threading;
|
||||
using Moq;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Sdk.Tests.Asserts;
|
||||
using Xunit;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Sdk.Tests.Asserts;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Moq;
|
||||
using NAPS2.ImportExport;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.ImportExport.Pdf.Pdfium;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Pdf.Pdfium;
|
||||
using NAPS2.Sdk.Tests.Asserts;
|
||||
using Xunit;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Sdk.Tests.Asserts;
|
||||
using Xunit;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Sdk.Tests.Asserts;
|
||||
using Xunit;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
using NAPS2.ImportExport.Images;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
|
||||
namespace NAPS2.ImportExport;
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
using NAPS2.ImportExport.Pdf.Pdfium;
|
||||
using NAPS2.Pdf.Pdfium;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public static class CcittReader
|
||||
internal static class CcittReader
|
||||
{
|
||||
private static readonly byte[] TiffBeforeDataLen = { 0x49, 0x49, 0x2A, 0x00 };
|
||||
private static readonly byte[] TiffBeforeData = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
@ -1,6 +1,6 @@
|
||||
using NAPS2.Ocr;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public interface IPdfExporter
|
||||
{
|
@ -1,4 +1,6 @@
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.ImportExport;
|
||||
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public interface IPdfImporter : IScannedImageImporter
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public interface IPdfPasswordProvider
|
||||
{
|
@ -2,9 +2,9 @@
|
||||
using PdfSharpCore.Pdf;
|
||||
using PdfSharpCore.Pdf.Advanced;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public static class PdfAHelper
|
||||
internal static class PdfAHelper
|
||||
{
|
||||
public static void CreateXmpMetadata(PdfDocument document, PdfCompat compat)
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public enum PdfCompat
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public record PdfEncryption
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public record PdfExportParams
|
||||
{
|
@ -2,8 +2,8 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading;
|
||||
using NAPS2.Images.Bitwise;
|
||||
using NAPS2.ImportExport.Pdf.Pdfium;
|
||||
using NAPS2.Ocr;
|
||||
using NAPS2.Pdf.Pdfium;
|
||||
using NAPS2.Scan;
|
||||
using PdfSharpCore.Drawing;
|
||||
using PdfSharpCore.Drawing.Layout;
|
||||
@ -13,7 +13,7 @@ using PdfSharpCore.Pdf.Security;
|
||||
using PdfDocument = PdfSharpCore.Pdf.PdfDocument;
|
||||
using PdfPage = PdfSharpCore.Pdf.PdfPage;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public class PdfExporter : IPdfExporter
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public class PdfImportException : Exception
|
||||
{
|
@ -1,8 +1,9 @@
|
||||
using NAPS2.ImportExport.Images;
|
||||
using NAPS2.ImportExport.Pdf.Pdfium;
|
||||
using NAPS2.ImportExport;
|
||||
using NAPS2.ImportExport.Images;
|
||||
using NAPS2.Pdf.Pdfium;
|
||||
using NAPS2.Scan;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public class PdfImporter : IPdfImporter
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public record PdfMetadata
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
namespace NAPS2.ImportExport.Pdf.Pdfium;
|
||||
namespace NAPS2.Pdf.Pdfium;
|
||||
|
||||
public enum Colorspace
|
||||
internal enum Colorspace
|
||||
{
|
||||
Unknown = 0,
|
||||
DeviceGray = 1,
|
@ -1,9 +1,9 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf.Pdfium;
|
||||
namespace NAPS2.Pdf.Pdfium;
|
||||
|
||||
public abstract class NativePdfiumObject : IDisposable
|
||||
internal abstract class NativePdfiumObject : IDisposable
|
||||
{
|
||||
private bool _disposed;
|
||||
private IntPtr _handle;
|
@ -1,6 +1,6 @@
|
||||
namespace NAPS2.ImportExport.Pdf.Pdfium;
|
||||
namespace NAPS2.Pdf.Pdfium;
|
||||
|
||||
public class PdfBitmap : NativePdfiumObject
|
||||
internal class PdfBitmap : NativePdfiumObject
|
||||
{
|
||||
public const uint BLACK = 0;
|
||||
public const uint WHITE = uint.MaxValue;
|
@ -1,10 +1,10 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf.Pdfium;
|
||||
namespace NAPS2.Pdf.Pdfium;
|
||||
|
||||
// TODO: Use PdfiumException (with a message, defaulting to unknown error code for the property) instead of other exception types
|
||||
public class PdfDocument : NativePdfiumObject
|
||||
internal class PdfDocument : NativePdfiumObject
|
||||
{
|
||||
public static PdfDocument Load(string path, string? password = null)
|
||||
{
|
@ -1,8 +1,8 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf.Pdfium;
|
||||
namespace NAPS2.Pdf.Pdfium;
|
||||
|
||||
public struct PdfImageMetadata
|
||||
internal struct PdfImageMetadata
|
||||
{
|
||||
public int Width;
|
||||
public int Height;
|
@ -1,6 +1,6 @@
|
||||
namespace NAPS2.ImportExport.Pdf.Pdfium;
|
||||
namespace NAPS2.Pdf.Pdfium;
|
||||
|
||||
public record struct PdfMatrix(float a, float b, float c, float d, float e, float f)
|
||||
internal record struct PdfMatrix(float a, float b, float c, float d, float e, float f)
|
||||
{
|
||||
public static PdfMatrix FillPage(float width, float height)
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
namespace NAPS2.ImportExport.Pdf.Pdfium;
|
||||
namespace NAPS2.Pdf.Pdfium;
|
||||
|
||||
public class PdfPage : NativePdfiumObject
|
||||
internal class PdfPage : NativePdfiumObject
|
||||
{
|
||||
|
||||
internal PdfPage(IntPtr handle, PdfDocument document, int pageIndex) : base(handle)
|
@ -1,9 +1,9 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf.Pdfium;
|
||||
namespace NAPS2.Pdf.Pdfium;
|
||||
|
||||
public class PdfPageObject : NativePdfiumObject
|
||||
internal class PdfPageObject : NativePdfiumObject
|
||||
{
|
||||
private readonly bool _owned;
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System.Text;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf.Pdfium;
|
||||
namespace NAPS2.Pdf.Pdfium;
|
||||
|
||||
public class PdfText : NativePdfiumObject
|
||||
internal class PdfText : NativePdfiumObject
|
||||
{
|
||||
internal PdfText(IntPtr handle) : base(handle)
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
namespace NAPS2.ImportExport.Pdf.Pdfium;
|
||||
namespace NAPS2.Pdf.Pdfium;
|
||||
|
||||
public enum PdfiumErrorCode
|
||||
internal enum PdfiumErrorCode
|
||||
{
|
||||
Success = 0,
|
||||
Unknown = 1,
|
@ -1,6 +1,6 @@
|
||||
namespace NAPS2.ImportExport.Pdf.Pdfium;
|
||||
namespace NAPS2.Pdf.Pdfium;
|
||||
|
||||
public class PdfiumException : Exception
|
||||
internal class PdfiumException : Exception
|
||||
{
|
||||
public PdfiumException(PdfiumErrorCode errorCode)
|
||||
: base($"Pdf error: {errorCode}")
|
@ -2,9 +2,9 @@
|
||||
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf.Pdfium;
|
||||
namespace NAPS2.Pdf.Pdfium;
|
||||
|
||||
public class PdfiumNativeLibrary : Unmanaged.NativeLibrary
|
||||
internal class PdfiumNativeLibrary : Unmanaged.NativeLibrary
|
||||
{
|
||||
private static readonly Lazy<PdfiumNativeLibrary> LazyInstance = new(() =>
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
namespace NAPS2.ImportExport.Pdf.Pdfium;
|
||||
namespace NAPS2.Pdf.Pdfium;
|
||||
|
||||
public enum TextRenderMode
|
||||
internal enum TextRenderMode
|
||||
{
|
||||
Unknown = -1,
|
||||
Fill = 0,
|
@ -1,9 +1,9 @@
|
||||
using NAPS2.Images.Bitwise;
|
||||
using NAPS2.ImportExport.Pdf.Pdfium;
|
||||
using NAPS2.Pdf.Pdfium;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public static class PdfiumImageExtractor
|
||||
internal static class PdfiumImageExtractor
|
||||
{
|
||||
public static IMemoryImage? GetSingleImage(ImageContext imageContext, PdfPage page)
|
||||
{
|
@ -1,11 +1,11 @@
|
||||
using NAPS2.ImportExport.Pdf.Pdfium;
|
||||
using NAPS2.Ocr;
|
||||
using NAPS2.Ocr;
|
||||
using NAPS2.Pdf.Pdfium;
|
||||
using NAPS2.Scan;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
// TODO: Experimental. Also remember that this is failing with access violations on 32-bit (see tests).
|
||||
public class PdfiumPdfExporter : IPdfExporter
|
||||
internal class PdfiumPdfExporter : IPdfExporter
|
||||
{
|
||||
private readonly ScanningContext _scanningContext;
|
||||
|
@ -1,9 +1,9 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using NAPS2.ImportExport.Pdf.Pdfium;
|
||||
using NAPS2.Pdf.Pdfium;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public class PdfiumPdfReader
|
||||
internal class PdfiumPdfReader
|
||||
{
|
||||
public PdfMetadata ReadMetadata(string path, string? password = null)
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using NAPS2.Images.Bitwise;
|
||||
using NAPS2.ImportExport.Pdf.Pdfium;
|
||||
using NAPS2.Pdf.Pdfium;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public class PdfiumPdfRenderer : IPdfRenderer
|
||||
internal class PdfiumPdfRenderer : IPdfRenderer
|
||||
{
|
||||
public IEnumerable<IMemoryImage> Render(ImageContext imageContext, string path, PdfRenderSize renderSize,
|
||||
string? password = null)
|
@ -1,8 +1,8 @@
|
||||
using NAPS2.Remoting.Worker;
|
||||
|
||||
namespace NAPS2.ImportExport.Pdf;
|
||||
namespace NAPS2.Pdf;
|
||||
|
||||
public class PdfiumWorkerCoordinator : IPdfRenderer
|
||||
internal class PdfiumWorkerCoordinator : IPdfRenderer
|
||||
{
|
||||
private readonly WorkerPool _workerPool;
|
||||
|
@ -4,7 +4,7 @@ using Grpc.Core;
|
||||
using NAPS2.ImportExport.Email;
|
||||
using NAPS2.ImportExport.Email.Mapi;
|
||||
using NAPS2.ImportExport.Images;
|
||||
using NAPS2.ImportExport.Pdf;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Scan;
|
||||
using NAPS2.Scan.Internal;
|
||||
using NAPS2.Scan.Internal.Twain;
|
||||
|
Loading…
Reference in New Issue
Block a user