1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "ohos_nweb/bridge/ark_web_pdfconfig_args_impl.h"
17 
18 namespace OHOS::ArkWeb {
19 
ArkWebPDFConfigArgsImpl(std::shared_ptr<OHOS::NWeb::NWebPDFConfigArgs> pdfConfig)20 ArkWebPDFConfigArgsImpl::ArkWebPDFConfigArgsImpl(std::shared_ptr<OHOS::NWeb::NWebPDFConfigArgs> pdfConfig)
21     : nweb_pdfconfig_(pdfConfig)
22 {}
23 
GetWidth()24 double ArkWebPDFConfigArgsImpl::GetWidth()
25 {
26     return nweb_pdfconfig_->GetWidth();
27 }
GetHeight()28 double ArkWebPDFConfigArgsImpl::GetHeight()
29 {
30     return nweb_pdfconfig_->GetHeight();
31 }
GetScale()32 double ArkWebPDFConfigArgsImpl::GetScale()
33 {
34     return nweb_pdfconfig_->GetScale();
35 }
GetMarginTop()36 double ArkWebPDFConfigArgsImpl::GetMarginTop()
37 {
38     return nweb_pdfconfig_->GetMarginTop();
39 }
GetMarginBottom()40 double ArkWebPDFConfigArgsImpl::GetMarginBottom()
41 {
42     return nweb_pdfconfig_->GetMarginBottom();
43 }
GetMarginRight()44 double ArkWebPDFConfigArgsImpl::GetMarginRight()
45 {
46     return nweb_pdfconfig_->GetMarginRight();
47 }
GetMarginLeft()48 double ArkWebPDFConfigArgsImpl::GetMarginLeft()
49 {
50     return nweb_pdfconfig_->GetMarginLeft();
51 }
GetShouldPrintBackground()52 bool ArkWebPDFConfigArgsImpl::GetShouldPrintBackground()
53 {
54     return nweb_pdfconfig_->GetShouldPrintBackground();
55 }
56 
57 } // namespace OHOS::ArkWeb
58