mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 20:30:51 +00:00
flashpaper2pdf, zoom
This commit is contained in:
@@ -47,7 +47,7 @@ import picocli.CommandLine.ParentCommand;
|
||||
synopsisHeading = "@|bold,underline Usage|@:",
|
||||
footerHeading = "%n@|bold,underline Examples|@:%n",
|
||||
footer = {
|
||||
"ffdec-cli export --character-id=51,43 shape:png,shape:bmp c:/out/ c:/files/input.swf",
|
||||
"ffdec-cli export --zoom=2 --character-id=51,43 shape:png,shape:bmp c:/out/ c:/files/input.swf",
|
||||
"ffdec-cli export --frame=2-10 frame:svg c:/out/ c:/files/input.swf",
|
||||
"ffdec-cli export --embed --class=mypkg.Main,other.+ script c:/out/ c:/files/input.swf",
|
||||
"ffdec-cli export all c:/out/ c:/files/input.swf",
|
||||
@@ -140,6 +140,13 @@ public class Export implements Runnable {
|
||||
)
|
||||
boolean showStatistics = false;
|
||||
|
||||
@Option (
|
||||
names = "--zoom",
|
||||
paramLabel = "<N>",
|
||||
description = "Apply zoom level"
|
||||
)
|
||||
Double zoom;
|
||||
|
||||
@Parameters(index = "0",
|
||||
split = ",",
|
||||
arity = "1",
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.jpexs.decompiler.flash.cli.commands;
|
||||
|
||||
import com.jpexs.decompiler.flash.cli.VersionProvider;
|
||||
import com.jpexs.decompiler.flash.cli.commands.types.CompressionKind;
|
||||
import picocli.CommandLine;
|
||||
import picocli.CommandLine.Command;
|
||||
import picocli.CommandLine.Option;
|
||||
import picocli.CommandLine.Parameters;
|
||||
import picocli.CommandLine.ParentCommand;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
@Command(
|
||||
name = "flashpaper2pdf",
|
||||
mixinStandardHelpOptions = true,
|
||||
versionProvider = VersionProvider.class,
|
||||
header = "Convert FlashPaper SWF file to PDF",
|
||||
parameterListHeading = "%n@|bold,underline Parameters|@:%n",
|
||||
synopsisHeading = "@|bold,underline Usage|@:",
|
||||
footerHeading = "%n@|bold,underline Examples|@:%n",
|
||||
footer = {
|
||||
"ffdec-cli flashpaper2pdf input.swf output.pdf",
|
||||
"ffdec-cli flashpaper2pdf --zoom=3 input.swf output.pdf",
|
||||
}
|
||||
)
|
||||
public class FlashPaper2Pdf implements Runnable {
|
||||
@Option (
|
||||
names = "--zoom",
|
||||
paramLabel = "<N>",
|
||||
description = "Specify image quality"
|
||||
)
|
||||
Double zoom;
|
||||
|
||||
@Parameters(
|
||||
index = "0",
|
||||
paramLabel = "IN_FILE",
|
||||
description = "Input file"
|
||||
)
|
||||
String inFile;
|
||||
|
||||
@Parameters(
|
||||
index = "1",
|
||||
paramLabel = "OUT_FILE",
|
||||
description = "Output file"
|
||||
)
|
||||
String outFile;
|
||||
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,8 @@ import picocli.CommandLine.ScopeType;
|
||||
Decompress.class,
|
||||
Decrypt.class,
|
||||
Swf2Xml.class,
|
||||
Xml2Swf.class
|
||||
Xml2Swf.class,
|
||||
FlashPaper2Pdf.class
|
||||
},
|
||||
descriptionHeading = "%n@|bold,underline Description|@:%n",
|
||||
optionListHeading = "%n@|bold,underline Options|@:%n",
|
||||
|
||||
Reference in New Issue
Block a user