Konverze souboru z URL adresy

Webová služba ConvertFileFromURL umožňuje provést na serveru konverzi libovolného souboru ze zadané URL adresy do formátu PDF, či PDF/A podle definovaných požadavků v konfigurační struktuře požadavku a výsledný soubor nahrát na jiný server. Pro výsledný soubor je možné nastavit úroveň souladu se specifikací PDF/A, opatření dokumentu elektronickou pečetí, kvalifikovaným časovým razítkem, vodotiskem a další nastavení. Jedná se o interní metodu pro komunikaci se spisovou službou.

Popis služby ConvertFileFromURL včetně WSDL schématu a příklad požadavku a odpovědi pro SOAP 1.1 a SOAP 1.2 je umístěn na http://localhost/ltd/ltd.asmx?op=ConvertFileFromURL.

Parametr "localhost" je název používaný pro lokální počítač; namísto něj zapište jméno/IP adresu LTD serveru (dle nastavení v IIS).

Požadavek

POST /ltd/ltd.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://software602.com/longtermdocs/ConvertFileFromURL"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ConvertFileFromURL xmlns="http://software602.com/longtermdocs/">
      <FileName>string</FileName>
      <SourceFileURL>string</SourceFileURL>
      <FileUploadURL>string</FileUploadURL>
      <Options>
        <RemoveEmptyPages>boolean</RemoveEmptyPages>
        <ReportLanguage>string</ReportLanguage>
        <OCRLanguage>string</OCRLanguage>
        <OCRRecognitionDpi>int</OCRRecognitionDpi>
        <ForceShell>string</ForceShell>
        <PdfFormat>PDF or PDF_A_1b or PDF_A_1a or PDF_A_2b or PDF_A_2a or PDF_A_2u or PDF_A_3b or PDF_A_3a or PDF_A_3u or PDF_X_1 or PDF_X_3 or PDF_X_4 or PDF_X_5</PdfFormat>
        <ForcePDFVersion>string</ForcePDFVersion>
        <BarcodeInfo>
          <PosX>double</PosX>
          <PosY>double</PosY>
          <Width>double</Width>
          <Height>double</Height>
          <Type>Barcode_1D_UPCVersionA or Barcode_1D_UPCVersionE or Barcode_1D_UPCSupplemental2Digit or Barcode_1D_UPCSupplemental5Digit or Barcode_1D_EAN13 or Barcode_1D_EAN8 or Barcode_1D_Interleaved2of5 or Barcode_1D_Standard2of5 or Barcode_1D_Industrial2of5 or Barcode_1D_Code39 or Barcode_1D_Code39Extended or Barcode_1D_Codabar or Barcode_1D_PostNet or Barcode_1D_Bookland or Barcode_1D_ISBN or Barcode_1D_JAN13 or Barcode_1D_MSIMod10 or Barcode_1D_MSI2Mod10 or Barcode_1D_MSIMod11 or Barcode_1D_MSIMod11Mod10 or Barcode_1D_ModifiedPlessey or Barcode_1D_Code11 or Barcode_1D_USD8 or Barcode_1D_UCC12 or Barcode_1D_UCC13 or Barcode_1D_LOGMARS or Barcode_1D_Code128 or Barcode_1D_Code128A or Barcode_1D_Code128B or Barcode_1D_Code128C or Barcode_1D_ITF14 or Barcode_1D_Code93 or Barcode_1D_TelePen or Barcode_PDF417 or Barcode_QR or Barcode_DataMatrix</Type>
          <Data>string</Data>
          <Description>string</Description>
          <Pages>string</Pages>
        </BarcodeInfo>
        <ZFO>
          <AttSettings>
            <ConversionHandling>IGNORE_ATTACHMENTS or ATTACH_WITHOUT_CONVERSION or CONVERT_FAILURE_END or CONVERT_FAILURE_SKIP or CONVERT_FAILURE_ATTACH_ORIGINAL or CONVERT_ALWAYS_ATTACH_ORIGINAL</ConversionHandling>
            <AllowedFiletypes>string</AllowedFiletypes>
          </AttSettings>
          <ConvertDZ>boolean</ConvertDZ>
        </ZFO>
        <EML>
          <AttSettings>
            <ConversionHandling>IGNORE_ATTACHMENTS or ATTACH_WITHOUT_CONVERSION or CONVERT_FAILURE_END or CONVERT_FAILURE_SKIP or CONVERT_FAILURE_ATTACH_ORIGINAL or CONVERT_ALWAYS_ATTACH_ORIGINAL</ConversionHandling>
            <AllowedFiletypes>string</AllowedFiletypes>
          </AttSettings>
          <CertificatePath>string</CertificatePath>
          <Decrypt>boolean</Decrypt>
          <ExportSignature>boolean</ExportSignature>
          <HeaderLanguage>string</HeaderLanguage>
        </EML>
        <HTML>
          <Header>string</Header>
          <AvoidTextBreak>boolean</AvoidTextBreak>
          <AvoidImageBreak>boolean</AvoidImageBreak>
          <ArchiveHeaderLanguage>string</ArchiveHeaderLanguage>
          <HeaderHeight>int</HeaderHeight>
          <Footer>string</Footer>
          <FooterHeight>int</FooterHeight>
          <PageEncoding>
            <EncoderFallback xsi:nil="true" />
            <DecoderFallback xsi:nil="true" />
          </PageEncoding>
          <AutoDetectEncoding>boolean</AutoDetectEncoding>
          <BaseURL>string</BaseURL>
          <DownloadReferencedFiles>boolean</DownloadReferencedFiles>
          <DoArchive>boolean</DoArchive>
          <FitWidth>boolean</FitWidth>
          <FitHeight>boolean</FitHeight>
          <AutoSize>boolean</AutoSize>
          <CustomPageHeight>int</CustomPageHeight>
          <CustomPageWidth>int</CustomPageWidth>
        </HTML>
        <AllowAnnotations>boolean</AllowAnnotations>
        <Annotations>
          <PDF_Annotation>
            <Format>Points or Relative</Format>
            <Pos_X>int</Pos_X>
            <Pos_Y>int</Pos_Y>
            <Size_X>int</Size_X>
            <Size_Y>int</Size_Y>
            <Text>string</Text>
            <Page>int</Page>
          </PDF_Annotation>
          <PDF_Annotation>
            <Format>Points or Relative</Format>
            <Pos_X>int</Pos_X>
            <Pos_Y>int</Pos_Y>
            <Size_X>int</Size_X>
            <Size_Y>int</Size_Y>
            <Text>string</Text>
            <Page>int</Page>
          </PDF_Annotation>
        </Annotations>
        <Header>
          <Text>string</Text>
          <Height>int</Height>
          <HorizontalAlignment>Left or Center or Right</HorizontalAlignment>
          <VerticalAlignment>Top or Center or Bottom</VerticalAlignment>
          <Mode>FirstPage or AllPages or LastPage or UserDefined</Mode>
          <Pages>string</Pages>
          <FontName>string</FontName>
          <FontSize>int</FontSize>
          <Transparency>int</Transparency>
        </Header>
        <Footer>
          <Text>string</Text>
          <Height>int</Height>
          <HorizontalAlignment>Left or Center or Right</HorizontalAlignment>
          <VerticalAlignment>Top or Center or Bottom</VerticalAlignment>
          <Mode>FirstPage or AllPages or LastPage or UserDefined</Mode>
          <Pages>string</Pages>
          <FontName>string</FontName>
          <FontSize>int</FontSize>
          <Transparency>int</Transparency>
        </Footer>
        <PageFormat>Custom or A0 or A1 or A10 or A2 or A3 or A4 or A5 or A6 or A7 or A8 or A9 or ArchA or ArchB or ArchC or ArchD or ArchE or B0 or B1 or B2 or B3 or B4 or B5 or Flsa or HalfLetter or Ledger or Legal or Letter or Letter11x17 or Note</PageFormat>
        <PageOrientation>Portrait or Landscape</PageOrientation>
        <UsePageCompression>boolean</UsePageCompression>
        <Metadata>
          <Title>string</Title>
          <Subject>string</Subject>
          <Author>string</Author>
          <Keywords>string</Keywords>
          <Custom>
            <Property xsi:nil="true" />
            <Property xsi:nil="true" />
          </Custom>
        </Metadata>
        <UseImageCompression>boolean</UseImageCompression>
        <UsePDFCompression>boolean</UsePDFCompression>
        <DownsizeResolution>int</DownsizeResolution>
        <CompressMethod>int</CompressMethod>
        <JpegQuality>int</JpegQuality>
        <ConvertToCMYK>boolean</ConvertToCMYK>
        <RemoveDuplicateImages>boolean</RemoveDuplicateImages>
        <ConversionTimeout>int</ConversionTimeout>
        <AddWatermark>boolean</AddWatermark>
        <Watermark>
          <Mode>FirstPage or AllPages or LastPage or UserDefined</Mode>
          <Pages>string</Pages>
          <Angle>int</Angle>
          <Strength>int</Strength>
          <FontSize>int</FontSize>
          <Text>string</Text>
          <Font>string</Font>
          <Layer>Top or Bottom</Layer>
        </Watermark>
        <AddStamp>boolean</AddStamp>
        <Stamp>
          <Mode>FirstPage or AllPages or LastPage or UserDefined</Mode>
          <Path>string</Path>
          <Pages>string</Pages>
          <PosX>int</PosX>
          <PosY>int</PosY>
          <Width>float</Width>
          <Height>float</Height>
          <AutoPlacement>boolean</AutoPlacement>
          <AutoPosHorizontal>Left or Center or Right</AutoPosHorizontal>
          <AutoPosVertical>Top or Center or Bottom</AutoPosVertical>
          <Layer>Top or Bottom</Layer>
          <ResampleImage>boolean</ResampleImage>
        </Stamp>
        <AddAttachements>boolean</AddAttachements>
        <AttachementList>
          <string>string</string>
          <string>string</string>
        </AttachementList>
        <AppendFilesAtEnd>
          <base64Binary>base64Binary</base64Binary>
          <base64Binary>base64Binary</base64Binary>
        </AppendFilesAtEnd>
        <EnableMerge>boolean</EnableMerge>
        <Merge>
          <Mode>Overwrite or Begin or End</Mode>
          <SaveCopyOnMerge>boolean</SaveCopyOnMerge>
        </Merge>
        <AddSecurity>boolean</AddSecurity>
        <Security>
          <EncryptionAlgorithm>PdfEncryptionNone or PdfEncryption40BitRC4 or PdfEncryption128BitRC4 or PdfEncryption128BitAES or PdfEncryption256BitAES</EncryptionAlgorithm>
          <UserPasswordCrypted>string</UserPasswordCrypted>
          <UserPasswordPlaintext>string</UserPasswordPlaintext>
          <OwnerPasswordCrypted>string</OwnerPasswordCrypted>
          <OwnerPasswordPlaintext>string</OwnerPasswordPlaintext>
          <OpenPasswordPlaintext>string</OpenPasswordPlaintext>
          <Permissions>
            <CanPrint>boolean</CanPrint>
            <CanCopy>boolean</CanCopy>
            <CanModify>boolean</CanModify>
            <CanAddNotes>boolean</CanAddNotes>
            <CanFillFields>boolean</CanFillFields>
            <CanCopyAccess>boolean</CanCopyAccess>
            <CanAssemble>boolean</CanAssemble>
            <CanPrintFull>boolean</CanPrintFull>
          </Permissions>
        </Security>
        <AddSignature>boolean</AddSignature>
        <Signature>
          <CertificateID>string</CertificateID>
          <AddTimeStamp>boolean</AddTimeStamp>
          <CreateBES>boolean</CreateBES>
          <AutoPlacement>boolean</AutoPlacement>
          <AutoPlacementOptions>
            <SearchText>string</SearchText>
            <NumOfSigFields>int</NumOfSigFields>
            <HorizontalSpacing>int</HorizontalSpacing>
            <SizeInPDFPoints>boolean</SizeInPDFPoints>
          </AutoPlacementOptions>
          <ShowValidationStatus>boolean</ShowValidationStatus>
          <Page>int</Page>
          <Text>string</Text>
          <ImagePath>string</ImagePath>
          <PosX>int</PosX>
          <PosY>int</PosY>
          <Width>int</Width>
          <Height>int</Height>
          <LocationInfo>string</LocationInfo>
          <ContactInfo>string</ContactInfo>
          <Reason>string</Reason>
        </Signature>
        <AddTimeStamp>boolean</AddTimeStamp>
        <TimeStamp>
          <LocationInfo>string</LocationInfo>
          <ContactInfo>string</ContactInfo>
          <Reason>string</Reason>
        </TimeStamp>
        <PreserveExistingSignatures>boolean</PreserveExistingSignatures>
        <ConvertSignedPDF>boolean</ConvertSignedPDF>
        <StrictSignedPDFConversion>boolean</StrictSignedPDFConversion>
        <ReturnErrorIfNotModified>boolean</ReturnErrorIfNotModified>
        <XMLReportTemplate>string</XMLReportTemplate>
        <XMLReportSignaturesTemplate>string</XMLReportSignaturesTemplate>
        <AddXMLReportToXMP>boolean</AddXMLReportToXMP>
        <ReturnFullXMPReport>boolean</ReturnFullXMPReport>
        <MaxInputFileSize>int</MaxInputFileSize>
        <AllowedFileTypes>string</AllowedFileTypes>
        <EnableOCR>boolean</EnableOCR>
        <ForceOCR>boolean</ForceOCR>
        <AddSourceAsPDFA3AssociatedFile>boolean</AddSourceAsPDFA3AssociatedFile>
        <ForceImagePDFAIfErrors>boolean</ForceImagePDFAIfErrors>
        <ForceImagePDFAResolution>int</ForceImagePDFAResolution>
        <ForcePDFAIfErrors>boolean</ForcePDFAIfErrors>
        <HttpHeaders>string</HttpHeaders>
      </Options>
      <CustomXMLData>string</CustomXMLData>
    </ConvertFileFromURL>
  </soap:Body>
</soap:Envelope>

Odpověď

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ConvertFileFromURLResponse xmlns="http://software602.com/longtermdocs/">
      <ConvertFileFromURLResult>int</ConvertFileFromURLResult>
      <UploadedFileURL>string</UploadedFileURL>
      <Report>string</Report>
      <ErrorMessage>string</ErrorMessage>
    </ConvertFileFromURLResponse>
  </soap:Body>
</soap:Envelope>
Jedná se o interní metodu pro komunikaci se spisovou službou.