File size: 2,288 Bytes
1d5320e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<Window x:Class="WpfEditor.ExportPDFImage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfEditor"
        mc:Ignorable="d"
        Title="PDF图片提取工具" Height="500" Width="550">
    <Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Label Content="PDF文件:" Grid.Row="0"/>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBox x:Name="txtPdfPath" IsReadOnly="True" VerticalAlignment="Center"/>
            <Button x:Name="btnSelectPdf" Content="选择PDF文件" Grid.Column="1" Margin="5,0,0,0" Click="btnSelectPdf_Click"/>
        </Grid>

        <Label Content="输出文件夹:" Grid.Row="2" Margin="0,10,0,0"/>
        <Grid Grid.Row="3">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBox x:Name="txtOutputPath" IsReadOnly="True" VerticalAlignment="Center"/>
            <Button x:Name="btnSelectOutputFolder" Content="选择输出文件夹" Grid.Column="1" Margin="5,0,0,0" Click="btnSelectOutputFolder_Click"/>
        </Grid>

        <Button x:Name="btnExtractImages" Content="提取图片" HorizontalAlignment="Left" Margin="0,15,0,0" Grid.Row="4" VerticalAlignment="Top" Click="btnExtractImages_Click"/>
        <ProgressBar x:Name="progressBar" Height="20" Margin="110,15,0,0" Grid.Row="4" VerticalAlignment="Top"/>
        <Label x:Name="lblStatus" Content="状态:就绪" Margin="0,40,0,0" Grid.Row="4" VerticalAlignment="Top"/>
        <ListBox x:Name="listBoxImages" Margin="0,70,0,0" Grid.Row="4"/>
    </Grid>
</Window>