Commit 9218b0c9 authored by tsuji's avatar tsuji

解像度問題修正で新たに構築した.NetFramework4.6.1版を追加

parent 45b391e7

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.1684
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSRender", "CSRender\CSRender.csproj", "{FF5750DD-484C-453F-BC0D-C59FE0BBF8BF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FF5750DD-484C-453F-BC0D-C59FE0BBF8BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FF5750DD-484C-453F-BC0D-C59FE0BBF8BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FF5750DD-484C-453F-BC0D-C59FE0BBF8BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FF5750DD-484C-453F-BC0D-C59FE0BBF8BF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {55215199-3AE8-470F-BCC4-2ED101ED4367}
EndGlobalSection
EndGlobal
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="CSRender.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
</startup>
<userSettings>
<CSRender.Properties.Settings>
<setting name="resolutionSetting" serializeAs="String">
<value>75</value>
</setting>
<setting name="formatSetting" serializeAs="String">
<value />
</setting>
<setting name="shiftPixelSetting" serializeAs="String">
<value>2</value>
</setting>
<setting name="colorMarginSetting" serializeAs="String">
<value>60</value>
</setting>
<setting name="removePointSetting" serializeAs="String">
<value>8</value>
</setting>
<setting name="shadingOffSetting" serializeAs="String">
<value>5</value>
</setting>
<setting name="workSpaceSetting" serializeAs="String">
<value />
</setting>
<setting name="referenceSetting" serializeAs="String">
<value />
</setting>
<setting name="targetSetting" serializeAs="String">
<value />
</setting>
</CSRender.Properties.Settings>
</userSettings>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC マニフェスト オプション
Windows のユーザー アカウント制御のレベルを変更するには、
requestedExecutionLevel ノードを以下のいずれかで置換します。
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
requestedExecutionLevel 要素を指定すると、ファイルおよびレジストリの仮想化が無効にされます。
アプリケーションが下位互換性を保つためにこの仮想化を要求する場合、この要素を
削除します。
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- このアプリケーションがテストされ、動作するよう設計された Windows バージョンの
一覧。適切な要素をコメント解除すると、最も互換性のある環境を Windows が
自動的に選択します。-->
<!-- Windows Vista -->
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
<!-- Windows 7 -->
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
<!-- Windows 8 -->
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
<!-- Windows 8.1 -->
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
<!-- Windows 10 -->
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
</application>
</compatibility>
<!-- アプリケーションが DPI 対応であり、それ以上の DPI で Windows によって自動的にスケーリングされないことを
示します。Windows Presentation Foundation (WPF) アプリケーションは自動的に DPI に対応し、オプトインする必要は
ありません。さらに、この設定にオプトインする .NET Framework 4.6 を対象とする Windows Forms アプリケーションは、
app.config ファイルで 'EnableWindowsFormsHighDpiAutoResizing' 設定を 'true' に設定する必要があります。-->
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
PerMonitor
</dpiAwareness>
</windowsSettings>
</application>
<!-- Windows のコモン コントロールとダイアログのテーマを有効にします (Windows XP 以降) -->
<!--
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
-->
</assembly>
<Application x:Class="CSRender.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:CSRender"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace CSRender
{
/// <summary>
/// App.xaml の相互作用ロジック
/// </summary>
public partial class App : Application
{
}
}
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{FF5750DD-484C-453F-BC0D-C59FE0BBF8BF}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>CSRender</RootNamespace>
<AssemblyName>CSRender</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.WindowsAPICodePack, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.WindowsAPICodePack-Core.1.1.0.2\lib\Microsoft.WindowsAPICodePack.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAPICodePack.Shell, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.WindowsAPICodePack-Shell.1.1.0.0\lib\Microsoft.WindowsAPICodePack.Shell.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAPICodePack.ShellExtensions, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.WindowsAPICodePack-Shell.1.1.0.0\lib\Microsoft.WindowsAPICodePack.ShellExtensions.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="WindowsFormsIntegration" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="CompareTIFF.cs" />
<Compile Include="CustomMsgBox.cs" />
<Compile Include="FilePathSelect.cs" />
<Compile Include="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="OutputTiff.cs" />
<Compile Include="PageComboBox.cs" />
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="App.manifest">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</None>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Controls.Primitives;
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.IO;
namespace CSRender
{
class CompareTIFF
{
public static string runPureVerify(string targetDir, string referenceDir, string workPath,
string shiftPixel, string colorMargin, string removePoint, string shadingOff, bool reportFlag, string reportName)
{
//実行用コンソールの呼び出し
ProcessStartInfo processStartInfo = new ProcessStartInfo();
string appPath = System.Reflection.Assembly.GetExecutingAssembly().Location; //モジュールのパスを取得
string appDirectory = appPath.Substring(0, appPath.LastIndexOf(@"\") + 1); //モジュールの存在するディレクトリを取得
string exePath = System.IO.Path.Combine("PureVerify.Data", "RipVerify", "bin", "x64");
processStartInfo.FileName = System.IO.Path.Combine(appDirectory, exePath, "PureVerify.exe");
processStartInfo.CreateNoWindow = true; // コマンドプロンプトを非表示
processStartInfo.UseShellExecute = false; // シェル機能オフ
processStartInfo.RedirectStandardOutput = true;//標準出力をリダイレクト
//引数設定
//指定ファイル
processStartInfo.Arguments = "/tar ";
processStartInfo.Arguments += targetDir;
//リファレンスファイル
processStartInfo.Arguments += " /ref ";
processStartInfo.Arguments += referenceDir;
//EquiosCenterの場所
string EquiosCenter = System.IO.Path.Combine(appDirectory, "PureVerify.Data", "EquiosCenter");
processStartInfo.Arguments += " /equios ";
processStartInfo.Arguments += EquiosCenter;
//出力ファイル形式の引数
processStartInfo.Arguments += " /work ";
//processStartInfo.Arguments += workPath;
string workDir = System.IO.Path.Combine(appDirectory, "PureVerify.Data", "RipVerify");
processStartInfo.Arguments += workDir;
//検版の指定(2だとNGログ検版(LOG-Diff)になる)
processStartInfo.Arguments += " /operation \"1\"";
//差異箇所マークのサイズを指定
processStartInfo.Arguments += " /markdis \"50\"";
//PDFReportの画像の圧縮形式(0:ZLIB、1:LZW、2:JPEG、3:JPEG2000、4:RUN_LENGTH)
processStartInfo.Arguments += " /encode \"1\"";
//検版結果OKとなったファイルリストをPDFレポートの最後に記載(0:記載しない、1:記載する)
processStartInfo.Arguments += " /show \"1\"";
//検版品質ファイルの選択(0:弱、1:中、2:強、3:カスタム)
processStartInfo.Arguments += " /quality \"3\"";
//検版パラメータの設定
processStartInfo.Arguments += " /shiftpixel \"";
processStartInfo.Arguments += shiftPixel;
processStartInfo.Arguments += "\" /colormargin \"";
processStartInfo.Arguments += colorMargin;
processStartInfo.Arguments += "\" /removepoint \"";
processStartInfo.Arguments += removePoint;
processStartInfo.Arguments += "\" /shadingoff \"";
processStartInfo.Arguments += shadingOff;
processStartInfo.Arguments += "\"";
if (reportFlag == true)
{
processStartInfo.Arguments += " /inspReport \"";
processStartInfo.Arguments += reportName;
processStartInfo.Arguments += "\"";
}
//CSRender.exeを実行
Process process = Process.Start(processStartInfo);
process.BeginOutputReadLine();
process.WaitForExit();
process.Close();
return workDir;
}
//指定先にレポートを移動
public static void moveReport(string resultPath, string workPath)
{
string reportPath = System.IO.Path.Combine(resultPath, "report");
if (!Directory.Exists(reportPath))//指定先にreportフォルダがあるか
{
Directory.CreateDirectory(reportPath);//なければ新規でreportフォルダを作成
}
var allReport = Directory.EnumerateFiles(System.IO.Path.Combine(workPath, "report")
, "*", SearchOption.TopDirectoryOnly);//reportフォルダ内の全てのファイルを取得
foreach (string file in allReport)
{
string fileTarget = System.IO.Path.Combine(reportPath, System.IO.Path.GetFileName(file));//旧パスからファイル名を取得して新しいパスを作成
File.Copy(file, fileTarget, true);//指定先にコピー
File.Delete(file);//コピー元のファイルを削除
}
}
//検版レポートのファイル名を取得
public static string getReportName(string workPath)
{
string[] reportFilePath = System.IO.Directory.GetFiles(System.IO.Path.Combine(workPath, "report")
, "*.pdf", System.IO.SearchOption.TopDirectoryOnly);//レポートファイルのパスを取得
string ReportName = System.IO.Path.GetFileName(reportFilePath[0]);//file名を抽出
return ReportName;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Interop;
using System.Runtime.InteropServices;
namespace CSRender
{
class CustomMsgBox
{
/// <summary>
/// 親ウィンドウ
/// </summary>
private Window ownerWindow = null;
/// <summary>
/// フックハンドル
/// </summary>
private IntPtr hHook = IntPtr.Zero;
/// <summary>
/// メッセージボックスを表示する
/// </summary>
/// <param name="owner"></param>
/// <param name="messageBoxText"></param>
/// <param name="caption"></param>
/// <param name="button"></param>
/// <param name="icon"></param>
/// <returns></returns>
public static MessageBoxResult Show(
Window owner,
string messageBoxText,
string caption,
MessageBoxButton button,
MessageBoxImage icon)
{
if (owner.WindowState == WindowState.Minimized)
{
return MessageBox.Show(owner, messageBoxText, caption, button, icon);
}
else
{
CustomMsgBox mbox = new CustomMsgBox(owner);
return mbox.Show(messageBoxText, caption, button, icon);
}
}
/// <summary>
/// コンストラクタ
/// </summary>
/// <param name="window">Owner Window</param>
private CustomMsgBox(Window window)
{
ownerWindow = window;
}
/// <summary>
/// メッセージボックスを表示する
/// </summary>
/// <param name="messageBoxText"></param>
/// <param name="caption"></param>
/// <param name="button"></param>
/// <param name="icon"></param>
/// <returns></returns>
private MessageBoxResult Show(
string messageBoxText,
string caption,
MessageBoxButton button,
MessageBoxImage icon)
{
// フックを設定する。
HwndSource hwndSource = (HwndSource)HwndSource.FromVisual(ownerWindow);
IntPtr hInstance = WinAPI.GetWindowLong(hwndSource.Handle, WinAPI.GWL_HINSTANCE);
IntPtr threadId = WinAPI.GetCurrentThreadId();
hHook = WinAPI.SetWindowsHookEx(WinAPI.WH_CBT, new WinAPI.HOOKPROC(HookProc), hInstance, threadId);
return MessageBox.Show(ownerWindow, messageBoxText, caption, button, icon);
}
/// <summary>
/// フックプロシージャ
/// </summary>
/// <param name="nCode"></param>
/// <param name="wParam"></param>
/// <param name="lParam"></param>
/// <returns></returns>
private IntPtr HookProc(int nCode, IntPtr wParam, IntPtr lParam)
{
if (nCode == WinAPI.HCBT_ACTIVATE)
{
WinAPI.RECT rcForm = new WinAPI.RECT(0, 0, 0, 0);
WinAPI.RECT rcMsgBox = new WinAPI.RECT(0, 0, 0, 0);
HwndSource hwndSource = (HwndSource)HwndSource.FromVisual(ownerWindow);
WinAPI.GetWindowRect(hwndSource.Handle, out rcForm);
WinAPI.GetWindowRect(wParam, out rcMsgBox);
// センター位置を計算する。
int x = (rcForm.Left + (rcForm.Right - rcForm.Left) / 2) - ((rcMsgBox.Right - rcMsgBox.Left) / 2);
int y = (rcForm.Top + (rcForm.Bottom - rcForm.Top) / 2) - ((rcMsgBox.Bottom - rcMsgBox.Top) / 2);
WinAPI.SetWindowPos(wParam, 0, x, y, 0, 0, WinAPI.SWP_NOSIZE | WinAPI.SWP_NOZORDER | WinAPI.SWP_NOACTIVATE);
IntPtr result = WinAPI.CallNextHookEx(hHook, nCode, wParam, lParam);
// フックを解除する。
WinAPI.UnhookWindowsHookEx(hHook);
hHook = IntPtr.Zero;
return result;
}
else
{
return WinAPI.CallNextHookEx(hHook, nCode, wParam, lParam);
}
}
}
internal class WinAPI
{
[DllImport("user32.dll")]
public static extern IntPtr GetWindowLong(IntPtr hWnd, int nIndex);
[DllImport("kernel32.dll")]
public static extern IntPtr GetCurrentThreadId();
[DllImport("user32.dll")]
public static extern IntPtr SetWindowsHookEx(int idHook, HOOKPROC lpfn, IntPtr hInstance, IntPtr threadId);
[DllImport("user32.dll")]
public static extern bool UnhookWindowsHookEx(IntPtr hHook);
[DllImport("user32.dll")]
public static extern IntPtr CallNextHookEx(IntPtr hHook, int nCode, IntPtr wParam, IntPtr lParam);
[DllImport("user32.dll")]
public static extern bool SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);
[DllImport("user32.dll")]
public static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);
public delegate IntPtr HOOKPROC(int nCode, IntPtr wParam, IntPtr lParam);
public const int GWL_HINSTANCE = (-6);
public const int WH_CBT = 5;
public const int HCBT_ACTIVATE = 5;
public const int SWP_NOSIZE = 0x0001;
public const int SWP_NOZORDER = 0x0004;
public const int SWP_NOACTIVATE = 0x0010;
public struct RECT
{
public RECT(int inLeft, int inTop, int inRight, int inBottom)
{
Left = inLeft;
Top = inTop;
Right = inRight;
Bottom = inBottom;
}
public int Left;
public int Top;
public int Right;
public int Bottom;
}
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Controls.Primitives;
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.IO;
namespace CSRender
{
class OutputTIFF
{
public static string runCSRender(string resolutionNum, string outputFile,
bool pageFlag, string filePage, string targetPath, string workPath)
{
//実行用コンソール呼び出し
ProcessStartInfo processStartInfo = new ProcessStartInfo();
string appPath = System.Reflection.Assembly.GetExecutingAssembly().Location; //モジュールのパスを取得
string appDirectory = appPath.Substring(0, appPath.LastIndexOf(@"\") + 1); //モジュールの存在するディレクトリを取得
processStartInfo.FileName = System.IO.Path.Combine(appDirectory, "CSRender.Data", "CSRender.exe");
processStartInfo.CreateNoWindow = true; // コマンドプロンプトを非表示
processStartInfo.UseShellExecute = false; // シェル機能オフ
processStartInfo.RedirectStandardOutput = true;//標準出力をリダイレクト
//解像度の引数
processStartInfo.Arguments = "/D ";
processStartInfo.Arguments += resolutionNum;
//出力ファイル形式の引数
processStartInfo.Arguments += " /";
processStartInfo.Arguments += outputFile;
processStartInfo.Arguments += " ";
//必要に応じてページ引数を指定
if (pageFlag == true)
{
processStartInfo.Arguments += "/P \"";
processStartInfo.Arguments += filePage;
processStartInfo.Arguments += "\" ";
}
//指定ファイル
processStartInfo.Arguments += "/F ";
processStartInfo.Arguments += targetPath;
//出力フォルダ
if (workPath != "")
{
processStartInfo.Arguments += " /O ";
processStartInfo.Arguments += workPath;
}
//CSRender.exeを実行
Process process = Process.Start(processStartInfo);
string resuletString = process.StandardOutput.ReadToEnd();
process.WaitForExit();
process.Close();
return resuletString;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Controls.Primitives;
using System.Text.RegularExpressions;
namespace CSRender
{
public partial class MainWindow : Window
{
//コンボボックスの要素
public class ComboBoxSet
{
public int Id { get; set; }
public string Item { get; set; }
}
//クリックしたときに全体を選択
private void PageBox_GotFocusSelectAll(object sender, RoutedEventArgs e)
{
TextBox box = (TextBox)sender;
//box.SelectAll();
this.Dispatcher.InvokeAsync(() => { Task.Delay(10); box.SelectAll(); });
}
//ページ指定のプルダウンに応じてテキストボックスを活性化/非活性化
private void PageRange_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
var SelectedItem = (ComboBoxSet)PageRange.SelectedItem;
if (SelectedItem == null) return;
string PageType = (string)SelectedItem.Item;
if (PageType == "指定")
{
pageBox.IsEnabled = true;
pageLabel.IsEnabled = true;
}
else
{
pageBox.IsEnabled = false;
pageLabel.IsEnabled = false;
}
}
//数字とハイフン、カンマ以外を無効化
private void PageBox_PreviewTextInput(object sender, TextCompositionEventArgs e)
{
var Pagebox = (TextBox)sender;
string str = Pagebox.Text;//文字列
var inputPage = e.Text;//入力された文字
//正規表現で入力文字の判定、数字とピリオド、カンマならtrue
bool PageCheck = new System.Text.RegularExpressions.Regex("[0-9,-]").IsMatch(inputPage);
//入力文字が数値とカンマ、ハイフン以外だったら無効
if (PageCheck == false)
{
e.Handled = true;//無効
return;//終了
}
//キャレット(カーソル)位置が先頭(0)であるときの、ハイフン入力は無効
if (Pagebox.CaretIndex == 0 && inputPage == "-") { e.Handled = true; return; }
//キャレット(カーソル)位置が先頭(0)であるときの、カンマ入力は無効
if (Pagebox.CaretIndex == 0 && inputPage == ",") { e.Handled = true; return; }
}
//誤ったハイフン・カンマ、数字の入力を修正
private void PageBox_LostFocus(object sender, RoutedEventArgs e)
{
//ハイフン、カンマの削除
var PageBox = (TextBox)sender;
string inputText = PageBox.Text;
// -,や,- は入力ミスなので後の文字だけ削除
inputText = inputText.Replace("-,", "-");
inputText = inputText.Replace(",-", ",");
//先頭か末尾にあった場合は削除
if (inputText.StartsWith(",") || inputText.EndsWith(","))
{
inputText = inputText.TrimStart(',');
inputText = inputText.TrimEnd(',');
}
if (inputText.StartsWith("-") || inputText.EndsWith("-"))
{
inputText = inputText.TrimStart('-');
inputText = inputText.TrimEnd('-');
}
//先頭が0の場合は1に修正
if (inputText.StartsWith("0"))
{
inputText = inputText.TrimStart('0');
inputText = "1" + inputText;
}
PageBox.Text = inputText;
}
private void PageBox_PreviewExecuted(object sender, ExecutedRoutedEventArgs e)
{
//貼り付け無効
if (e.Command == ApplicationCommands.Paste)
{
e.Handled = true;
}
}
//スペースキーが押されたときは、それを無効にする
private void PageBox_PreviewKeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Space) e.Handled = true;
}
}
}
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("CSRender")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CSRender")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// ComVisible を false に設定すると、このアセンブリ内の型は COM コンポーネントから
// 参照できなくなります。COM からこのアセンブリ内の型にアクセスする必要がある場合は、
// その型の ComVisible 属性を true に設定してください。
[assembly: ComVisible(false)]
//ローカライズ可能なアプリケーションのビルドを開始するには、
//.csproj ファイルの <UICulture>CultureYouAreCodingWith</UICulture> を
//<PropertyGroup> 内部で設定します。たとえば、
//ソース ファイルで英語を使用している場合、<UICulture> を en-US に設定します。次に、
//下の NeutralResourceLanguage 属性のコメントを解除します。下の行の "en-US" を
//プロジェクト ファイルの UICulture 設定と一致するよう更新します。
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //テーマ固有のリソース ディクショナリが置かれている場所
//(リソースがページ、
//またはアプリケーション リソース ディクショナリに見つからない場合に使用されます)
ResourceDictionaryLocation.SourceAssembly //汎用リソース ディクショナリが置かれている場所
//(リソースがページ、
//アプリケーション、またはいずれのテーマ固有のリソース ディクショナリにも見つからない場合に使用されます)
)]
// アセンブリのバージョン情報は次の 4 つの値で構成されています:
//
// メジャー バージョン
// マイナー バージョン
// ビルド番号
// Revision
//
// すべての値を指定するか、次を使用してビルド番号とリビジョン番号を既定に設定できます
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
//------------------------------------------------------------------------------
// <auto-generated>
// このコードはツールによって生成されました。
// ランタイム バージョン:4.0.30319.42000
//
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
// コードが再生成されるときに損失したりします
// </auto-generated>
//------------------------------------------------------------------------------
namespace CSRender.Properties
{
/// <summary>
/// ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラスです。
/// </summary>
// このクラスは StronglyTypedResourceBuilder クラスによって ResGen
// または Visual Studio のようなツールを使用して自動生成されました。
// メンバーを追加または削除するには、.ResX ファイルを編集して、/str オプションと共に
// ResGen を実行し直すか、または VS プロジェクトをリビルドします。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// このクラスで使用されるキャッシュされた ResourceManager インスタンスを返します。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CSRender.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// すべてについて、現在のスレッドの CurrentUICulture プロパティをオーバーライドします
/// 現在のスレッドの CurrentUICulture プロパティをオーバーライドします。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
//------------------------------------------------------------------------------
// <auto-generated>
// このコードはツールによって生成されました。
// ランタイム バージョン:4.0.30319.42000
//
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
// コードが再生成されるときに損失したりします。
// </auto-generated>
//------------------------------------------------------------------------------
namespace CSRender.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("75")]
public decimal resolutionSetting {
get {
return ((decimal)(this["resolutionSetting"]));
}
set {
this["resolutionSetting"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string formatSetting {
get {
return ((string)(this["formatSetting"]));
}
set {
this["formatSetting"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("2")]
public decimal shiftPixelSetting {
get {
return ((decimal)(this["shiftPixelSetting"]));
}
set {
this["shiftPixelSetting"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("60")]
public decimal colorMarginSetting {
get {
return ((decimal)(this["colorMarginSetting"]));
}
set {
this["colorMarginSetting"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("8")]
public decimal removePointSetting {
get {
return ((decimal)(this["removePointSetting"]));
}
set {
this["removePointSetting"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("5")]
public decimal shadingOffSetting {
get {
return ((decimal)(this["shadingOffSetting"]));
}
set {
this["shadingOffSetting"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string workSpaceSetting {
get {
return ((string)(this["workSpaceSetting"]));
}
set {
this["workSpaceSetting"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string referenceSetting {
get {
return ((string)(this["referenceSetting"]));
}
set {
this["referenceSetting"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string targetSetting {
get {
return ((string)(this["targetSetting"]));
}
set {
this["targetSetting"] = value;
}
}
}
}
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="CSRender.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="resolutionSetting" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">75</Value>
</Setting>
<Setting Name="formatSetting" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="shiftPixelSetting" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">2</Value>
</Setting>
<Setting Name="colorMarginSetting" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">60</Value>
</Setting>
<Setting Name="removePointSetting" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">8</Value>
</Setting>
<Setting Name="shadingOffSetting" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">5</Value>
</Setting>
<Setting Name="workSpaceSetting" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="referenceSetting" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="targetSetting" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>
\ No newline at end of file
// ゆすらせ量
**ShiftPixel: "0"
// 階調マージン
**GradationMargin: "30"
// 孤立点除去
**RemovePoint: "5"
// 平均化
**ShadingOff: "2"
//マルチプロセスモード(自動:0/手動:1)
**MultiProcessMode:"0"
// マルチプロセス数(手動の場合)
**MultiProcessValue: "0"
//バイナリ比較(1:デコード無しで比較)
**ComparisonWithoutDecode:"0"
//処理時間(1:表示)
**IsViewProcessingTime:"1"
// 検版差異出力ファイルタイプ(0:従来/1:1bitTiff)
**OutPutDiffFileType:"1"
// 孤立点除去の繰り返し数(0:デフォルト繰り返し無し)
**RemovePointRepeatCount:"0"
// ゆすらせ量
**ShiftPixel: "1"
// 階調マージン
**GradationMargin: "30"
// 孤立点除去
**RemovePoint: "5"
// 平均化
**ShadingOff: "0"
//マルチプロセスモード(自動:0/手動:1)
**MultiProcessMode:"0"
// マルチプロセス数(手動の場合)
**MultiProcessValue: "0"
//バイナリ比較(1:デコード無しで比較)
**ComparisonWithoutDecode:"0"
//処理時間(1:表示)
**IsViewProcessingTime:"1"
// 検版差異出力ファイルタイプ(0:従来/1:1bitTiff)
**OutPutDiffFileType:"1"
// 孤立点除去の繰り返し数(0:デフォルト繰り返し無し)
**RemovePointRepeatCount:"0"
// ゆすらせ量
**ShiftPixel: "2"
// 階調マージン
**GradationMargin: "80"
// 孤立点除去
**RemovePoint: "8"
// 平均化
**ShadingOff: "5"
//マルチプロセスモード(自動:0/手動:1)
**MultiProcessMode:"0"
// マルチプロセス数(手動の場合)
**MultiProcessValue: "0"
//バイナリ比較(1:デコード無しで比較)
**ComparisonWithoutDecode:"0"
//処理時間(1:表示)
**IsViewProcessingTime:"1"
// 検版差異出力ファイルタイプ(0:従来/1:1bitTiff)
**OutPutDiffFileType:"1"
// 孤立点除去の繰り返し数(0:デフォルト繰り返し無し)
**RemovePointRepeatCount:"1"
// ゆすらせ量
**ShiftPixel: "2"
// 階調マージン
**GradationMargin: "60"
// 孤立点除去
**RemovePoint: "8"
// 平均化
**ShadingOff: "5"
//マルチプロセスモード(自動:0/手動:1)
**MultiProcessMode:"0"
// マルチプロセス数(手動の場合)
**MultiProcessValue: "0"
//バイナリ比較(1:デコード無しで比較)
**ComparisonWithoutDecode:"0"
//処理時間(1:表示)
**IsViewProcessingTime:"1"
// 検版差異出力ファイルタイプ(0:従来/1:1bitTiff)
**OutPutDiffFileType:"1"
// 孤立点除去の繰り返し数(0:デフォルト繰り返し無し)
**RemovePointRepeatCount:"0"
<?xml version="1.0" encoding="UTF-8"?>
<ripverify_report unit="pt" color="BLACK">
<!--unit: default is pt; available unit: mm, pt-->
<!--color: default is BLACK; available color: BLACK, RED, BLUE, GREEN, YELLOW-->
<page>
<PageNumSpec>PAGE</PageNumSpec>
<top flg_display_field_no_value="0">
<!--flg_display_field_no_value Setting range: 1=true, 0=false-->
<margin top="20" bottom="20" left="30" right="30" />
<title font_size="20" line_spacing="10" spacing_sections="40">PureVerify
Report</title>
<logo file_name="equios.jpg" width="137" height="" />
<!--if input one field width or height, other field will be auto adjust aspect ratio-->
<sections spacing_before="5" spacing_after="20">
<title color="BLUE" font_size="15" spacing_after="5" />
<fields color="BLACK" font_size="10" line_spacing="5" />
<cols>
<col id="key" indent="10" />
<col id="value" indent="210" />
</cols>
</sections>
<!--Describe language for each section in top page-->
<section id="inspection_result">
<title>Inspection result</title>
<field id="RESULT_NG" color="RED">Number of difference</field>
<!--Using color is RED for text of this field-->
<field id="LIST_NG">Difference page</field>
<field id="RESULT_INSPECTION_NUM">Number of inspection page</field>
<field id="RESULT_INSPECTION_TIME">Inspection time</field>
<field id="RESULT_DATE">Report created date</field>
<field id="RESULT_REPORT_NAME">Report file name</field>
<field id="NUM_PART_OUTPUT">Number of part of output</field>
</section>
<section id="pureVerify">
<title>PureVerify</title>
<field id="ENV_VERSION">Version</field>
<field id="ENV_COMPUTER_NAME">Computer name</field>
<field id="ENV_EQUIOS_PATH">EquiosCenter path</field>
<field id="ENV_RIPVERIFY_PATH">PureVerify path</field>
<field id="ENV_INSPECTION_QUALITY">Inspection sensitivity</field>
<field id="ENV_INSPECTION_SHAKE">Position tolerance</field>
<field id="ENV_INSPECTION_TOLERANCE">Gradient tolerance</field>
<field id="ENV_INSPECTION_ISOLATED">Smallness</field>
<field id="ENV_INSPECTION_SHADE">Perceptual tolerance</field>
<field id="ENV_INSPECTION_AREA">Inspection page</field>
<field id="ENV_IMAGE_RESO">Inspection image resolution</field>
<field id="ENV_MARK_DISTANCE">Mark distance</field>
</section>
<section id="tiff_information">
<title>Tiff information</title>
<field id="TIFF_REFERENCE_PATH">Reference image path</field>
<field id="TIFF_REFERENCE_NUMS">Reference number of image files</field>
<field id="TIFF_TARGET_PATH">Target image path</field>
<field id="TIFF_TARGET_NUMS">Target number of image files</field>
</section>
<section id="misc">
<title>Miscellaneous</title>
<field id="OTHER_INFO">Other information</field>
</section>
</top>
<bottom>
<margin top="20" bottom="20" left="30" right="30" />
<title font_size="20" line_spacing="10" spacing_sections="40">PureVerify Report</title>
<sections spacing_before="5" spacing_after="20">
<title color="BLUE" font_size="15" spacing_after="5" />
<params color="BLACK" font_size="10" line_spacing="5" indent="10"/>
<tables flg_display_title="1" group="1" group_indent="10">
<!--flg_display_title Setting range: 1=true, 0=false-->
<!--group_by_folder Setting range: 1=true, 0=false-->
<fields color="BLACK" font_size="10" line_spacing="5"/>
</tables>
</sections>
<section id="resampled_image">
<title>List of image files which have been converted resolution</title>
<param>
<field id="RESAMPLE_SIZE">RESAMPLE SIZE</field>
<field id="MAX_TIFF_SIZE">MAX TIFF SIZE</field>
</param>
<table id="resampled_image">
<field id="FILE_NAME" indent="10">File name</field>
<field id="ORIGINAL_SIZE" indent="340">Original size</field>
<field id="RESAMPLED_SIZE" indent="430">Resampled size</field>
</table>
</section>
<section id="ok_image">
<title>List of image files without diff points</title>
<table id="ok_image" flg_display_title="0">
<field id="FILE_NAME" indent="10"></field>
</table>
</section>
<section id="missing_image">
<title>List of image files which missing reference or target</title>
<table id="missing_image">
<field id="FILE_NAME" indent="10">File name</field>
<field id="MISSED_FILE" indent="430">Missed file</field>
</table>
</section>
</bottom>
</page>
</ripverify_report>
<?xml version="1.0" encoding="UTF-8"?>
<ripverify_report unit="pt" color="BLACK">
<!--unit: default is pt; available unit: mm, pt-->
<!--color: default is BLACK; available color: BLACK, RED, BLUE, GREEN, YELLOW-->
<page>
<PageNumSpec>PAGE</PageNumSpec>
<top flg_display_field_no_value="0">
<!--flg_display_field_no_value Setting range: 1=true, 0=false-->
<margin top="20" bottom="20" left="30" right="30" />
<title font_size="20" line_spacing="10" spacing_sections="40">PureVerify
Report</title>
<logo file_name="equios.jpg" width="137" height="" />
<!--if input one field width or height, other field will be auto adjust aspect ratio-->
<sections spacing_before="5" spacing_after="20">
<title color="BLUE" font_size="12" spacing_after="5" />
<fields color="BLACK" font_size="10" line_spacing="5" />
<cols>
<col id="key" indent="18" />
<col id="value" indent="218" />
</cols>
</sections>
<!--Describe language for each section in top page-->
<section id="inspection_result">
<title>検査結果</title>
<field id="RESULT_NG" color="RED">差異数</field>
<!--Using color is RED for text of this field-->
<field id="LIST_NG">差異ページ</field>
<field id="RESULT_INSPECTION_NUM">検査画像数</field>
<field id="RESULT_INSPECTION_TIME">検査時間</field>
<field id="RESULT_DATE">レポート作成日</field>
<field id="RESULT_REPORT_NAME">レポートファイル名</field>
<field id="NUM_PART_OUTPUT">分割数</field>
</section>
<section id="pureVerify">
<title>PUREベリファイ</title>
<field id="ENV_VERSION">バージョン</field>
<field id="ENV_COMPUTER_NAME">マシン名</field>
<field id="ENV_EQUIOS_PATH">EquiosCenterパス</field>
<field id="ENV_RIPVERIFY_PATH">PureVerifyパス</field>
<field id="ENV_INSPECTION_QUALITY">検版感度</field>
<field id="ENV_INSPECTION_SHAKE">位置ズレ許容量</field>
<field id="ENV_INSPECTION_TOLERANCE">階調差許容量</field>
<field id="ENV_INSPECTION_ISOLATED">微少差異許容量</field>
<field id="ENV_INSPECTION_SHADE">視覚的あいまい量</field>
<field id="ENV_IMAGE_RESO">画像解像度</field>
<field id="ENV_MARK_DISTANCE">マーク距離</field>
</section>
<section id="tiff_information">
<title>画像情報</title>
<field id="TIFF_REFERENCE_PATH">リファレンス画像パス</field>
<field id="TIFF_REFERENCE_NUMS">リファレンス画像ファイル数</field>
<field id="TIFF_TARGET_PATH">検査画像パス</field>
<field id="TIFF_TARGET_NUMS">検査画像ファイル数</field>
</section>
<section id="misc">
<title>その他</title>
<field id="OTHER_INFO">その他の情報</field>
</section>
</top>
<bottom>
<margin top="20" bottom="20" left="30" right="30" />
<title font_size="20" line_spacing="10" spacing_sections="40">PureVerify Report</title>
<sections spacing_before="5" spacing_after="20">
<title color="BLUE" font_size="12" spacing_after="5" />
<params color="BLACK" font_size="10" line_spacing="5" indent="10"/>
<tables flg_display_title="1" group="1" group_indent="10">
<!--flg_display_title Setting range: 1=true, 0=false-->
<!--group_by_folder Setting range: 1=true, 0=false-->
<fields color="BLACK" font_size="10" line_spacing="5"/>
</tables>
</sections>
<section id="resampled_image">
<title>解像度が変換された画像ファイルリスト</title>
<param>
<field id="RESAMPLE_SIZE">RESAMPLE SIZE</field>
<field id="MAX_TIFF_SIZE">MAX TIFF SIZE</field>
</param>
<table id="resampled_image">
<field id="FILE_NAME" indent="10">ファイル名</field>
<field id="ORIGINAL_SIZE" indent="340">元のサイズ</field>
<field id="RESAMPLED_SIZE" indent="430">変換後のサイズ</field>
</table>
</section>
<section id="ok_image">
<title>差異がなっかた画像ファイルリスト</title>
<table id="ok_image" flg_display_title="0">
<field id="FILE_NAME" indent="10"></field>
</table>
</section>
<section id="missing_image">
<title>レファレンスまたは対象がなかったファイル画像リスト</title>
<table id="missing_image">
<field id="FILE_NAME" indent="10">ファイル名</field>
<field id="MISSED_FILE" indent="430">抜けているファイル</field>
</table>
</section>
</bottom>
</page>
</ripverify_report>
**EquiosCenter: "C:\Users\EB030221\Desktop\CSRender\PureVerify.Data\EquiosCenter"
**WorkDirRoot: "C:\Users\EB030221\Desktop\CSRender\PureVerify.Data\RipVerify"
**InspQuality: "3"
**MarkDistance: "50"
**ReportEncodeType: "2"
**WndPosLeft: "348"
**WndPosTop: "125"
**WndPosRight: "933"
**WndPosBottom: "556"
**ShowOKList: "1"
//////////////// User Configuration ////////////////
// Password of the Inspection Report
**PDFREPORT_PASSWORD:""
//////////////// Advanced Setting ///////////////////////
// Number of divisions of the Inspection Report
**PDFREPORT_SPLIT_PAGENUM:"32"
// Maximum number of threads
**MakeThreadNums: "0"
//Log output setting: 0:None, 2:Standard
**LogLevel:"2"
////////////////////////// 追加 //////////////////////////////
// ドングルチェックの有無
**VerifyDongleCheck:"0"
// ドングルシリーズID
//**VerifyDongleSeriesID:"0x20000"
**VerifyDongleSeriesID:"0x2000"
// 作業フォルダを削除する
// 1 : 作業フォルダを削除する / 0 : 作業フォルダを削除しない
**IS_DELETE_WORKDIR:"1"
// Inspection Report compression type image
// Default value of compression type image is JPEG
// 0:ZLIB , 1:LZW , 2:JPEG , 3:JPEG2000 , 4:RUN_LENGTH
**CompressType:"2"
// Maximum size of Tiff image (MB)
**MAX_TIFF_SIZE:"2048"
// Size of Tiff image after resampling (MB)
**RESAMPLE_SIZE:"1024"
<?xml version="1.0" encoding="UTF-8"?>
<ripverify_report unit="pt" color="BLACK">
<!--unit: default is pt; available unit: mm, pt-->
<!--color: default is BLACK; available color: BLACK, RED, BLUE, GREEN, YELLOW-->
<page>
<PageNumSpec>PAGE</PageNumSpec>
<top flg_display_field_no_value="0">
<!--flg_display_field_no_value Setting range: 1=true, 0=false-->
<margin top="20" bottom="20" left="30" right="30" />
<title font_size="20" line_spacing="10" spacing_sections="40">PureVerify
Report</title>
<logo file_name="equios.jpg" width="137" height="" />
<!--if input one field width or height, other field will be auto adjust aspect ratio-->
<sections spacing_before="5" spacing_after="20">
<title color="BLUE" font_size="15" spacing_after="5" />
<fields color="BLACK" font_size="10" line_spacing="5" />
<cols>
<col id="key" indent="10" />
<col id="value" indent="210" />
</cols>
</sections>
<!--Describe language for each section in top page-->
<section id="inspection_result">
<title>Inspection result</title>
<field id="RESULT_NG" color="RED">Number of difference</field>
<!--Using color is RED for text of this field-->
<field id="LIST_NG">Difference page</field>
<field id="RESULT_INSPECTION_NUM">Number of inspection page</field>
<field id="RESULT_INSPECTION_TIME">Inspection time</field>
<field id="RESULT_DATE">Report created date</field>
<field id="RESULT_REPORT_NAME">Report file name</field>
<field id="NUM_PART_OUTPUT">Number of part of output</field>
</section>
<section id="pureVerify">
<title>PureVerify</title>
<field id="ENV_VERSION">Version</field>
<field id="ENV_COMPUTER_NAME">Computer name</field>
<field id="ENV_EQUIOS_PATH">EquiosCenter path</field>
<field id="ENV_RIPVERIFY_PATH">PureVerify path</field>
<field id="ENV_INSPECTION_QUALITY">Inspection sensitivity</field>
<field id="ENV_INSPECTION_SHAKE">Position tolerance</field>
<field id="ENV_INSPECTION_TOLERANCE">Gradient tolerance</field>
<field id="ENV_INSPECTION_ISOLATED">Smallness</field>
<field id="ENV_INSPECTION_SHADE">Perceptual tolerance</field>
<field id="ENV_INSPECTION_AREA">Inspection page</field>
<field id="ENV_IMAGE_RESO">Inspection image resolution</field>
<field id="ENV_MARK_DISTANCE">Mark distance</field>
</section>
<section id="tiff_information">
<title>Tiff information</title>
<field id="TIFF_REFERENCE_PATH">Reference image path</field>
<field id="TIFF_REFERENCE_NUMS">Reference number of image files</field>
<field id="TIFF_TARGET_PATH">Target image path</field>
<field id="TIFF_TARGET_NUMS">Target number of image files</field>
</section>
<section id="misc">
<title>Miscellaneous</title>
<field id="OTHER_INFO">Other information</field>
</section>
</top>
<bottom>
<margin top="20" bottom="20" left="30" right="30" />
<title font_size="20" line_spacing="10" spacing_sections="40">PureVerify Report</title>
<sections spacing_before="5" spacing_after="20">
<title color="BLUE" font_size="15" spacing_after="5" />
<params color="BLACK" font_size="10" line_spacing="5" indent="10"/>
<tables flg_display_title="1" group="1" group_indent="10">
<!--flg_display_title Setting range: 1=true, 0=false-->
<!--group_by_folder Setting range: 1=true, 0=false-->
<fields color="BLACK" font_size="10" line_spacing="5"/>
</tables>
</sections>
<section id="resampled_image">
<title>List of image files which have been converted resolution</title>
<param>
<field id="RESAMPLE_SIZE">RESAMPLE SIZE</field>
<field id="MAX_TIFF_SIZE">MAX TIFF SIZE</field>
</param>
<table id="resampled_image">
<field id="FILE_NAME" indent="10">File name</field>
<field id="ORIGINAL_SIZE" indent="340">Original size</field>
<field id="RESAMPLED_SIZE" indent="430">Resampled size</field>
</table>
</section>
<section id="ok_image">
<title>List of image files without diff points</title>
<table id="ok_image" flg_display_title="0">
<field id="FILE_NAME" indent="10"></field>
</table>
</section>
<section id="missing_image">
<title>List of image files which missing reference or target</title>
<table id="missing_image">
<field id="FILE_NAME" indent="10">File name</field>
<field id="MISSED_FILE" indent="430">Missed file</field>
</table>
</section>
</bottom>
</page>
</ripverify_report>
<?xml version="1.0" encoding="UTF-8"?>
<ripverify_report unit="pt" color="BLACK">
<!--unit: default is pt; available unit: mm, pt-->
<!--color: default is BLACK; available color: BLACK, RED, BLUE, GREEN, YELLOW-->
<page>
<PageNumSpec>PAGE</PageNumSpec>
<top flg_display_field_no_value="0">
<!--flg_display_field_no_value Setting range: 1=true, 0=false-->
<margin top="20" bottom="20" left="30" right="30" />
<title font_size="20" line_spacing="10" spacing_sections="40">PureVerify
Report</title>
<logo file_name="equios.jpg" width="137" height="" />
<!--if input one field width or height, other field will be auto adjust aspect ratio-->
<sections spacing_before="5" spacing_after="20">
<title color="BLUE" font_size="12" spacing_after="5" />
<fields color="BLACK" font_size="10" line_spacing="5" />
<cols>
<col id="key" indent="18" />
<col id="value" indent="218" />
</cols>
</sections>
<!--Describe language for each section in top page-->
<section id="inspection_result">
<title>検査結果</title>
<field id="RESULT_NG" color="RED">差異数</field>
<!--Using color is RED for text of this field-->
<field id="LIST_NG">差異ページ</field>
<field id="RESULT_INSPECTION_NUM">検査画像数</field>
<field id="RESULT_INSPECTION_TIME">検査時間</field>
<field id="RESULT_DATE">レポート作成日</field>
<field id="RESULT_REPORT_NAME">レポートファイル名</field>
<field id="NUM_PART_OUTPUT">分割数</field>
</section>
<section id="pureVerify">
<title>PUREベリファイ</title>
<field id="ENV_VERSION">バージョン</field>
<field id="ENV_COMPUTER_NAME">マシン名</field>
<field id="ENV_EQUIOS_PATH">EquiosCenterパス</field>
<field id="ENV_RIPVERIFY_PATH">PureVerifyパス</field>
<field id="ENV_INSPECTION_QUALITY">検版感度</field>
<field id="ENV_INSPECTION_SHAKE">位置ズレ許容量</field>
<field id="ENV_INSPECTION_TOLERANCE">階調差許容量</field>
<field id="ENV_INSPECTION_ISOLATED">微少差異許容量</field>
<field id="ENV_INSPECTION_SHADE">視覚的あいまい量</field>
<field id="ENV_IMAGE_RESO">画像解像度</field>
<field id="ENV_MARK_DISTANCE">マーク距離</field>
</section>
<section id="tiff_information">
<title>画像情報</title>
<field id="TIFF_REFERENCE_PATH">リファレンス画像パス</field>
<field id="TIFF_REFERENCE_NUMS">リファレンス画像ファイル数</field>
<field id="TIFF_TARGET_PATH">検査画像パス</field>
<field id="TIFF_TARGET_NUMS">検査画像ファイル数</field>
</section>
<section id="misc">
<title>その他</title>
<field id="OTHER_INFO">その他の情報</field>
</section>
</top>
<bottom>
<margin top="20" bottom="20" left="30" right="30" />
<title font_size="20" line_spacing="10" spacing_sections="40">PureVerify Report</title>
<sections spacing_before="5" spacing_after="20">
<title color="BLUE" font_size="12" spacing_after="5" />
<params color="BLACK" font_size="10" line_spacing="5" indent="10"/>
<tables flg_display_title="1" group="1" group_indent="10">
<!--flg_display_title Setting range: 1=true, 0=false-->
<!--group_by_folder Setting range: 1=true, 0=false-->
<fields color="BLACK" font_size="10" line_spacing="5"/>
</tables>
</sections>
<section id="resampled_image">
<title>解像度が変換された画像ファイルリスト</title>
<param>
<field id="RESAMPLE_SIZE">RESAMPLE SIZE</field>
<field id="MAX_TIFF_SIZE">MAX TIFF SIZE</field>
</param>
<table id="resampled_image">
<field id="FILE_NAME" indent="10">ファイル名</field>
<field id="ORIGINAL_SIZE" indent="340">元のサイズ</field>
<field id="RESAMPLED_SIZE" indent="430">変換後のサイズ</field>
</table>
</section>
<section id="ok_image">
<title>差異がなっかた画像ファイルリスト</title>
<table id="ok_image" flg_display_title="0">
<field id="FILE_NAME" indent="10"></field>
</table>
</section>
<section id="missing_image">
<title>レファレンスまたは対象がなかったファイル画像リスト</title>
<table id="missing_image">
<field id="FILE_NAME" indent="10">ファイル名</field>
<field id="MISSED_FILE" indent="430">抜けているファイル</field>
</table>
</section>
</bottom>
</page>
</ripverify_report>
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.WindowsAPICodePack-Core" version="1.1.0.2" targetFramework="net462" />
<package id="Microsoft.WindowsAPICodePack-Shell" version="1.1.0.0" targetFramework="net462" />
</packages>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment